We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 768bb86 commit 9dcd5dbCopy full SHA for 9dcd5db
1 file changed
setup.py
@@ -2,13 +2,12 @@
2
3
from setuptools import setup
4
5
-version = os.getenv('version', '0.0').split('.')
6
-if len(version) != 2:
7
- raise Exception('Invalid version format')
+version = os.getenv('version', '0.0')
+major, minor = version.split('.')
8
9
with open('org/polypheny/prism/version.py', 'w') as f:
10
- f.write(f'MAJOR_VERSION = {version[0]}\n')
11
- f.write(f'MINOR_VERSION = {version[1]}\n')
+ f.write(f'MAJOR_VERSION = {major}\n')
+ f.write(f'MINOR_VERSION = {minor}\n')
12
13
setup(name='polyphenyprism',
14
version=version,
0 commit comments