diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-01-01 13:54:49 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-01-01 13:54:49 +0200 |
commit | dc4ab30ea9f597b53645f7936244a1cee532b2d7 (patch) | |
tree | 0442b5c3149af8183d5ba7088b64aec2fa44ac25 | |
parent | 2886a0600f253865171245e7973450d94eeef73e (diff) | |
download | code.liw.fi-keyring-dc4ab30ea9f597b53645f7936244a1cee532b2d7.tar.gz |
Addsetup.py for bumper
-rw-r--r-- | setup.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..6c7e0c2 --- /dev/null +++ b/setup.py @@ -0,0 +1,11 @@ +#!/usr/bin/python + +import re +import cliapp + +output = cliapp.runcmd(['dpkg-parsechangelog']) +m = re.search('^Version: (?P<version>.*)$', output, re.M) +if not m: + raise Exception('no version') +print m.group('version') + |