oliver-zehentleitner / maity

cli: lock-check holds the runner package's setuptools pin too (cli/runner/pyproject.toml is not checked)

Sign in to report

tsk-xtx738c5hatx Proposed

Audit round 6 (tsk-hgnbapyw7hnh), read at 046a4d3b. Kind: design gap (a rule applied to one of two copies).

What is wrong

  • cli/runner/pyproject.toml:2 pins setuptools==84.2.1 with the comment "the same pin as ../pyproject.toml and ../requirements/release.in".
  • cli/Makefile:54 lock-check runs lock_check.py pins setuptools pyproject.toml requirements/release.in --extra dev for cli/pyproject.toml only. cli/tests/test_runner_package.py:59-68 checks versions and the maity pin, not the build backend.
  • If make lock moves setuptools, the runner keeps the old pin unnoticed and make release-build builds it without isolation against the new one.

Proposal

  • Add a second lock_check.py pins setuptools runner/pyproject.toml requirements/release.in to lock-check and update the comment at cli/Makefile:36-39.

Effort / risk: S. Low.