From: whitequark Date: Tue, 15 Oct 2019 04:04:18 +0000 (+0000) Subject: setup: don't append local version for tags. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=376f57358b554b6464fb0cd3407fd77cfbc2ac48;p=nmigen.git setup: don't append local version for tags. PyPI rejects any archives with local version. --- diff --git a/setup.py b/setup.py index 390e007..f769b27 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,10 @@ from setuptools import setup, find_packages 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",