forked from rytilahti/python-miio
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
60 lines (54 loc) · 1.73 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
import re
from setuptools import setup
with open("miio/version.py") as f:
exec(f.read())
def readme():
# we have intersphinx link in our readme, so let's replace them
# for the long_description to make pypi happy
reg = re.compile(r":.+?:`(.+?)\s?(<.+?>)?`")
with open("README.rst") as f:
return re.sub(reg, r"\1", f.read())
setup(
name="python-miio",
version=__version__, # type: ignore # noqa: F821
description="Python library for interfacing with Xiaomi smart appliances",
long_description=readme(),
url="https://github.com/rytilahti/python-miio",
author="Teemu Rytilahti",
author_email="[email protected]",
license="GPLv3",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3 :: Only",
],
keywords="xiaomi miio vacuum",
packages=["miio"],
include_package_data=True,
python_requires=">=3.6",
install_requires=[
"construct",
"click>=7",
"cryptography",
"zeroconf",
"attrs",
"pytz",
"appdirs",
"tqdm",
"netifaces",
],
extras_require={"Android backup extraction": "android_backup"},
entry_points={
"console_scripts": [
"mirobo=miio.vacuum_cli:cli",
"miplug=miio.plug_cli:cli",
"miceil=miio.ceil_cli:cli",
"mieye=miio.philips_eyecare_cli:cli",
"miio-extract-tokens=miio.extract_tokens:main",
"miiocli=miio.cli:create_cli",
]
},
)