The union of main and the four slices cannot be collected by pytest: an import-file-mismatch on test_protocol.py (the frame wire's, the broker's) and test_server.py (the frame server's, the pointer driver's). Per-directory runs never hit it, so this is what the union run is for. The tempting fix is --import-mode=importlib, and it is wrong: importlib does not put a test file's directory on sys.path, which the slices' tests rely on for sibling imports (from conftest import HANG, from test_ops import RecordingSink). That trades a collection error for an ImportError. Renaming the two colliding modules keeps the import behaviour and fixes the actual problem: tests/pointer/test_server.py -> test_pointer_server.py tests/sessions/unit/test_protocol.py -> test_broker_protocol.py tests: 551 passed.
30 lines
1.1 KiB
TOML
30 lines
1.1 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=68"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "hhstream"
|
|
version = "0.1.0"
|
|
description = "Publish a headless Hyprland session's frames on a Unix socket"
|
|
requires-python = ">=3.11"
|
|
# The frame socket, the CLI and the broker are stdlib-only by policy
|
|
# (docs/CONTRACT-sessions.md §6, rule 3). The pointer driver is the one
|
|
# exception: talking Wayland means speaking the wire protocol, and
|
|
# re-implementing libwayland's marshalling here would be a worse idea than
|
|
# a dependency.
|
|
dependencies = ["pywayland>=0.4"]
|
|
|
|
[project.scripts]
|
|
hhstream-server = "hhstream.server:main"
|
|
hhstream-client = "hhstream.client:main"
|
|
# The one front door: frames/launch/record verbs plus the `session` namespace.
|
|
hhstream = "hhstream.cli:main"
|
|
# The session daemon. A separate process on purpose: it outlives every CLI call.
|
|
hhstreamd = "hhstreamd.__main__:main"
|
|
# The pointer driver. Its own process because a Wayland client needs its own
|
|
# connection, and a blocked one must not stall the broker.
|
|
hhstream-pointer = "hhstream_pointer.__main__:main"
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["src"]
|