build: pin Poetry bootstrap to 2.4.0 to avoid min-release-age conflict - #762
Merged
Conversation
The Makefile bootstrapped an unpinned Poetry, which on 2026-05-19 pulled in virtualenv 21.3.3 (released <7 days prior). Poetry's plugin resolve for `poetry-plugin-export` then locked virtualenv to that exact version while solver.min-release-age=7 (from poetry.toml) filtered it out, breaking `make release-prep` with "virtualenv (21.3.3) doesn't match any versions". Pinning Poetry to an aged-in version (2.4.0) makes CI deterministic and defers any future bumps to a deliberate PR.
Contributor
There was a problem hiding this comment.
Pull request overview
Pins the Poetry version used by the make venv bootstrap to avoid failures caused by poetry.toml’s solver.min-release-age = 7 filtering out very recent transitive dependencies (e.g., virtualenv) during Poetry plugin resolution.
Changes:
- Introduces
POETRY_VERSION ?= 2.4.0in the Makefile with explanatory comments. - Updates the bootstrap package install list to install
poetry==${POETRY_VERSION}instead of unpinnedpoetry.
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
make venvpreviously installed an unpinned Poetry. On 2026-05-19 that picked up Poetry 2.4.1 +virtualenv 21.3.3(both fresh). Poetry's plugin resolve forpoetry-plugin-exportlockedvirtualenvto that exact version, thensolver.min-release-age=7inpoetry.tomlfiltered it out —make release-prepfailed withvirtualenv (21.3.3) doesn't match any versions(failed run).POETRY_VERSION?=2.4.0) in the bootstrap so the resolve no longer races againstmin-release-age. Future Poetry bumps become a deliberate PR.Test plan
RELEASE_TYPE=prep VERSION=0.13.0—make release-prepshould reach the wheel build and complete.make venvfrom a clean checkout installs Poetry 2.4.0 andpoetry installsucceeds.