Skip to content

poetry.toml: Set min-release-age to 2 weeks#1304

Merged
bkeryan merged 3 commits into
mainfrom
users/bkeryan/poetry-min-release-age
May 13, 2026
Merged

poetry.toml: Set min-release-age to 2 weeks#1304
bkeryan merged 3 commits into
mainfrom
users/bkeryan/poetry-min-release-age

Conversation

@bkeryan
Copy link
Copy Markdown
Collaborator

@bkeryan bkeryan commented May 13, 2026

What does this Pull Request accomplish?

Configure Poetry to use a minimum release age of 2 weeks, the same as in https://github.com/ni/python-renovate-config

Update poetry.lock to reference Poetry 2.4.0 or above, which is when the solver.min-release-age setting was added.

Why should this Pull Request be merged?

poetry update doesn't support specifying a version number, which causes problems when Renovate tries to use it to update to a version that is not the latest. Configuring both Renovate and Poetry to use the same minimum release age should improve this behavior. It should also enforce the minimum release age for lockFileMaintenance.

What testing has been done?

I tested the approach by running Renovate in a personal fork of the nitypes-python repo.

@bkeryan bkeryan requested review from csjall and dixonjoel as code owners May 13, 2026 20:35
@bkeryan bkeryan requested a review from mshafer-NI May 13, 2026 20:35
Comment thread packages/sdk/poetry.toml Outdated
@bkeryan
Copy link
Copy Markdown
Collaborator Author

bkeryan commented May 13, 2026

Bypassing rules because the py32 runner failed to start.

@bkeryan bkeryan merged commit 1964c00 into main May 13, 2026
23 checks passed
@bkeryan bkeryan deleted the users/bkeryan/poetry-min-release-age branch May 13, 2026 23:35
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.

2 participants