-
Notifications
You must be signed in to change notification settings - Fork 418
/
pyproject.toml
149 lines (128 loc) · 3.83 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
[project]
name = "appdaemon"
description="Apps for the Home Assistant home automation package."
readme = "README.md"
authors = [
{name = "Andrew I Cockburn", email = "appdaemon@acockburn.com"},
]
dynamic = ["version"] # The verison is computed dynamically. See `tool.setuptools.dynamic` section below.
license= { file = "LICENSE.md" }
requires-python = ">=3.10"
keywords=[ "appdaemon", "home", "automation" ]
dependencies = [
'importlib-metadata; python_version<"3.8"',
'aiohttp >= 3.9.0,< 3.11.0',
'aiohttp_jinja2 >= 1.5.1,< 1.7.0',
'astral ~= 3.2',
'bcrypt >= 4.0.1,< 4.3.0',
'deepdiff == 8.0.1',
'feedparser ~= 6.0.10',
'iso8601 >= 1.1,< 2.2',
'paho-mqtt >= 1.6.1,< 2.2.0',
'pid ~= 3.0.4',
'python-dateutil >= 2.8.2,< 2.10.0',
'python-socketio >= 5.5,< 5.12',
'pytz >= 2022.7.1,< 2024.3.0',
'pyyaml ~= 6.0.1',
'requests >= 2.28.2,< 2.33.0',
'sockjs >= 0.11,< 0.14',
'uvloop==0.20.0; sys_platform != "win32"',
'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.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"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,< 7.5.0",
"build >= 0.10,< 1.3",
"flake8 ~= 7.1.1",
"black >= 23.1,< 24.9",
'pre-commit >= 3.1.1,< 3.9.0; python_version>"3.7"', # pre-commit does not support Python < 3.8
"pytest >= 7.2.1,< 8.4.0",
"ruff>= 0.0.261,< 0.7.0"
]
# Dependencies required to build the documentation using sphinx
doc = [
"sphinx-autobuild >= 2021.3.14,< 2024.10.0",
"sphinx-rtd-theme == 2.0.0",
"pygments >= 2.14,< 2.19",
"myst-parser == 4.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.10.
target-version = "py310"
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10