From 54ea52c86fee52a4b8f1f13b15438a082610d636 Mon Sep 17 00:00:00 2001 From: khazhyk Date: Sat, 18 Nov 2017 23:56:01 -0800 Subject: [PATCH] Prefix sha to fix leading zeros being stripped /dist.py:352: UserWarning: Normalizing '1.0.0a1402+0965847' to '1.0.0a1402+965847' --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0d132b13d..0b4f1601d 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ if version.endswith(('a', 'b', 'rc')): stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = p.communicate() if out: - version += '+' + out.decode('utf-8').strip() + version += '+g' + out.decode('utf-8').strip() except Exception: pass