Skip to content

馃悰 cd: hold flit_core below 4 - #125

Merged
GeigerJ2 merged 1 commit into
masterfrom
fix/cd-flit-core-pin
Aug 26, 2026
Merged

GeigerJ2 merged 1 commit into
masterfrom
fix/cd-flit-core-pin

Conversation

@GeigerJ2

Copy link
Copy Markdown
Contributor

flit~=3.4 caps the command line tool below 4, but flit 3.12 requires only flit_core>=3.12.0 with no upper bound, so a fresh install pairs it with flit_core 4.x. That major drops the gen_setup_py argument which flit 3.12 still passes, and flit publish dies before uploading anything:

TypeError: SdistBuilder.build() got an unexpected keyword argument
'gen_setup_py'

Pin the library to the same range build-system.requires already asks for, so the publish step builds with the flit_core the package declares it supports.

`flit~=3.4` caps the command line tool below 4, but flit 3.12 requires
only `flit_core>=3.12.0` with no upper bound, so a fresh install pairs
it with `flit_core` 4.x. That major drops the `gen_setup_py` argument
which flit 3.12 still passes, and `flit publish` dies before uploading
anything:

    TypeError: SdistBuilder.build() got an unexpected keyword argument
    'gen_setup_py'

Pin the library to the same range `build-system.requires` already asks
for, so the publish step builds with the flit_core the package declares
it supports.
@GeigerJ2
GeigerJ2 merged commit e420c1d into master Aug 26, 2026
11 checks passed
@GeigerJ2
GeigerJ2 deleted the fix/cd-flit-core-pin branch August 26, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant