| 1 |
[project] |
| 2 |
name = "bthome-ble" |
| 3 |
version = "3.24.0" |
| 4 |
description = "BThome BLE support" |
| 5 |
authors = [{ name = "Ernst Klamer", email = "[email protected]" }] |
| 6 |
license = "MIT" |
| 7 |
readme = "README.md" |
| 8 |
requires-python = ">=3.11" |
| 9 |
dynamic = ["classifiers", "dependencies", "optional-dependencies"] |
| 10 |
|
| 11 |
[project.urls] |
| 12 |
"Repository" = "https://github.com/bluetooth-devices/bthome-ble" |
| 13 |
"Documentation" = "https://bthome-ble.readthedocs.io" |
| 14 |
"Bug Tracker" = "https://github.com/bluetooth-devices/bthome-ble/issues" |
| 15 |
"Changelog" = "https://github.com/bluetooth-devices/bthome-ble/blob/main/CHANGELOG.md" |
| 16 |
|
| 17 |
[tool.poetry] |
| 18 |
classifiers = [ |
| 19 |
"Development Status :: 2 - Pre-Alpha", |
| 20 |
"Intended Audience :: Developers", |
| 21 |
"Natural Language :: English", |
| 22 |
"Operating System :: OS Independent", |
| 23 |
"Topic :: Software Development :: Libraries", |
| 24 |
] |
| 25 |
packages = [ |
| 26 |
{ include = "bthome_ble", from = "src" }, |
| 27 |
] |
| 28 |
|
| 29 |
[tool.poetry.dependencies] |
| 30 |
python = "^3.11,<3.15" |
| 31 |
|
| 32 |
|
| 33 |
Sphinx = {version = ">=5,<10", optional = true} |
| 34 |
sphinx-rtd-theme = {version = ">=1,<4", optional = true} |
| 35 |
myst-parser = {version = ">=5.1.0,<5.2", optional = true} |
| 36 |
bluetooth-sensor-state-data = ">=1.6.1" |
| 37 |
sensor-state-data = ">=2.19.0" |
| 38 |
bluetooth-data-tools = ">=1.29.18" |
| 39 |
cryptography = ">=49.0.0" |
| 40 |
habluetooth = ">=6.26.5" |
| 41 |
|
| 42 |
[tool.poetry.extras] |
| 43 |
docs = [ |
| 44 |
"myst-parser", |
| 45 |
"sphinx", |
| 46 |
"sphinx-rtd-theme", |
| 47 |
] |
| 48 |
|
| 49 |
[tool.poetry.group.dev.dependencies] |
| 50 |
pytest = "^9.1" |
| 51 |
pytest-cov = "^7.1" |
| 52 |
|
| 53 |
[tool.semantic_release] |
| 54 |
branch = "main" |
| 55 |
version_toml = ["pyproject.toml:project.version"] |
| 56 |
version_variable = "src/bthome_ble/__init__.py:__version__" |
| 57 |
build_command = "pip install poetry && poetry build" |
| 58 |
|
| 59 |
[tool.pytest.ini_options] |
| 60 |
addopts = "-v -Wdefault --cov=bthome_ble --cov-report=term-missing:skip-covered" |
| 61 |
pythonpath = ["src"] |
| 62 |
|
| 63 |
[tool.coverage.run] |
| 64 |
branch = true |
| 65 |
|
| 66 |
[tool.coverage.report] |
| 67 |
exclude_lines = [ |
| 68 |
"pragma: no cover", |
| 69 |
"@overload", |
| 70 |
"if TYPE_CHECKING", |
| 71 |
"raise NotImplementedError", |
| 72 |
] |
| 73 |
|
| 74 |
[tool.ruff] |
| 75 |
line-length = 88 |
| 76 |
target-version = "py311" |
| 77 |
|
| 78 |
[tool.ruff.lint] |
| 79 |
select = [ |
| 80 |
"E", |
| 81 |
"W", |
| 82 |
"F", |
| 83 |
"I", |
| 84 |
"UP", |
| 85 |
"PT006", |
| 86 |
"PT007", |
| 87 |
"PLC0415", |
| 88 |
] |
| 89 |
|
| 90 |
[tool.ruff.lint.pycodestyle] |
| 91 |
max-line-length = 100 |
| 92 |
|
| 93 |
[tool.ruff.lint.isort] |
| 94 |
known-first-party = ["bthome_ble", "tests"] |
| 95 |
|
| 96 |
[tool.mypy] |
| 97 |
check_untyped_defs = true |
| 98 |
disallow_any_generics = true |
| 99 |
disallow_incomplete_defs = true |
| 100 |
disallow_untyped_defs = true |
| 101 |
mypy_path = "src/" |
| 102 |
no_implicit_optional = true |
| 103 |
show_error_codes = true |
| 104 |
warn_unreachable = true |
| 105 |
warn_unused_ignores = true |
| 106 |
exclude = [ |
| 107 |
'docs/.*', |
| 108 |
'setup.py', |
| 109 |
] |
| 110 |
|
| 111 |
[[tool.mypy.overrides]] |
| 112 |
module = "tests.*" |
| 113 |
allow_untyped_defs = true |
| 114 |
|
| 115 |
[[tool.mypy.overrides]] |
| 116 |
module = "docs.*" |
| 117 |
ignore_errors = true |
| 118 |
|
| 119 |
[build-system] |
| 120 |
requires = ["poetry-core>=2.0.0"] |
| 121 |
build-backend = "poetry.core.masonry.api" |