Repository navigation
ci(deps): respect version constraints when pinning grace-period-safe … - #920
arjun-rajappa wants to merge 2 commits into
Conversation
…packages Parse requirement specifiers and environment markers from the requirements file and only downgrade to versions that satisfy them. Canonicalize package names (PEP 503) so names like typing_extensions and typing-extensions match, and select the newest candidate by version rather than upload date. Signed-off-by: Arjun Rajappa <arjun.rajappa@ibm.com>
|
❌ @arjun-rajappa the
📝 What should I do to fix it?All proposed commits should include a sign-off in their messages, ideally at the end. ❔ Why it is requiredThe Developer Certificate of Origin (DCO) is a lightweight way for contributors to certify that they wrote or otherwise have the right to submit the code they are contributing to the project. Here is the full text of the DCO, reformatted for readability:
Contributors sign-off that they adhere to these requirements by adding a Git even has a |
Why
pin_safe_versions.pydowngraded recently released packages without looking at the version constraints in the requirements files. It could pin to a version that violates a bound such asfastapi>=0.92.0,<0.129.0. It also silently skipped packages whose names differ only in-,_or., and it could try a back-ported older release before the newest one.