-
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
Frank Taubert
committed
Aug 1, 2022
1 parent
22714df
commit c288797
Showing
2 changed files
with
19 additions
and
1 deletion.
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
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 |
---|---|---|
|
@@ -2,14 +2,28 @@ | |
Configuration for building the pip package | ||
""" | ||
|
||
import os | ||
from setuptools import setup | ||
|
||
with open("README.md", "r", encoding="utf-8") as fh: | ||
long_description = fh.read() | ||
|
||
|
||
def get_version(default :str ): | ||
""" retrieve version number from environment variable """ | ||
version = os.getenv('RELEASE_TAG') | ||
if version is None: | ||
print("no version passed") | ||
return default | ||
|
||
print(version) | ||
version = version.replace("v", "") | ||
return version | ||
|
||
|
||
setup( | ||
name='uiipythonapi', | ||
version='1.0.0', | ||
version=get_version("1.0.0"), | ||
url='https://github.com/virtomize/uii-python-api', | ||
author='Virtomize GmbH', | ||
author_email='[email protected]', | ||
|