[trydiffoscope] 01/01: setup.py: Parse dpkg-parsechangelog instead of hardcoding version.

Chris Lamb chris at chris-lamb.co.uk
Wed Dec 6 22:08:21 UTC 2017


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository trydiffoscope.

commit 82adf29e70eb73431dd920aad589e0edd2c1c0d5
Author: Chris Lamb <lamby at debian.org>
Date:   Wed Dec 6 22:07:45 2017 +0000

    setup.py: Parse dpkg-parsechangelog instead of hardcoding version.
---
 setup.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 274ab43..520fd72 100644
--- a/setup.py
+++ b/setup.py
@@ -1,8 +1,14 @@
+import subprocess
+
 from distutils.core import setup
 
+VERSION = subprocess.check_output(
+    ('dpkg-parsechangelog', '-S', 'Version'),
+).decode('utf-8').strip()
+
 setup(
     name='trydiffoscope',
-    version='64',
+    version=VERSION,
     author="Chris Lamb",
     author_email="lamby at debian.org",
     scripts=(

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/trydiffoscope.git



More information about the Reproducible-commits mailing list