forked from scrool/xled
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·90 lines (79 loc) · 2.37 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
import sys
from setuptools import find_packages, setup
with open("README.rst") as readme_file:
readme = readme_file.read()
with open("HISTORY.rst") as history_file:
history = history_file.read()
#: Common requirements
requirements = [
"click-log",
"cryptography",
"requests",
"requests-toolbelt",
]
#: Python 2 requirements
requirements_py2 = [
"ipaddress",
"monotonic",
"tornado>=5.0.0,<=5.1.1",
"pyzmq>=17,<20.0.0",
"Click>=6.0,<8.0",
"netaddr<=0.7.19", # Dependencies zipp and importlib-resources no longer supports Python 2.7
]
#: Python 3 requirements
requirements_py3 = [
"tornado>=5.0.0",
"pyzmq>=17",
"Click>=6.0",
"netaddr",
]
tests_requirements = ["vcrpy-unittest"]
if sys.version_info > (3, 3):
requirements.extend(requirements_py3)
else:
requirements.extend(requirements_py2)
setup(
name="xled",
# bumpversion v0.5.3 doesn't handle version string in double quotes
# correctly so prevent Black to format it:
# fmt: off
version='0.6.1',
# fmt: on
description=(
"Python library and command line interface to control "
"Twinkly - Smart Decoration LED lights for Christmas."
),
long_description=readme + "\n\n" + history,
author="Pavol Babinčák",
author_email="[email protected]",
url="https://github.com/scrool/xled",
packages=find_packages(include=["xled"]),
entry_points={"console_scripts": ["xled=xled.cli:main"]},
include_package_data=True,
install_requires=requirements,
tests_require=tests_requirements,
extras_require={
"tests": tests_requirements,
}, # noqa: E231
license="MIT license",
zip_safe=False,
keywords="xled,twinkly",
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
test_suite="tests",
)