From 2724b9498ac919c7cc4fef3b9990f05c11a298db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 30 Apr 2018 12:47:39 +0200 Subject: [PATCH] setup: mark git snapshots with .post suffix (#12641) --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index c7d24ad..922cff5 100644 --- a/setup.py +++ b/setup.py @@ -47,12 +47,12 @@ def get_version(): result = result.decode('ascii').strip()[1:] # strip spaces/newlines and initial v if '-' in result: # not a tagged version real_number, commit_count, commit_hash = result.split('-', 2) - version = '%s.dev%s+%s' % (real_number, commit_count, commit_hash) + version = '%s.post%s+%s' % (real_number, commit_count, commit_hash) else: version = result return version else: - return '0.0.dev%s' % len( + return '0.0.post%s' % len( subprocess.check_output( ['git', 'rev-list', 'HEAD']).splitlines()) return '0.0'