|
6 | 6 | # Retrieve 'VERSION' environment variable, default to '0.0' if not found. |
7 | 7 | version = os.getenv('VERSION', '0.0') |
8 | 8 |
|
| 9 | +print(f"Building version: {version}") |
| 10 | + |
| 11 | +if version == '0.0': |
| 12 | + raise ValueError("Version not set or defaulting to '0.0'. Please set the VERSION environment variable.") |
| 13 | + |
9 | 14 | # Attempt to split the version number, default to '0' for both if it fails |
10 | 15 | try: |
11 | 16 | major, minor = version.split('.') |
12 | 17 | except ValueError: |
13 | | - major, minor = '0', '0' # Default to '0.0' if the version isn't in a 'major.minor' format |
| 18 | + raise ValueError(f"Invalid version format: {version}. Expected 'major.minor' format.") |
14 | 19 |
|
15 | 20 |
|
16 | 21 | with open('org/polypheny/prism/version.py', 'w') as f: |
|
26 | 31 | description='Polypheny Prism API files for Python', |
27 | 32 | long_description=long_description, |
28 | 33 | long_description_content_type='text/markdown', |
| 34 | + author="The Polypheny Project", |
| 35 | + author_email="mail@polypheny.org", |
| 36 | + url="https://polypheny.com/", |
| 37 | + project_urls={ |
| 38 | + "Documentation": "https://docs.polypheny.com/en/latest/query_interfaces/prism/protocol", |
| 39 | + "Code": "https://github.com/polypheny/Polypheny-Prism-API" |
| 40 | + }, |
| 41 | + license="Apache License, Version 2.0", |
29 | 42 | packages=['org/polypheny/prism'], |
30 | 43 | install_requires=[ |
31 | 44 | "protobuf==4.24.3", |
32 | 45 | ], |
33 | | - ) |
| 46 | +) |
0 commit comments