-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
82 lines (75 loc) · 2.79 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# -*- coding: utf-8 -*-
"""Setup module."""
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
INSTALLATION_MODES = {
'core': 'requirements.txt',
'streaming': 'streaming-requirements.txt',
}
def get_requires(mode='core'):
"""Read associated requirements to install."""
reqs_path = INSTALLATION_MODES[mode]
requirements = open(reqs_path, "r").read()
return list(filter(lambda x: x != "", requirements.split()))
def read_description():
"""Read README.md and CHANGELOG.md."""
try:
with open("README.md") as r:
description = "\n"
description += r.read()
with open("CHANGELOG.md") as c:
description += "\n"
description += c.read()
return description
except Exception:
return '''Transportation of ML models'''
setup(
name='pymilo',
packages=find_packages(include=['pymilo*'], exclude=['tests*']),
version='1.0',
description='Transportation of ML models',
long_description=read_description(),
long_description_content_type='text/markdown',
author='PyMilo Development Team',
author_email='pymilo@openscilab.com',
url='https://github.com/openscilab/pymilo',
download_url='https://github.com/openscilab/pymilo/tarball/v1.0',
keywords="python3 python machine_learning ML",
project_urls={
'Source': 'https://github.com/openscilab/pymilo',
},
install_requires=get_requires(),
extras_require={
'streaming': get_requires(mode='streaming'),
},
python_requires='>=3.6',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Manufacturing',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Education',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: Human Machine Interfaces',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics',
],
license='MIT',
)