This repository has been archived by the owner on Sep 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
123 lines (117 loc) · 3.3 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
from setuptools import setup, find_namespace_packages
from typing import List
from pathlib import Path
import re
setup_requires = [
'setuptools>=54.2.0',
]
install_requires = [
'aiohttp~=3.8.0',
'aiotusclient~=0.1.4',
'appdirs~=1.4.4',
'async_timeout>=4.0',
'attrs>=20.3',
'click>=8.0.1',
'colorama>=0.4.4',
'humanize>=3.1.0',
'janus>=0.6.1',
'multidict>=5.1.0',
'python-dateutil>=2.8.2',
'PyYAML~=5.4.1',
'rich~=12.2',
'tabulate>=0.8.9',
'tqdm>=4.61',
'yarl>=1.6.3',
'backend.ai-cli~=0.6.0',
]
build_requires = [
'wheel>=0.37.1',
'twine>=4.0.0',
'towncrier~=21.9.0',
]
test_requires = [
'pytest~=7.0.1',
'pytest-cov',
'pytest-mock',
'pytest-asyncio>=0.18.2',
'aioresponses>=0.7.3',
'codecov',
]
lint_requires = [
'flake8>=4.0.1',
'flake8-commas>=2.1',
]
typecheck_requires = [
'mypy>=0.950',
'types-click',
'types-python-dateutil',
'types-tabulate',
]
dev_requires: List[str] = [
# 'pytest-sugar>=0.9.1',
]
docs_requires = [
'Sphinx~=3.4.3',
'sphinx-intl>=2.0',
'sphinx_rtd_theme>=0.4.3',
'sphinxcontrib-trio>=1.1.0',
'sphinx-autodoc-typehints~=1.11.1',
'pygments~=2.7.4',
]
def read_src_version():
path = (Path(__file__).parent / 'src' /
'ai' / 'backend' / 'client' / '__init__.py')
src = path.read_text(encoding='utf-8')
m = re.search(r"^__version__ = '([^']+)'$", src, re.MULTILINE)
assert m is not None, 'Could not read the version information!'
return m.group(1)
setup(
name='backend.ai-client',
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version=read_src_version(),
description='Backend.AI Client for Python',
long_description=Path('README.rst').read_text(encoding='utf-8'),
url='https://github.com/lablup/backend.ai-client-py',
author='Lablup Inc.',
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Operating System :: POSIX',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Environment :: No Input/Output (Daemon)',
'Topic :: Scientific/Engineering',
'Topic :: Software Development',
],
package_dir={'': 'src'},
packages=find_namespace_packages(where='src', include='ai.backend.*'),
python_requires='>=3.8',
setup_requires=setup_requires,
install_requires=install_requires,
extras_require={
'dev': dev_requires,
'build': build_requires,
'test': test_requires,
'lint': lint_requires,
'typecheck': typecheck_requires,
'docs': docs_requires,
},
data_files=[],
package_data={
'ai.backend.client': ['py.typed'],
},
entry_points={
'backendai_cli_v10': [
'_ = ai.backend.client.cli.main:main',
],
},
)