-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (38 loc) · 1.19 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
"""
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=get_version("1.0.0"),
url='https://github.com/virtomize/uii-python-api',
author='Virtomize GmbH',
author_email='api@virtomize.com',
description="A client implementation for Virtomize Unattended Install Images API",
long_description=long_description,
long_description_content_type="text/markdown",
license='BSD 2-clause',
packages=['uiipythonapi'],
package_dir={'uiipythonapi': './uiipythonapi'},
install_requires=[
'requests'
],
classifiers=[
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.8',
],
)