Debian Codegraph @

debian/patches/0004_Fix_Version.patch

raw
1 Don't add rc0 at the end of the version.
2 Index: pypuppetdb/setup.py
3 ===================================================================
4 --- pypuppetdb.orig/setup.py
5 +++ pypuppetdb/setup.py
6 @@ -6,14 +6,10 @@ from setuptools import find_packages, se
7 from setuptools.command.test import test as TestCommand
8
9
10 -def rc_value():
11 - with open('version') as fp:
12 - val = fp.read().rstrip()
13 - return '{}rc0'.format(val)
14 -
15 -
16 def version():
17 - return os.getenv('TRAVIS_TAG', rc_value())
18 + with open('version') as fp:
19 + val = fp.read().rstrip()
20 + return val
21
22
23 class PyTest(TestCommand):