Skip to content

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

Merged
dixonjoel merged 2 commits into
mainfrom
users/jdixon/poetry-min-release-age
Jun 16, 2026
Merged

poetry.toml: Set min-release-age to 2 weeks#139
dixonjoel merged 2 commits into
mainfrom
users/jdixon/poetry-min-release-age

Conversation

@dixonjoel

Copy link
Copy Markdown
Contributor

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?

Tested the same change in other repos.

Copilot AI review requested due to automatic review settings June 15, 2026 21:29
@dixonjoel dixonjoel requested a review from csjall as a code owner June 15, 2026 21:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR configures project-local Poetry settings to enforce a minimum package release age during dependency resolution, aligning Poetry’s solver behavior with the organization’s Renovate configuration.

Changes:

  • Add solver.min-release-age set to 14 days in poetry.toml.
  • Add solver.min-release-age-exclude to exempt ni-python-styleguide from the minimum-age constraint.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread poetry.toml
@dixonjoel dixonjoel changed the title git push --set-upstream origin users/jdixon/poetry-min-release-age poetry.toml: Set min-release-age to 2 weeks Jun 15, 2026
@dixonjoel dixonjoel enabled auto-merge (squash) June 16, 2026 14:09
@dixonjoel dixonjoel disabled auto-merge June 16, 2026 14:12
@dixonjoel dixonjoel merged commit 8787f05 into main Jun 16, 2026
29 checks passed
@dixonjoel dixonjoel deleted the users/jdixon/poetry-min-release-age branch June 16, 2026 14:12
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.

3 participants