ci(framework): Migrate to latest pip/setuptools/poetry#6644
Closed
danieljanes wants to merge 4 commits intoimprove-ci-robustnessfrom
Closed
ci(framework): Migrate to latest pip/setuptools/poetry#6644danieljanes wants to merge 4 commits intoimprove-ci-robustnessfrom
danieljanes wants to merge 4 commits intoimprove-ci-robustnessfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates the Flower framework's Python tooling from Poetry 2.1.3 to Poetry 2.3.2 and updates all pyproject.toml files to adopt the standardized PEP 621 [project] metadata format instead of the Poetry-specific [tool.poetry] table. Poetry is now installed via pipx in CI, and the python -m poetry invocation is replaced with plain poetry throughout all scripts and workflows.
Changes:
- Upgrade pip (25.3 → 26.0.1), setuptools (80.9.0 → 82.0.0), and Poetry (2.1.3 → 2.3.2) across all scripts and CI configs
- Migrate
pyproject.tomlfiles from[tool.poetry]to standard[project]tables (PEP 621), retaining[tool.poetry]only for Poetry-specific fields likepackagesandexclude - Replace
python -m poetrywithpoetry(and usepipxto install poetry in CI bootstrap)
Reviewed changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
framework/pyproject.toml |
Migrated to [project], updated dep format from caret to explicit ranges, updated dev dep versions |
framework/e2e/strategies/pyproject.toml |
Migrated to [project], keeps path dep in [tool.poetry.dependencies] |
dev/pyproject.toml |
Migrated to [project], updated dep format |
.github/actions/bootstrap/action.yml |
Changed to install poetry via pipx, moved pip/setuptools installs outside the poetry-skip guard |
.github/workflows/framework-e2e.yml |
Replaced python -m poetry with poetry, updated pip version |
.github/workflows/framework-test.yml |
Replaced python -m poetry with poetry |
.github/workflows/framework-release.yml |
Replaced python -m poetry publish with poetry publish |
.github/workflows/framework-docs.yml |
Replaced python -m poetry install with poetry install |
.github/workflows/framework-docs-update-translations.yml |
Replaced python -m poetry and bare pip with python -m pip |
.github/workflows/framework-devtools.yml |
Replaced python -m poetry install with poetry install |
.github/workflows/intelligence-docs.yml |
Replaced python -m poetry install with poetry install |
.github/workflows/build-deploy-non-framework-docs.yml |
Replaced poetry add ../datasets + poetry install with poetry install + pip install ../datasets |
.github/workflows/deprecated-baselines.yml |
Replaced python -m poetry install with poetry install |
.github/workflows/datasets-test.yml |
Replaced python -m poetry install with poetry install |
dev/bootstrap.sh |
Updated tool versions, replaced python -m poetry with poetry |
framework/dev/build.sh |
Replaced python -m poetry build with poetry build |
framework/dev/publish-nightly.sh |
Replaced python -m poetry with poetry |
framework/docs/source/conf.py |
Updated setuptools and pip version references |
framework/docs/source/contributor-tutorial-get-started-as-a-contributor.rst |
Updated Poetry version requirement from 1.3 to 2.3 |
framework/docs/source/contributor-how-to-set-up-a-virtual-env.rst |
Updated Poetry venv commands for Poetry 2.x (poetry shell → poetry install + eval "$(poetry env activate)") |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
This PR migrates to Poetry 2.3.2 and updates
pyproject.tomlto adopt new standardized fields (instead of[tool.poetry]).