Upgrade transitive Python dependency version
MSALPin a transitive dependency version using the strategy appropriate for the file type and package manager. For pyproject.toml: uv uses [tool.uv].constraint-dependencies, PDM uses [tool.pdm.overrides], and other managers add a direct dependency. For requirements.txt and Pipfile: appends the dependency. For pyproject.toml, uv.lock, poetry.lock, and pdm.lock are regenerated natively without executing the package manager. For Pipfile, Pipfile.lock is regenerated natively by consulting the project's package index over the network. Not safe to use as a precondition: consults the package index over the network and publishes per-project state shared with other dependency recipes.
org. openrewrite. python. UpgradeTransitiveDependencyVersionRequired
The PyPI package name of the transitive dependency to pin.
The PEP 508 version constraint (e.g., >=2023.7.22).
mod run . --recipe= org. openrewrite. python. UpgradeTransitiveDependencyVersion \
-P packageName= certifi \
-P version= '>=2023.7.22'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.