From: whitequark Date: Tue, 15 Oct 2019 04:04:18 +0000 (+0000) Subject: setup: don't append local version for tags. X-Git-Tag: v0.1rc1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5198d99b5eb001caa7e059dc832de257feab58b3;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",