solver min-release-age usage on update #10947
|
How is [solver]
min-release-age = 10supposed to work when doing |
Answered by
vincere-mori
Jun 8, 2026
Replies: 1 comment
|
Concretely (Poetry 2.4): the value is a number of days. When it's set, Poetry computes a cutoff of
A few things that tripped me up at first:
|
0 replies
Answer selected by
Tsingis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
min-release-ageis applied whenever Poetry asks a remote index (PyPI or another HTTP repository) for the available versions of a package, so it affectsupdate,update --lockandshow --outdatedthe same way - anything that goes through the solver or the "which versions exist" lookup.Concretely (Poetry 2.4): the value is a number of days. When it's set, Poetry computes a cutoff of
now - min-release-age daysand drops any version whose files were uploaded after that cutoff from the candidate list. So withmin-release-age = 10:poetry update/update --lock: the solver only sees versions that are at least 10 days old, so it upgrades to the newest release older than 10 days and skips anythi…