-
-
Notifications
You must be signed in to change notification settings - Fork 565
/
pyproject.toml
134 lines (119 loc) · 3.29 KB
/
pyproject.toml
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
[tool.poetry]
name = "python-miio"
version = "0.6.0.dev0"
description = "Python library for interfacing with Xiaomi smart appliances"
authors = ["Teemu R <[email protected]>"]
repository = "https://github.com/rytilahti/python-miio"
documentation = "https://python-miio.readthedocs.io"
license = "GPL-3.0-only"
readme = "README.md"
packages = [
{ include = "miio" }
]
keywords = ["xiaomi", "miio", "miot", "smart home"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Operating System :: OS Independent",
"Topic :: System :: Hardware",
"Topic :: Home Automation"
]
[tool.poetry.scripts]
mirobo = "miio.integrations.roborock.vacuum.vacuum_cli:cli"
miio-extract-tokens = "miio.extract_tokens:main"
miiocli = "miio.cli:create_cli"
[tool.poetry.dependencies]
python = "^3.9"
click = ">=8"
cryptography = ">=35"
construct = "^2.10.56"
zeroconf = "^0"
attrs = "*"
pytz = "*"
platformdirs = "*"
tqdm = "^4"
micloud = { version = ">=0.6" }
croniter = ">=1"
defusedxml = "^0"
pydantic = ">=1,<3"
PyYAML = ">=5,<7"
# doc dependencies
sphinx = { version = "*", optional = true }
sphinx_click = { version = "*", optional = true }
sphinxcontrib-apidoc = { version = "*", optional = true }
sphinx_rtd_theme = { version = ">=1.3.0", optional = true }
myst-parser = { version = "*", optional = true }
# optionals
netifaces = { version = "^0", optional = true }
android_backup = { version = "^0", optional = true }
crcmod = { version = "^1.7", optional = true }
[tool.poetry.extras]
docs = ["sphinx", "sphinx_click", "sphinxcontrib-apidoc", "sphinx_rtd_theme", "myst-parser"]
updater = ["netifaces"]
backup_extract = ["android_backup"]
crcmod = ["crcmod"]
[tool.poetry.dev-dependencies]
pytest = ">=6.2.5"
pytest-cov = "*"
pytest-mock = "*"
pytest-asyncio = "*"
pre-commit = "*"
doc8 = "*"
restructuredtext_lint = "*"
tox = "*"
isort = "*"
cffi = "*"
docformatter = "*"
mypy = {version = "*", markers = "platform_python_implementation == 'CPython'"}
coverage = {extras = ["toml"], version = "*"}
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 88
forced_separate = "miio.discover"
known_first_party = "miio"
known_third_party = [
"attr",
"click",
"construct",
"croniter",
"cryptography",
"netifaces",
"platformdirs",
"pytest",
"pytz",
"setuptools",
"tqdm",
"zeroconf"
]
[tool.coverage.run]
source = ["miio"]
branch = true
omit = ["miio/*cli.py",
"miio/extract_tokens.py",
"miio/tests/*",
"miio/version.py"
]
[tool.coverage.report]
exclude_lines = [
# ignore abstract methods
"raise NotImplementedError",
"def __repr__"
]
[tool.mypy]
# misc disables "Decorated property not supported", see https://github.com/python/mypy/issues/1362
# annotation-unchecked disables "By default the bodies of untyped functions are not checked"
disable_error_code = "misc,annotation-unchecked"
[tool.doc8]
paths = ["docs"]
# docs/index.rst:7: D000 Error in "include" directive:
# invalid option value: (option: "parser"; value: 'myst_parser.sphinx_')
# Parser "myst_parser.sphinx_" not found. No module named 'myst_parser'.
ignore-path-errors = ["docs/index.rst;D000"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"