Debian Codegraph @

pyproject.toml

raw
1 [project]
2 name = "aiocomelit"
3 version = "3.0.0"
4 requires-python = ">=3.12"
5 description = "Python library to control Comelit Simplehome"
6 authors = [
7 { name = "Simone Chemelli", email = "[email protected]" },
8 ]
9 license = "Apache-2.0"
10 readme = "README.md"
11 classifiers = [
12 "Development Status :: 5 - Production/Stable",
13 "Intended Audience :: Developers",
14 "Natural Language :: English",
15 "Operating System :: OS Independent",
16 "Programming Language :: Python :: 3",
17 "Programming Language :: Python :: 3 :: Only",
18 "Programming Language :: Python :: 3.12",
19 "Programming Language :: Python :: 3.13",
20 "Programming Language :: Python :: 3.14", # renovate: customPinnedDependency=python,datasource=python-version
21 "Topic :: Software Development :: Libraries",
22 ]
23 dependencies = [
24 "aiohttp (>=3.12.7)",
25 "orjson (>=3.10,<4)",
26 "pint",
27 ]
28
29 [project.urls]
30 "Homepage" = "https://github.com/chemelli74/aiocomelit"
31 "Bug Tracker" = "https://github.com/chemelli74/aiocomelit/issues"
32 "Changelog" = "https://github.com/chemelli74/aiocomelit/blob/main/CHANGELOG.md"
33
34 [dependency-groups]
35 dev = [
36 "aioresponses",
37 "colorlog",
38 "pytest>=9.0,<10",
39 "pytest-anyio",
40 "pytest-cov>=5,<8",
41 ]
42
43 [tool.uv-version]
44 # Source of truth for the uv version. All other version references must be derived from this value.
45 version = "0.12.13" # renovate: depName=uv datasource=pypi
46
47 [tool.semantic_release]
48 version_toml = ["pyproject.toml:project.version"]
49 version_variables = ["src/aiocomelit/__init__.py:__version__",]
50
51 # Extract version from [tool.uv-version], single source of truth.
52 build_command = """
53 UV_VERSION=$(./scripts/get-pyproject-uv.version.sh)
54 python -m pip install "uv==$UV_VERSION"
55 uv lock --upgrade-package "$PACKAGE_NAME"
56 git add uv.lock
57 uv build
58 """
59
60 [tool.semantic_release.changelog]
61 exclude_commit_patterns = [
62 "chore*",
63 "ci*",
64 ]
65
66 [tool.semantic_release.changelog.environment]
67 keep_trailing_newline = true
68
69 [tool.semantic_release.branches.main]
70 match = "main"
71
72 [tool.semantic_release.branches.noop]
73 match = "(?!main$)"
74 prerelease = true
75
76 [tool.pytest.ini_options]
77 addopts = "-v -Wdefault"
78 anyio_mode = "auto"
79 pythonpath = ["src"]
80 testpaths = ["tests"]
81
82 [tool.coverage.run]
83 branch = true
84
85 [tool.coverage.report]
86 exclude_lines = [
87 "pragma: no cover",
88 "@overload",
89 "if TYPE_CHECKING",
90 "raise NotImplementedError",
91 'if __name__ == "__main__":',
92 ]
93
94 [tool.mypy]
95 check_untyped_defs = true
96 disallow_any_generics = true
97 disallow_incomplete_defs = true
98 disallow_subclassing_any = true
99 disallow_untyped_calls = true
100 disallow_untyped_decorators = true
101 disallow_untyped_defs = true
102 no_implicit_optional = true
103 show_error_codes = true
104 strict_equality = true
105 warn_incomplete_stub = true
106 warn_redundant_casts = true
107 warn_return_any = true
108 warn_unreachable = true
109 warn_unused_configs = true
110 warn_unused_ignores = true
111
112
113 [[tool.mypy.overrides]]
114 module = "tests.*"
115 allow_untyped_defs = true
116 disallow_untyped_decorators = false
117
118 [tool.setuptools.packages.find]
119 where = ["src"]
120 include = ["aiocomelit*"]
121
122 [build-system]
123 requires = ["setuptools>=69", "wheel"]
124 build-backend = "setuptools.build_meta"