diff mbox series

[meta-python,016/105] python3-crc32c: upgrade 2.3 -> 2.9.post0

Message ID 20261116175359.342679-16-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-python,001/105] python3-absl: upgrade 2.1.0 -> 2.5.1 | expand

Commit Message

Khem Raj Nov. 16, 2026, 5:52 p.m. UTC
Inherit python_setuptools_build_meta, and drop the setup.cfg "platform"
hack: the custom build_ext option is gone and the C code picks the
implementation itself.

License-Update: crc32c_adler.c moved to src/crc32c/ext/; header
unchanged.

Changes:
- 2.5: package now PEP 561 typed with sources under src/; GIL is
  released during hashing (gil_release_mode argument); Python 2.7
  support dropped.
- 2.6: add CRC32CHash class modelled on hashlib objects; 2.7: free-
  threaded build and sub-interpreter support, CRC32C_SKIP_HW_PROBE.
- 2.7: import no longer fails with CRC32C_SW_MODE=none and no HW
  support; a RuntimeWarning is issued and checksums raise RuntimeError.
- 2.7.1.post0: project metadata moved to pyproject.toml (setuptools
  backend). 2.8: add crc32c.cli command line tool.
- 2.9: drop Python < 3.8, add crc32c.__version__. 2.9.post0: RISC-V
  wheels. 2.4.1: fix big-endian signed-char platforms.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 ...on3-crc32c_2.3.bb => python3-crc32c_2.9.post0.bb} | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-crc32c_2.3.bb => python3-crc32c_2.9.post0.bb} (57%)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-crc32c_2.3.bb b/meta-python/recipes-devtools/python/python3-crc32c_2.9.post0.bb
similarity index 57%
rename from meta-python/recipes-devtools/python/python3-crc32c_2.3.bb
rename to meta-python/recipes-devtools/python/python3-crc32c_2.9.post0.bb
index d3328733a1..0207c46b1e 100644
--- a/meta-python/recipes-devtools/python/python3-crc32c_2.3.bb
+++ b/meta-python/recipes-devtools/python/python3-crc32c_2.9.post0.bb
@@ -6,17 +6,11 @@  LIC_FILES_CHKSUM = " \
     file://LICENSE;md5=4fbd65380cdd255951079008b364516c \
     file://LICENSE.google-crc32c;md5=e9ed01b5e5ac9eae23fc2bb33701220c \
     file://LICENSE.slice-by-8;md5=6b3bc7709d6b2db6646ec2467310ff6b \
-    file://crc32c_adler.c;beginline=9;endline=24;md5=9c8bd2afd2d340fd37c038759cd4eff8 \
+    file://src/crc32c/ext/crc32c_adler.c;beginline=9;endline=24;md5=9c8bd2afd2d340fd37c038759cd4eff8 \
 "
 
-SRC_URI[sha256sum] = "17ce6c596ad0d53df52dcd72defb66984aeabd98fbefea7ba848a6b6bdece36a"
+SRC_URI[sha256sum] = "6a089e0340de8438e836a09e613c6b541675d0f3aa92b3fe34295aaba62f014f"
 
-inherit pypi setuptools3
-
-do_compile:prepend() {
-    if ! grep 'platform =' setup.cfg; then
-        printf "[build_ext]\nplatform = ${TARGET_ARCH}" >> setup.cfg
-    fi
-}
+inherit pypi python_setuptools_build_meta
 
 RDEPENDS:${PN} += "python3-core"