Skip to content

Commit

Permalink
Workaround extra refnames in git archive
Browse files Browse the repository at this point in the history
Instead of including all refnames that the tag points to
use only tags to ensure git archive produces a stable
build from a tag regardless of when the archive is created

References:
- python-versioneer/python-versioneer#217
  • Loading branch information
alisaifee committed Aug 26, 2023
1 parent f72854b commit a2edd62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_limiter/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_keywords():
# setup.py/versioneer.py will grep for the variable names, so they must
# each be defined on a line of their own. _version.py will just call
# get_keywords().
git_refnames = "$Format:%d$"
git_refnames = "$Format:%(describe:exclude=HEAD|main:tags=true)$"
git_full = "$Format:%H$"
git_date = "$Format:%ci$"
keywords = {"refnames": git_refnames, "full": git_full, "date": git_date}
Expand Down

0 comments on commit a2edd62

Please sign in to comment.