ci(framework:skip): Replace framework Poetry setup with uv#7202
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Flower framework Python package build configuration to use uv_build (PEP 517) instead of the Poetry build backend, while preserving the existing package layout (flwr under py/) and excluding *_test.py from build artifacts.
Changes:
- Switched
[build-system]frompoetry-coretouv_build. - Migrated package layout configuration from
[tool.poetry]to[tool.uv.build-backend](module name/root). - Kept
*_test.pyexcluded viasource-exclude.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
* origin/main: feat(framework): Add SuperExec Executor abstraction (#7174)
panh99
previously approved these changes
May 21, 2026
danieljanes
reviewed
May 22, 2026
| [build-system] | ||
| requires = ["poetry-core>=2.1.3"] | ||
| build-backend = "poetry.core.masonry.api" | ||
| requires = ["uv_build>=0.11.15,<0.12"] |
Member
There was a problem hiding this comment.
There's no uv_build on PyPI, only uv-build
…backend * origin/main: feat(framework): Add token-file support to Task Executors (#7206) break(framework): Raise Python baseline to 3.11 and update CI/dev tooling (#7190) # Conflicts: # dev/bootstrap-uv.sh # dev/setup-defaults.sh # dev/venv-create.sh # dev/venv-delete.sh # dev/venv-reset.sh # framework/AGENTS.md # framework/docs/source/contributor-how-to-set-up-a-virtual-env.rst # framework/docs/source/contributor-tutorial-get-started-as-a-contributor.rst # framework/uv.md
danieljanes
approved these changes
May 23, 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.
Follow-up to #6693.
The framework build-backend switch has been split out into #7223.
What changed
dev/bootstrap.shto install framework dependencies withuv syncinstead of installing Poetry and runningpython -m poetry install; the default Python now follows the current framework baseline,3.11.14.dev/bootstrap-uv.sh,dev/setup-defaults.sh,dev/venv-*.sh, andframework/dev/build-uv.shwrappers/helpers so the uv-backed scripts are the single entry points.uv syncduring post-create, and skip installing thetaplopackage into the venv because the Dockerfile already installs the working GitHub-sourcedtaplobinary globally.uv version,uv build, anduv publish.dev/README.md, andframework/uv.mdso framework setup, build, docs, and development-version instructions describe uv instead of Poetry.Scope
This PR removes Poetry from the framework setup, devcontainer, docs, and release-helper paths left after #6693. It does not switch the package build backend; that change is now in #7223.
Validation
bash -n dev/bootstrap.shbash -n .devcontainer/post-create.shbash -n framework/dev/build.shbash -n framework/dev/publish-nightly.shbash -n framework/dev/release/publish-wheel.shpython -m json.tool .devcontainer/devcontainer.jsonUV_CACHE_DIR=/private/tmp/flower-uv-cache-7202 uv lock --check --project frameworkUV_CACHE_DIR=/private/tmp/flower-uv-cache-7202 uv run --project dev python -m devtool.check_pr_title 'ci(framework:skip): Replace framework Poetry setup with uv'