Files
turn-up-arch/pyproject.toml
T
Sean Doran 1552d73412 Refactor: extract audio.py, add 50 unit tests
- Extract MPRISController and PulseController into src/turnup/audio.py;
  turnupd.py imports from there, dropping ~270 lines of duplicated code
- Add [project.optional-dependencies] dev = [pytest] and pytest testpaths
  to pyproject.toml
- Add tests/test_audio.py: 31 tests covering MPRISController player
  matching, volume clamping, cache TTL, and PulseController MPRIS-first
  routing, PA fallback, and drain_events
- Add tests/test_protocol.py: 19 tests covering parse_messages framing,
  multi-message buffers, garbage skipping, and knob conversion helpers
- All 50 tests pass (pytest 9.0, Python 3.14)
2026-02-27 18:40:13 -05:00

43 lines
917 B
TOML

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "turnup"
version = "1.3.0"
description = "USB serial knob/button mixer daemon for PipeWire/PulseAudio on Linux"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.10"
dependencies = [
"pyserial>=3.5",
"pulsectl>=22.0",
"tomli>=1.1; python_version < '3.11'",
]
[project.optional-dependencies]
dev = ["pytest>=8.0"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[project.scripts]
turnupd = "turnup.turnupd:main"
[project.urls]
Homepage = "https://github.com/sean351/turn-up-arch"
Repository = "https://github.com/sean351/turn-up-arch"
Issues = "https://github.com/sean351/turn-up-arch/issues"
[tool.hatch.build.targets.wheel]
packages = ["src/turnup"]
[tool.hatch.build.targets.sdist]
include = [
"src/",
"contrib/",
"README.md",
"LICENSE",
"pyproject.toml",
]