-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
59 lines (53 loc) · 1.9 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
47
48
49
50
51
52
53
54
55
56
57
58
59
# coding: utf-8
import re
from parver import Version, ParseError
import setuptools
# Use the following command from a terminal window to generate the whl with source code
# python setup.py bdist_wheel
namespace = 'seeq.*'
with open("pypi/README_pypi.md", "r") as fh:
long_description = fh.read()
version_scope = {'__builtins__': None}
with open("seeq/addons/azureml/_version.py", "r+") as f:
version_file = f.read()
version_line = re.search(r"__version__ = (.*)", version_file)
if version_line is None:
raise ValueError(f"Invalid version. Expected __version__ = 'xx.xx.xx', but got \n{version_file}")
version = version_line.group(1).replace(" ", "").strip('\n').strip("'").strip('"')
print(f"version: {version}")
try:
Version.parse(version)
exec(version_line.group(0), version_scope)
except ParseError as e:
print(str(e))
raise
setup_args = dict(
name='seeq-azureml',
version=version_scope['__version__'],
author="Seeq Corporation",
author_email="applied.research@seeq.com",
license='Apache License 2.0',
description="Seeq Add-on that integrates with Microsoft Azure Machine Learning (AML) models as a web service",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/seeq12/seeq-azureml",
packages=setuptools.find_namespace_packages(include=[namespace]),
include_package_data=True,
zip_safe=False,
install_requires=[
'ipywidgets>=7.6.3',
'ipyvuetify>=1.8.0',
'numpy>=1.19.5',
'pandas~=1.2.5',
'requests>=2.26.0',
'traitlets>=5.1.0',
'ipydatetime>=1.2.0'
],
classifiers=[
"Programming Language :: Python :: 3.7",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
python_requires='>=3.7',
)
setuptools.setup(**setup_args)