Skip to content

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

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

poetry.toml: Set min-release-age to 2 weeks#971
bkeryan merged 4 commits into
masterfrom
users/bkeryan/poetry-min-release-age

Conversation

@bkeryan
Copy link
Copy Markdown
Collaborator

@bkeryan bkeryan commented May 13, 2026

  • This contribution adheres to CONTRIBUTING.md.
  • I've updated CHANGELOG.md if applicable.
  • I've added tests applicable for this pull request

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 changed the title Users/bkeryan/poetry min release age poetry: Set min-release-age to 2 weeks May 13, 2026
@bkeryan bkeryan requested a review from mshafer-NI May 13, 2026 20:39
@bkeryan bkeryan changed the title poetry: Set min-release-age to 2 weeks poetry.toml: Set min-release-age to 2 weeks May 13, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Test Results

    48 files  ±0      48 suites  ±0   1h 24m 2s ⏱️ + 4m 50s
 3 209 tests ±0   2 556 ✅ ±0     653 💤 ±0  0 ❌ ±0 
62 228 runs  ±0  49 398 ✅ ±0  12 830 💤 ±0  0 ❌ ±0 

Results for commit 22ff961. ± Comparison against base commit e165a40.

@bkeryan bkeryan merged commit 9aa503e into master May 13, 2026
34 checks passed
@bkeryan bkeryan deleted the users/bkeryan/poetry-min-release-age branch May 13, 2026 22:50
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