forked from AppDaemon/appdaemon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
151 lines (130 loc) · 3.8 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
[project]
name = "appdaemon"
description="Apps for the Home Assistant home automation package."
readme = "README.md"
authors = [
{name = "Andrew I Cockburn", email = "[email protected]"},
]
dynamic = ["version"] # The verison is computed dynamically. See `tool.setuptools.dynamic` section below.
license= { file = "LICENSE.md" }
requires-python = ">=3.8"
keywords=[ "appdaemon", "home", "automation" ]
dependencies = [
'importlib-metadata; python_version<"3.8"',
'aiohttp ~= 3.8.4',
'aiohttp_jinja2 ~= 1.5.1',
'astral ~= 3.2',
'bcrypt ~= 4.0.1',
'deepdiff == 6.3.0',
'feedparser ~= 6.0.10',
'iso8601 ~= 1.1.0',
'paho-mqtt ~= 1.6.1',
'pid ~= 3.0.4',
'python-dateutil ~= 2.8.2',
'python-socketio >= 5.5,< 5.9',
'pytz >= 2022.7.1,< 2023.4.0',
'pyyaml ~= 6.0',
'requests ~= 2.28.2',
'sockjs ~= 0.11.0',
'uvloop==0.17.0; sys_platform != "win32"',
'websocket-client ~= 1.5.1',
'tomli ~= 2.0.1',
'tomli_w ~= 1.0.0'
]
classifiers= [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Home Automation",
]
[project.urls]
documentation = "https://appdaemon.readthedocs.io"
repository = "https://github.com/AppDaemon"
changelog = "https://github.com/AppDaemon/appdaemon/blob/master/docs/HISTORY.rst"
# Declare development dependencies as optional
[project.optional-dependencies]
dev = [
"pip-tools ~= 6.12.3",
"build ~= 0.10.0",
"flake8 ~= 6.0.0",
"black >= 23.1,< 23.4",
'pre-commit >= 3.1.1,< 3.3.0; python_version>"3.7"', # pre-commit does not support Python < 3.8
"pytest ~= 7.2.1",
"ruff~= 0.0.261"
]
# Dependencies required to build the documentation using sphinx
doc = [
"sphinx-autobuild ~= 2021.3.14",
"sphinx-rtd-theme == 1.1.1",
"pygments ~= 2.14.0",
"myst-parser == 1.0.0",
]
# Define the main CLI script
[project.scripts]
appdaemon = "appdaemon.__main__:main"
# Use setuptools as the build system
[build-system]
requires = ["setuptools >= 61.0.0"]
build-backend = "setuptools.build_meta"
# Tell setuptools how to find the package source files
# https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
[tool.setuptools.packages.find]
exclude = ["contrib", "docs", "docs.*", "tests*"]
# Dynamically read version from version.py module
# https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html#dynamic-metadata
[tool.setuptools.dynamic]
version = {attr = "appdaemon.version.__version__"}
# Taken from: https://docs.pytest.org/en/7.1.x/explanation/goodpractices.html
[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
]
# black configuration
[tool.black]
line-length = 120
# Ruff
[tool.ruff]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
select = ["E", "F"]
ignore = []
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["E", "F", "UP"]
unfixable = []
src = ["appdaemon"]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
per-file-ignores = {}
line-length = 500
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.8.
target-version = "py38"
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10