diff mbox series

python3-flit-core: upgrade 3.12.0 -> 4.2.0

Message ID 20261129073235.3077566-1-khem.raj@oss.qualcomm.com
State New
Headers show
Series python3-flit-core: upgrade 3.12.0 -> 4.2.0 | expand

Commit Message

Khem Raj Nov. 29, 2026, 7:32 a.m. UTC
4.0 is a major release with breaking changes:
- The [tool.flit.metadata] table is no longer read; projects must use
  the standard [project] table (or keep building with flit_core <4).
- flit_core requires Python 3.8 or later.
- The --setup-py option, which generated a setup.py in sdists, is gone.
- flit build and flit publish no longer pick sdist files from git or
  Mercurial; they follow the sdist include/exclude patterns, as the PEP
  517 backend already did (--use-vcs restores the old behaviour).
- Metadata 2.5 Import-Name/Import-Namespace fields are generated,
  -stubs packages work, NOTICE* and AUTHORS* are default license file
  patterns, and license-files patterns may contain spaces.
- RECORD files are correct for file names with commas, and sdists are
  extracted with the tarfile 'data' filter on Python 3.12+.

4.0.2 and 4.0.3 fix invalid Import-Name metadata and wheels created
with 0600 instead of 0644 permissions. 4.1 accepts license expressions
with the WITH syntax.

4.2 hardens builds: sdist include/exclude patterns match regardless of
Unicode normalisation (a sensitive file could slip into an sdist), and
sdists and wheels with symlinks pointing outside the project, or a
README from outside it, are refused. It also accepts environment
markers starting with a parenthesised clause, only normalises extras
names in requirements, and improves error messages.

Projects that pin flit_core <4 are handled by the python_flit_core
class change before this commit.

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../{python3-flit-core_3.12.0.bb => python3-flit-core_4.2.0.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-devtools/python/{python3-flit-core_3.12.0.bb => python3-flit-core_4.2.0.bb} (90%)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/python/python3-flit-core_3.12.0.bb b/meta/recipes-devtools/python/python3-flit-core_4.2.0.bb
similarity index 90%
rename from meta/recipes-devtools/python/python3-flit-core_3.12.0.bb
rename to meta/recipes-devtools/python/python3-flit-core_4.2.0.bb
index 786906b4b4..5f490ca303 100644
--- a/meta/recipes-devtools/python/python3-flit-core_3.12.0.bb
+++ b/meta/recipes-devtools/python/python3-flit-core_4.2.0.bb
@@ -8,7 +8,7 @@  BUGTRACKER = "https://github.com/pypa/flit/issues"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=41eb78fa8a872983a882c694a8305f08"
 
-SRC_URI[sha256sum] = "18f63100d6f94385c6ed57a72073443e1a71a4acb4339491615d0f16d6ff01b2"
+SRC_URI[sha256sum] = "84e4e4d8fdd45ba2613800a3ebc6834de26d47ec9746efc3719f94181137b460"
 
 inherit pypi python_flit_core