Debian Patches
Status for pdm/2.28.1-1
| Patch | Description | Author | Forwarded | Bugs | Origin | Last update |
|---|---|---|---|---|---|---|
| 0001-tests-locate-bash-completion-script-via-importlib.res.patch | tests: locate completion scripts via importlib.resources Two tests in tests/cli/test_completion.py look up the shipped shell completion scripts at <repo root>/src/pdm/cli/completions/pdm.*, i.e. relative to the source checkout layout: test_completion_bash_runs_without_bash_completion_pkg (regression test for upstream issue #3793) and test_completion_script_is_up_to_date. Debian runs the test suite against the built and unpacked wheel in .pybuild/cpython3_X.Y/build/, where only pyproject.toml and tests/ are copied over from the source tree and the package itself lives at pdm/ (no src/ directory), so both tests fail with "No such file or directory". . Read the scripts through importlib.resources instead, the same mechanism `pdm completion bash` itself uses (see src/pdm/cli/commands/completion.py). This works both in a source checkout and against an installed pdm. . The bash test additionally prepends <repo root>/.venv/bin to PATH so that the completion driver finds the `pdm` executable of the upstream development virtualenv; that directory does not exist in a Debian build, where pdm is already on PATH, so the line is dropped along with the source-tree lookup it derives from. |
Boyuan Yang <byang@debian.org> | no | 2026-08-17 |
All known versions for source package 'pdm'
- 2.28.1-1 (forky, sid)
- 2.20.1+ds1-2 (trixie)
- 2.2.1+ds1-1 (bookworm)
