-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
65 lines (56 loc) · 1.76 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
import shlex
import subprocess
import sys
from setuptools import find_packages
from setuptools import setup
version = "0.0.8"
if sys.argv[-1] == "release":
# Release via github-actions.
commands = [
f"git tag v{version:s}",
"git push origin master --tag",
]
for cmd in commands:
print(f"+ {cmd}")
subprocess.check_call(shlex.split(cmd))
sys.exit(0)
setup_requires = []
with open("requirements.txt") as f:
install_requires = []
for line in f:
req = line.split("#")[0].strip()
install_requires.append(req)
setup(
name="rcb4",
version=version,
description="A python library for RCB4",
author="Iori Yanokura",
author_email="[email protected]",
url="https://github.com/iory/rcb4",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
license="MIT",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: Implementation :: CPython",
],
packages=find_packages(),
zip_safe=False,
setup_requires=setup_requires,
install_requires=install_requires,
entry_points={
"console_scripts": [
"rcb4-write-firmware=rcb4.apps.write_firmware:main",
"armh7-tools=rcb4.apps.armh7_tool:main",
"ics-manager=rcb4.apps.ics_manager:main",
],
},
)