You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3
Original file line number
Diff line number
Diff line change
@@ -457,6 +457,7 @@ setuptools.setup(
457
457
"version_file": None,
458
458
"count_commits_from_version_file": False,
459
459
"branch_formatter": None,
460
+
"sort_by": None,
460
461
},
461
462
setup_requires=["setuptools-git-versioning"],
462
463
...,
@@ -479,6 +480,8 @@ setuptools.setup(
479
480
480
481
- `branch_formatter`: callback to be used for formatting a branch name before template substitution
481
482
483
+
- `sort_by`: format string passed to ``git tag --sort=`` command to sort the output. Possible values: ``version:refname`` (alphanumeric sort), ``committerdate`` (commit date of tag), ``creatordate`` (tag creation date, **default**)
484
+
482
485
### Substitutions
483
486
484
487
You can use these substitutions in `template`, `dev_template` or `dirty_template` options:
0 commit comments