From 376f57358b554b6464fb0cd3407fd77cfbc2ac48 Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 15 Oct 2019 04:04:18 +0000 Subject: [PATCH] setup: don't append local version for tags. PyPI rejects any archives with local version. --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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", -- 2.30.2