-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
64 lines (51 loc) · 1.83 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
60
61
62
63
64
import distutils
import sys
from setuptools import setup
MINIMUM_SUPPORTED_PYTHON_VERSION = "3.7"
class MinPythonVersion(distutils.cmd.Command):
description = "Print out the minimum supported Python version"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
print(MINIMUM_SUPPORTED_PYTHON_VERSION)
if sys.argv[-1] == 'setup.py':
print('To install, run \'python setup.py install\'')
print()
if __name__ == "__main__":
version = None
with open("./newron/version.py") as fp:
for line in fp.read().splitlines():
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
version = line.split(delim)[1]
setup(
name="newron",
version=version,
author="Newron AI",
author_email="[email protected]",
description="NewronAI: Machine Learning, Made Simple. Client SDK for Newron AI",
long_description=open('README.md').read(),
long_description_content_type="text/markdown",
url='https://newron.ai',
project_urls={
'Documentation': 'https://docs.newron.ai/',
'Source': 'https://github.com/NewronAI/NewronSDK/',
'Tracker': 'https://github.com/NewronAI/NewronSDK/issues',
},
keywords=['mlops', "experiment", "tracking", "deployments", "mlflow"],
packages=['newron', 'plugin'],
license='Apache License',
install_requires=["mlflow"],
entry_points={
"console_scripts": [
"newron=newron.cli:cli"
],
"mlflow.request_header_provider": "unused=plugin.request_header_provider:PluginRequestHeaderProvider"
},
cmdclass={
"min_python_version": MinPythonVersion,
},
)