build: make pyproject the single source of dependency truth

requirements.txt / requirements-dev.txt used to duplicate the dependency
pins from pyproject.toml by hand, which can silently drift. Point them at
the package itself (`.` and `-e .[dev]`) so the pins live in exactly one
place; `pip install -r requirements*.txt` keeps working.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Dieter Schlüter 2026-07-07 10:36:00 +02:00
commit 946de07d47
2 changed files with 8 additions and 11 deletions

View file

@ -1,7 +1,4 @@
# Development/test dependencies (mirrors [project.optional-dependencies].dev # Development install. Editable package plus the [dev] extra (pytest, ruff,
# in pyproject.toml). # mypy, ...). pyproject.toml remains the single source of truth; there is no
-r requirements.txt # manual dependency mirror to keep in sync.
pytest>=7.4 -e .[dev]
ruff>=0.6
mypy>=1.11
types-requests

View file

@ -1,4 +1,4 @@
# Runtime dependencies (mirrors [project.dependencies] in pyproject.toml). # Runtime install. pyproject.toml is the single source of truth for
# Provided for users who want to verify/install dependencies without pip's # dependencies; this file just installs the package (and thus its declared
# PEP 517 build isolation, e.g. `pip install -r requirements.txt`. # runtime dependencies) so `pip install -r requirements.txt` keeps working.
requests>=2.31,<3 .