diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-01-01 14:11:03 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-01-01 14:11:03 +0200 |
commit | c347f8464ba47acd23f3b6ae33c3979d1bd1f170 (patch) | |
tree | 284625639b4b8d5086ad81ce28ec26d90317dd76 | |
parent | c4c3dd0d5fc4e859ae89badc3fd6066fe8c1e6d6 (diff) | |
download | code.liw.fi-keyring-c347f8464ba47acd23f3b6ae33c3979d1bd1f170.tar.gz |
Don't include Debian version in setup.py output
-rw-r--r-- | setup.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4,7 +4,7 @@ import re import cliapp output = cliapp.runcmd(['dpkg-parsechangelog']) -m = re.search('^Version: (?P<version>.*)$', output, re.M) +m = re.search('^Version: (?P<version>.*)-[^-]*$', output, re.M) if not m: raise Exception('no version') print m.group('version') |