Skip to content

Commit

Permalink
setup: don't append local version for tags.
Browse files Browse the repository at this point in the history
PyPI rejects any archives with local version.
whitequark committed Oct 15, 2019
1 parent 1bb3fa8 commit 5198d99
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -3,7 +3,10 @@

def scm_version():
def local_scheme(version):
return version.format_choice("+{node}", "+{node}.dirty")
if version.tag:
return version.format_with("")
else:
return version.format_choice("+{node}", "+{node}.dirty")
return {
"relative_to": __file__,
"version_scheme": "guess-next-dev",

0 comments on commit 5198d99

Please sign in to comment.