Update to flit 4 - #7524
Conversation
📝 WalkthroughWalkthroughThe project now requires Flit 4.0.2 or later and below version 5. The release workflows install Flit 4.x. The plugin tutorial reflects the updated ChangesPackaging and release configuration
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7524 +/- ##
==========================================
- Coverage 80.68% 80.67% -0.01%
==========================================
Files 581 581
Lines 47068 47068
==========================================
- Hits 37972 37966 -6
- Misses 9096 9102 +6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pyproject.toml`:
- Line 3: Update the requires build dependency in pyproject.toml to set the Flit
Core lower bound to version 4 while retaining the existing upper bound of 5.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: f125a7fe-b06d-4c89-afcd-a0e00abc7a1a
📒 Files selected for processing (3)
.github/workflows/release.ymldocs/source/howto/plugin_codes.rstpyproject.toml
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
Flit v4 is not available on conda-forge yet se we might want to hold off merging this for now. |
|
I opened PR #7529 to include the fixes to our sdist. There were a lot of files that should not be part of sdist |
|
flit 4.0 is not on conda-forge so this can be merged |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
pyproject.toml (1)
3-3: 🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick winAlign the plugin tutorial with the current Flit build contract.
pyproject.tomlrequiresflit_core >=4.0.2,<5, whiledocs/source/howto/plugin_codes.rststill publishesflit_core >=3.4,<5. Use the same lower bound in the tutorial, or add explicit compatibility guidance for the separate range.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pyproject.toml` at line 3, Update the Flit dependency declaration in the plugin tutorial to use the same lower bound as the pyproject.toml requires entry, changing the documented range to flit_core >=4.0.2,<5 and keeping the tutorial aligned with the current build contract.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@pyproject.toml`:
- Line 3: Update the Flit dependency declaration in the plugin tutorial to use
the same lower bound as the pyproject.toml requires entry, changing the
documented range to flit_core >=4.0.2,<5 and keeping the tutorial aligned with
the current build contract.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 11a5cde6-442b-4a0e-8a54-b2982cdd3d2e
📒 Files selected for processing (1)
pyproject.toml
The main advantage support for PEP-794 (quoting from flit 4 CHANGELOG
Test plan
I checked the output of
uvx flit@4.0.2 buildanduvx flit@3.12 build, specifically checking theRECORDandMETADATAwheel files