-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,16 @@ | |
# Retrieve 'VERSION' environment variable, default to '0.0' if not found. | ||
version = os.getenv('VERSION', '0.0') | ||
|
||
print(f"Building version: {version}") | ||
|
||
if version == '0.0': | ||
raise ValueError("Version not set or defaulting to '0.0'. Please set the VERSION environment variable.") | ||
|
||
# Attempt to split the version number, default to '0' for both if it fails | ||
try: | ||
major, minor = version.split('.') | ||
except ValueError: | ||
major, minor = '0', '0' # Default to '0.0' if the version isn't in a 'major.minor' format | ||
raise ValueError(f"Invalid version format: {version}. Expected 'major.minor' format.") | ||
|
||
|
||
with open('org/polypheny/prism/version.py', 'w') as f: | ||
|
@@ -26,8 +31,16 @@ | |
description='Polypheny Prism API files for Python', | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
author="The Polypheny Project", | ||
author_email="[email protected]", | ||
url="https://polypheny.com/", | ||
project_urls={ | ||
"Documentation": "https://docs.polypheny.com/en/latest/query_interfaces/prism/protocol", | ||
"Code": "https://github.com/polypheny/Polypheny-Prism-API" | ||
}, | ||
license="Apache License, Version 2.0", | ||
packages=['org/polypheny/prism'], | ||
install_requires=[ | ||
"protobuf==4.24.3", | ||
], | ||
) | ||
) |