-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
50 lines (43 loc) · 1.57 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
import os
import re
import setuptools
def read_version():
# importing gpustat causes an ImportError :-)
__PATH__ = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(__PATH__, 'modelhub_client/__init__.py')) as f:
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
f.read(), re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find __version__ string")
# get project version
__version__ = read_version()
# get project long description
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
# get project requirements list
with open("requirements.txt", "r", encoding="utf-8") as fh:
packages = fh.read().split("/n")
setuptools.setup(
name="modelhub-client",
version=__version__,
author='RIA.com',
author_email='[email protected]',
description="RIA ModelHub tools package",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://git.ria.com/neural/ria-modelhub-tools.git",
packages=setuptools.find_packages(),
install_requires=packages,
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3",
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
"Operating System :: OS Independent",
],
keywords='modelhub modelhub-client ria-com ria.com ria',
entry_points={
'console_scripts': ['modelhub_client=modelhub_client:main'],
},
python_requires='>=3.6'
)