Skip to content

How to update requires_python in pdm.lock when requires-python in pyproject.toml changes? #3135

Answered by frostming
pgarrison asked this question in Q&A
Discussion options

You must be logged in to vote

The requires-python in lock target is independent from project's requires-python, it only copies from the latter when being created first time. You have to run pdm lock --update-reuse --python '>=3.9,<3.12' to update it manually.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@frostming
Comment options

Answer selected by pgarrison
Comment options

You must be logged in to vote
1 reply
@o-moe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants