Skip to content

[v3-3-test] Fix provider distribution builds failing with flit 4 (#71118) - #71149

Merged
vatsrahul1001 merged 1 commit into
v3-3-testfrom
backport-9a85faa-v3-3-test
Aug 5, 2026
Merged

[v3-3-test] Fix provider distribution builds failing with flit 4 (#71118)#71149
vatsrahul1001 merged 1 commit into
v3-3-testfrom
backport-9a85faa-v3-3-test

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor
  • Fix provider distribution builds failing with flit 4

flit 4.0 removed the --setup-py/--no-setup-py options, so every flit-backed
provider build now aborts during argument parsing as soon as flit 4 resolves.
Not generating setup.py has been flit's default since well before the 3.12
floor breeze requires, so no longer asking for it explicitly leaves the built
distributions unchanged.

  • Cap flit below 4 so provider distributions keep valid metadata

flit build does not use PEP 517 build isolation, so whichever flit_core is
installed becomes the backend for every provider distribution and the
flit_core==3.12.0 pin each provider declares never applies on the path we
release from. flit_core 4.0.1 writes Import-Name and Import-Namespace without a
trailing newline (pypa/flit#813), consuming the blank
line that separates the metadata headers from the description, so the resulting
METADATA parses with MissingHeaderBodySeparatorDefect.

Removal of the cap is tracked at
#71121.

  • Drop the flit flag regression test

The assertion mirrors the argv literal it guards and mocks away the argument
parser that actually rejected the flag, so it detects reverts rather than the
class of breakage it was written for. The provider distribution build jobs
cover that.

  • Rest the flit cap on the unvalidated backend rather than the 4.0.1 defect

flit 4.0.2 fixed the METADATA corruption the comment cited, but the reason to
hold the backend at 3.12.0 is that nothing has exercised flit 4 against provider
distributions or the reproducible-build checks.


(cherry picked from commit 9a85faa)

Co-authored-by: rjgoyln 151457491+rjgoyln@users.noreply.github.com
Co-authored-by: Rahul Vats 43964496+vatsrahul1001@users.noreply.github.com

)

* Fix provider distribution builds failing with flit 4

flit 4.0 removed the --setup-py/--no-setup-py options, so every flit-backed
provider build now aborts during argument parsing as soon as flit 4 resolves.
Not generating setup.py has been flit's default since well before the 3.12
floor breeze requires, so no longer asking for it explicitly leaves the built
distributions unchanged.

* Cap flit below 4 so provider distributions keep valid metadata

`flit build` does not use PEP 517 build isolation, so whichever flit_core is
installed becomes the backend for every provider distribution and the
`flit_core==3.12.0` pin each provider declares never applies on the path we
release from. flit_core 4.0.1 writes Import-Name and Import-Namespace without a
trailing newline (pypa/flit#813), consuming the blank
line that separates the metadata headers from the description, so the resulting
METADATA parses with MissingHeaderBodySeparatorDefect.

Removal of the cap is tracked at
#71121.

* Drop the flit flag regression test

The assertion mirrors the argv literal it guards and mocks away the argument
parser that actually rejected the flag, so it detects reverts rather than the
class of breakage it was written for. The provider distribution build jobs
cover that.

* Rest the flit cap on the unvalidated backend rather than the 4.0.1 defect

flit 4.0.2 fixed the METADATA corruption the comment cited, but the reason to
hold the backend at 3.12.0 is that nothing has exercised flit 4 against provider
distributions or the reproducible-build checks.

---------
(cherry picked from commit 9a85faa)

Co-authored-by: rjgoyln <151457491+rjgoyln@users.noreply.github.com>
Co-authored-by: Rahul Vats <43964496+vatsrahul1001@users.noreply.github.com>
@vatsrahul1001 vatsrahul1001 added this to the Airflow 3.3.1 milestone Aug 5, 2026
@vatsrahul1001 vatsrahul1001 added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Aug 5, 2026
@vatsrahul1001
vatsrahul1001 marked this pull request as ready for review August 5, 2026 05:46
@vatsrahul1001
vatsrahul1001 merged commit f3164f0 into v3-3-test Aug 5, 2026
4 of 5 checks passed
@vatsrahul1001
vatsrahul1001 deleted the backport-9a85faa-v3-3-test branch August 5, 2026 05:49
vatsrahul1001 added a commit that referenced this pull request Aug 5, 2026
) (#71149)

* Fix provider distribution builds failing with flit 4

flit 4.0 removed the --setup-py/--no-setup-py options, so every flit-backed
provider build now aborts during argument parsing as soon as flit 4 resolves.
Not generating setup.py has been flit's default since well before the 3.12
floor breeze requires, so no longer asking for it explicitly leaves the built
distributions unchanged.

* Cap flit below 4 so provider distributions keep valid metadata

`flit build` does not use PEP 517 build isolation, so whichever flit_core is
installed becomes the backend for every provider distribution and the
`flit_core==3.12.0` pin each provider declares never applies on the path we
release from. flit_core 4.0.1 writes Import-Name and Import-Namespace without a
trailing newline (pypa/flit#813), consuming the blank
line that separates the metadata headers from the description, so the resulting
METADATA parses with MissingHeaderBodySeparatorDefect.

Removal of the cap is tracked at
#71121.

* Drop the flit flag regression test

The assertion mirrors the argv literal it guards and mocks away the argument
parser that actually rejected the flag, so it detects reverts rather than the
class of breakage it was written for. The provider distribution build jobs
cover that.

* Rest the flit cap on the unvalidated backend rather than the 4.0.1 defect

flit 4.0.2 fixed the METADATA corruption the comment cited, but the reason to
hold the backend at 3.12.0 is that nothing has exercised flit 4 against provider
distributions or the reproducible-build checks.

---------
(cherry picked from commit 9a85faa)

Co-authored-by: rjgoyln <151457491+rjgoyln@users.noreply.github.com>
Co-authored-by: Rahul Vats <43964496+vatsrahul1001@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants