-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
53 lines (46 loc) · 1.37 KB
/
Copy pathpyproject.toml
File metadata and controls
53 lines (46 loc) · 1.37 KB
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "ebus-broker-register"
version = "0.0.1"
description = "Per-device registration + CA distribution service for the eBus broker quickstart"
readme = "README.md"
requires-python = ">=3.10"
license = { file = "LICENSE" }
authors = [{ name = "Electrification Bus contributors" }]
dependencies = [
"fastapi>=0.110",
"uvicorn[standard]>=0.27",
"jinja2>=3.1",
"tomli>=2.0 ; python_version < '3.11'",
"cryptography>=42.0",
"paho-mqtt>=2.0",
]
[project.optional-dependencies]
# Host-native laptop deployment (Mac MVP): mDNS advertiser via python-zeroconf
# (pulls in ifaddr, which laptop/certs.py also uses for SAN IP enumeration).
laptop = [
"zeroconf>=0.130",
]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.23",
"httpx>=0.27",
"ruff>=0.4",
]
[project.scripts]
ebus-broker-register = "register.app:main"
ebus-laptop = "laptop.run:main"
[tool.hatch.build.targets.wheel]
packages = ["register", "mdns", "laptop"]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.pytest.ini_options]
testpaths = ["laptop/tests", "register/tests"]
asyncio_mode = "auto"
# `live` tests start a real Mosquitto broker (system binary, not a Python
# dependency), so they are opt-in: `pytest -m live`.
markers = ["live: requires a running Mosquitto broker binary"]
addopts = "-m 'not live'"