-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
40 lines (35 loc) · 1.42 KB
/
setup.py
File metadata and controls
40 lines (35 loc) · 1.42 KB
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
import json
import setuptools
from os import environ
with open("README.md", "r") as fh:
long_description = fh.read()
with open("VERSION", "r") as fh:
version_info = json.load(fh)
version_major = '0' if not version_info.get('VERSION_MAJOR') else version_info['VERSION_MAJOR']
version_minor = '0' if not version_info.get('VERSION_MINOR') else version_info['VERSION_MINOR']
pipeline_number = '0' if not environ.get('GITHUB_RUN_NUMBER') else environ['GITHUB_RUN_NUMBER']
setuptools.setup(
name="um7py",
version=f"{version_major}.{version_minor}.{pipeline_number}",
author="Redshift Labs Pty Ltd, Dr. Konstantin Selyunin",
author_email="selyunin.k.v@gmail.com",
license="MIT",
description="Redshift Labs Pty Ltd UM7 Python Driver",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/RedshiftLabsPtyLtd/um7py",
packages=["um7py"],
requires=["pyserial"],
install_requires=["pyserial"],
package_dir={'um7py': 'um7py'},
package_data={"um7py": ['rsl_xml_svd/RSL-SVD.xsd',
'rsl_xml_svd/um7.svd',
'rsl_xml_svd/rsl_svd_parser.py',
'templates/*.jinja2',
'examples/*.py']},
classifiers=[
"Programming Language :: Python :: 3.7",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
],
)