From 42df42a2b0e1387c0d77f3c9d9cc93c7161d8793 Mon Sep 17 00:00:00 2001 From: Julian Geiger Date: Wed, 26 Aug 2026 12:42:39 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20`cd`:=20hold=20`flit=5Fcore`=20b?= =?UTF-8?q?elow=204?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `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. --- .github/workflows/cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 237a614..011f264 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -95,7 +95,7 @@ jobs: python-version: '3.10' - name: Install flit - run: pip install flit~=3.4 + run: pip install 'flit~=3.4' 'flit_core<4' - name: Build and publish run: flit publish