-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (56 loc) · 1.96 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
from os import path
from io import open
from setuptools import setup, find_packages
def get_spec(filename: str, mode: str="r"):
def wrapper():
here = path.dirname(__file__)
result = {}
with open(path.join(here, filename), encoding="utf8") as src_file:
if mode == "d":
exec(src_file.read(), result)
else:
result = src_file.read()
return result
return wrapper
get_about = get_spec("./modi_plus/about.py", "d")
get_readme = get_spec("README.md")
get_history = get_spec("HISTORY.md")
get_requirements = get_spec("requirements.txt")
get_requirements_dev = get_spec("requirements-dev.txt")
about = get_about()
setup(
name=about["__title__"],
version=about["__version__"],
author=about["__author__"],
author_email=about["__email__"],
description=about["__summary__"],
long_description=get_readme() + "\n" + get_history(),
long_description_content_type="text/markdown",
install_requires=get_requirements(),
extras_require={"dev": get_requirements_dev()},
license=about["__license__"],
include_package_data=True,
keywords=["python", "modi", "modi-plus", "modi_plus", "modi+"],
packages=find_packages(
include=[
"modi_plus", "modi_plus.util", "modi_plus.task", "modi_plus.task.ble_task",
"modi_plus.module",
"modi_plus.module.setup_module",
"modi_plus.module.input_module",
"modi_plus.module.output_module"
]
),
test_suite="tests",
url=about["__url__"],
classifiers=[
"Natural Language :: English",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
'Programming Language :: Python :: 3',
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.7',
)