-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
76 lines (61 loc) · 2.09 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
# pylint: disable=exec-used
import os
from typing import Dict, List, Union
from setuptools import setup, find_packages
source_root = os.path.join(os.path.dirname(os.path.abspath(__file__)), "revdbc")
version_scope: Dict[str, Dict[str, str]] = {}
with open(os.path.join(source_root, "version.py")) as f:
exec(f.read(), version_scope)
version = version_scope["__version__"]
project_scope: Dict[str, Dict[str, Union[str, List[str]]]] = {}
with open(os.path.join(source_root, "project.py")) as f:
exec(f.read(), project_scope)
project = project_scope["project"]
with open("README.md") as f:
long_description = f.read()
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Typing :: Typed"
]
classifiers.extend(project["categories"])
if version["tag"] == "alpha":
classifiers.append("Development Status :: 3 - Alpha")
if version["tag"] == "beta":
classifiers.append("Development Status :: 4 - Beta")
if version["tag"] == "stable":
classifiers.append("Development Status :: 5 - Production/Stable")
del project["categories"]
del project["year"]
setup(
version=version["short"],
long_description=long_description,
long_description_content_type="text/markdown",
license="Apache 2.0",
packages=find_packages(),
entry_points={
"console_scripts": [
"revdbc=revdbc.__main__:main"
],
},
install_requires=[
"candumpgen>=0.0.1,<0.1",
"cantools>=35.3.0,<36",
"scikit-learn>=0.23.2,<0.24",
"typing_extensions>=3.7.4.3,<4"
],
python_requires=">=3.6",
include_package_data=True,
zip_safe=False,
classifiers=classifiers,
**project
)