Skip to content

Increase the version upper limit for flit_core to 5 - #1755

Merged
carltongibson merged 1 commit into
carltongibson:mainfrom
dvzrv:fix/remove-flit-core-upper-limit
Jul 15, 2026
Merged

Increase the version upper limit for flit_core to 5#1755
carltongibson merged 1 commit into
carltongibson:mainfrom
dvzrv:fix/remove-flit-core-upper-limit

Conversation

@dvzrv

@dvzrv dvzrv commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Downstreams that attempt to build with latest flit_core (4.0.0) will not be able to (this is currently blocking us on Arch Linux to build/rebuild this project as a package).

In addition, an upper version limit does not seem to be very useful when it comes to the build backend.

@carltongibson

Copy link
Copy Markdown
Owner

... will not be able to (this is currently blocking us on Arch Linux to build/rebuild this project as a package

Can you explain that please?

I thought the whole point of the build backend system was that you can use any frontend against any backend, and the frontend will use the specified backend to build in an isolated environment. (So e.g. flit can build setuptools projects, and so on.)

The flit does say "...and can simply change the flit_core <4 constraint to <5."

@dvzrv

dvzrv commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

Can you explain that please?

Well, as we now have flit_core 4.0.0, we cannot build this project, without modifying this pyproject.toml file.

I thought the whole point of the build backend system was that you can use any frontend against any backend, and the frontend will use the specified backend to build in an isolated environment. (So e.g. flit can build setuptools projects, and so on.)

We are only relying on the backends here and the bare minimum to build: build, installer, flit_core
If flit_core does not match the limits you are setting here, then a downstream cannot build this project.

The flit does say "...and can simply change the flit_core <4 constraint to <5."

If you'd rather still see an upper limit, let me know.
It's just that we will likely have to remove them again in the future and depending on how many projects are affected, this will be quite the chore 😅

@carltongibson

Copy link
Copy Markdown
Owner

We are only relying on the backends here and the bare minimum to build: build, installer, flit_core
If flit_core does not match the limits you are setting here, then a downstream cannot build this project.

I'm still not following you, sorry.

You do, maybe?:

$ python -m build 

Build will create an isolated environment using the backend specified by the project. This is the whole point of PEP 517 &co, no? 🤔

Given flit v4 exists, making an adjustment here looks fine, but I need to grasp why what's there is broken vs (merely) using the older version for the build?

If you'd rather still see an upper limit...

I'd rather follow the documented advice.

@dvzrv

dvzrv commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

Build will create an isolated environment using the backend specified by the project. This is the whole point of PEP 517 &co, no? 🤔

No, we are building packages for a system-wide distribution context in which we control the versions that we install/provide/build with. In our case we build using

python -m build --wheel --no-isolation

see https://gitlab.archlinux.org/archlinux/packaging/packages/python-django-filter/-/blob/f2864d79f3ce32f6b2c7c85b381fa7f981df0dbe/PKGBUILD#L46

Given flit v4 exists, making an adjustment here looks fine, but I need to grasp why what's there is broken vs (merely) using the older version for the build?

We can't use it anymore. It has been replaced by flit_core 4.0.0 two months ago.

Signed-off-by: David Runge <dave@sleepmap.de>
@dvzrv
dvzrv force-pushed the fix/remove-flit-core-upper-limit branch from 1aa4f0e to 4ab8af8 Compare July 15, 2026 14:14
@dvzrv

dvzrv commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

Changed to <5.

@dvzrv dvzrv changed the title Drop the upper limit for flit_core Increase the version upper limit for flit_core to 5 Jul 15, 2026

@carltongibson carltongibson left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, thanks. 👍

@github-actions

Copy link
Copy Markdown

Coverage report

This PR does not seem to contain any modification to coverable code.

@carltongibson
carltongibson merged commit 5128b8f into carltongibson:main Jul 15, 2026
9 checks passed
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.

2 participants