forked from Superb-AI-Suite/spb-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
79 lines (75 loc) · 2.34 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
import io
from setuptools import setup, find_packages
# Read in the README for the long description on PyPI
def long_description():
with io.open("README.md", "r", encoding="utf-8") as f:
readme = f.read()
return readme
def load_config():
with io.open("spb/sdk_config.py") as fid:
result = {}
for line in fid:
try:
line.index("End of read")
except:
splitted_line = line.strip().split("=")
result[splitted_line[0]] = splitted_line[-1][1:-1]
else:
return result
configs = load_config()
setup(
name=configs.get("SDK_NAME", ""),
version=configs.get("SDK_VERSION", ""),
url=configs.get("SDK_URL", ""),
license=configs.get("SDK_LICENSE", ""),
author=configs.get("SDK_AUTHOR", ""),
author_email=configs.get("SDK_AUTHOR_EMAIL", ""),
description=configs.get("SDK_DESCRIPTION", ""),
classifiers=[
"Development Status :: 1 - Planning",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.6",
],
packages=find_packages(),
entry_points={"console_scripts": ["spb=spb.__main__:cli"]},
long_description=long_description(),
long_description_content_type="text/markdown",
install_requires=[
"bleach==3.1.5",
"certifi==2020.4.5.2",
"chardet>=3.0.2,<3.1.0",
"click==7.1.2",
"colorama==0.4.3",
"commonmark==0.9.1",
"docutils<0.16,>=0.10",
"idna==2.9",
"importlib-metadata==3.6; python_version < '3.8'",
"keyring==21.2.1",
"packaging==20.4",
"pkginfo==1.5.0.1",
"pprintpp==0.4.0",
"pygments==2.6.1",
"pyparsing==2.4.7",
"python-datauri==0.2.8",
"readme-renderer==26.0",
"requests==2.23.0",
"requests-toolbelt==0.9.1",
"rich==10.2.2",
"six==1.15.0",
"tqdm==4.46.1",
"twine==3.1.1",
"typing-extensions==3.7.4.2",
"urllib3==1.25.9",
"webencodings==0.5.1",
"zipp==3.1.0",
"scikit-image>=0.16.1",
"botocore>=1.20.82",
"boto3>=1.17.82",
"natsort>=7.1.0",
"semver==2.13.0",
],
zip_safe=False,
dependency_links=[],
)