Skip to content

dependabot: raise a pip floor only when the range no longer covers the release - #81

Merged
tae898 merged 1 commit into
mainfrom
chore/dependabot-increase-if-necessary
Oct 26, 2026
Merged

tae898 merged 1 commit into
mainfrom
chore/dependabot-increase-if-necessary

Conversation

@tae898

@tae898 tae898 commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

The lower bounds in pyproject.toml are the oldest versions this package supports, not the newest it was tested with. The "Dependency floor audit" job in test-jvm.yml resolves exactly those floors (--resolution lowest-direct, on every supported Python) and runs pip-audit on them, so a floor that is too old or vulnerable fails CI.

Dependabot's default strategy turned every >= floor into a PR that raised it to the newest release (numpy >=2.4.6, polars >=2.0.0, jpype1 >=1.7.1, pyarrow >=26.0.0, redis >=8.1.0, and so on). That locks users out of older environments for no reason, and it would leave the floor audit checking the newest versions instead of the oldest.

This sets versioning-strategy: increase-if-necessary on the pip block. Dependabot then raises a floor only when a new release falls outside the declared range. A floor that is vulnerable or no longer installs is still caught by the floor audit and raised by hand, with the reason written beside it in pyproject.toml (as for setuptools). The github-actions block is unchanged.

Checked locally: the file validates against the Dependabot schema (check-jsonschema --builtin-schema vendor.dependabot), yamllint is clean, and actionlint is clean on all workflows.

Once this is merged, the open pip floor PRs (#55, #56, #58 to #65) are closed with a pointer here.

🤖 Generated with Claude Code

…e release

The lower bounds in pyproject.toml are the oldest versions the package
supports. The "Dependency floor audit" job resolves exactly those floors
(--resolution lowest-direct, on every supported Python) and runs pip-audit on
them. Dependabot's default strategy turned every ">=" floor into a PR that
raised it to the newest release, which locks users out for no reason.

increase-if-necessary raises a floor only when a new version falls outside the
declared range, so the floors stay the oldest supported versions and the audit
stays meaningful. A floor that is vulnerable or no longer installs is still
caught by the audit and raised by hand.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant