Skip to content

Update Flit release tooling to v4 - #403

Merged
harryswift01 merged 1 commit into
mainfrom
402-bug-flit-publish-fails-with-incompatible-flit
Aug 18, 2026
Merged

Update Flit release tooling to v4#403
harryswift01 merged 1 commit into
mainfrom
402-bug-flit-publish-fails-with-incompatible-flit

Conversation

@harryswift01

Copy link
Copy Markdown
Member

Summary

This PR updates the release tooling to Flit 4 to fix the PyPI publishing failure caused by Flit 3 resolving against the newly released flit_core 4.x. The two major versions are incompatible, resulting in flit publish failing while building the source distribution.

Changes

Flit configuration:

  • Updated the release workflow to use flit>=4,<5 and flit_core>=4,<5.
  • Updated the build-system requirement to flit_core>=4,<5.
  • Added --use-vcs to flit publish to preserve the existing source distribution behaviour under Flit 4.

Impact

  • Restores PyPI publishing by keeping flit and flit_core on compatible major versions.
  • Prevents future major flit_core releases from being pulled into the current Flit release line unexpectedly.
  • Preserves the existing VCS-based source distribution behaviour.

@harryswift01 harryswift01 added this to the 2.4.0 milestone Aug 18, 2026
@harryswift01 harryswift01 self-assigned this Aug 18, 2026
@harryswift01 harryswift01 added the bug Something isn't working label Aug 18, 2026
@harryswift01
harryswift01 requested a review from jimboid August 18, 2026 15:52
@harryswift01
harryswift01 merged commit e4bfa25 into main Aug 18, 2026
43 of 45 checks passed
@harryswift01
harryswift01 deleted the 402-bug-flit-publish-fails-with-incompatible-flit branch August 18, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: flit publish fails with incompatible flit_core 4.x dependency

2 participants