ci(framework): Migrate pyproject.toml to use [project]#6651
Merged
danieljanes merged 27 commits intomainfrom Mar 3, 2026
Merged
ci(framework): Migrate pyproject.toml to use [project]#6651danieljanes merged 27 commits intomainfrom
danieljanes merged 27 commits intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Migrates Flower’s Poetry configuration to PEP 621-style [project] metadata and updates CI/docs/nightly tooling to align with the new pyproject structure.
Changes:
- Move package metadata and runtime dependencies from
[tool.poetry]to[project]across framework/devtool (and the e2e strategies project). - Update GitHub Actions and contributor docs to use
python -m poetry ...and explicit dependency selection (--with dev,--only main,--all-extras). - Replace brittle
sed-based nightly metadata edits with a small Python helper (framework/dev/pyproject_meta.py).
Reviewed changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
framework/pyproject.toml |
Converts framework package metadata/deps to [project], adds optional-deps and URLs, reorganizes dev requirements. |
framework/e2e/strategies/pyproject.toml |
Adds [project] metadata/dependencies for the strategies e2e Poetry project. |
framework/docs/source/how-to-upgrade-to-flower-1.0.rst |
Updates Poetry upgrade instructions to use python -m poetry install. |
framework/docs/source/contributor-tutorial-get-started-as-a-contributor.rst |
Updates dev install command to include the dev group. |
framework/docs/source/contributor-how-to-write-documentation.rst |
Updates doc build commands to python -m poetry run .... |
framework/docs/source/contributor-how-to-set-up-a-virtual-env.rst |
Updates virtualenv setup/activation instructions for Poetry. |
framework/docs/source/contributor-how-to-install-development-versions.rst |
Updates prerelease install instructions to python -m poetry install. |
framework/dev/pyproject_meta.py |
New helper to read/update [project] name/version. |
framework/dev/publish-nightly.sh |
Uses pyproject_meta.py instead of sed to set nightly name/version. |
dev/pyproject.toml |
Migrates devtool package metadata/deps to [project]. |
.github/workflows/framework-test.yml |
Installs dependencies with --with dev --all-extras. |
.github/workflows/framework-release-nightly.yml |
Reads name/version via pyproject_meta.py instead of poetry version. |
.github/workflows/framework-e2e.yml |
Adjusts Poetry install usage (--with dev --all-extras, --only main). |
.github/workflows/framework-docs.yml |
Ensures docs job installs with the dev group. |
.github/workflows/framework-docs-update-translations.yml |
Uses Poetry dev group instead of extra pip install. |
.github/workflows/framework-devtools.yml |
Installs with the dev group for tool checks. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
chongshenng
reviewed
Mar 3, 2026
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
framework/pyproject.tomlfrom[tool.poetry]to[project]and[dependency-groups](PEP-621 and PEP-735)