python3-absl: upgrade 2.1.0 -> 2.5.1
PATCH 1/105 python3-absl: upgrade 2.1.0 -> 2.5.1
Upstream dropped setup.py and builds with hatchling; inherit python_hatchling.
Changes:
- 2.4.0: add Python 3.14 support; drop Python 3.8 and 3.9.
- 2.5.0: add --only_check_flags built-in flag, async support in flagsaver, ABSL_PYTHON_PROFILE_FILE env var, and TestCase record_property/get_recorded_properties.
- 2.5.1: add assertIsSubclass/assertNotIsSubclass to absltest.TestCase and ABSL_RELOAD_DETECTOR env var to disable ReloadDetector.
- Fixes: duplicate flag definition on module reload, type stubs and annotations, ANSI escapes in xml_reporter output.
AI-Generated: Uses Claude Code
---
.../python/{python3-absl_2.1.0.bb => python3-absl_2.5.1.bb} | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
rename meta-python/recipes-devtools/python/{python3-absl_2.1.0.bb => python3-absl_2.5.1.bb} (64%)meta-python/recipes-devtools/python/python3-absl_2.5.1.bb renamed from meta-python/recipes-devtools/python/python3-absl_2.1.0.bb +2 -3
@@ -4,11 +4,10 @@ SECTION = "devel/python" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" -SRC_URI[sha256sum] = "7820790efbb316739cde8b4e19357243fc3608a152024288513dd968d7d959ff" +SRC_URI[sha256sum] = "286e71c82c1a38e75bbcf185f9b37d0305ad7786535107cb49bf4df9ff2e1f95" PYPI_PACKAGE = "absl-py" -PYPI_PACKAGE_SDIST = "absl-py" -inherit pypi setuptools3 +inherit pypi python_hatchling BBCLASSEXTEND = "native"
PATCH 2/105 python3-antlr4-runtime: upgrade 4.13.1 -> 4.13.2
License-Update: PKG-INFO checksum changed by the version bump only.
Changes:
- Minor release across all targets (4.13.2). Python3 runtime: fix a name conflict on 'state' with the Python 3 runtime (PR 4312).
- Other changes are for other targets (C++ cmake include dirs and C++17 docs, JavaScript entrypoints/types) and need no action for Python.
AI-Generated: Uses Claude Code
--- .../python/python3-antlr4-runtime_4.13.1.bb | 12 ------------ .../python/python3-antlr4-runtime_4.13.2.bb | 11 +++++++++++ 2 files changed, 11 insertions(+), 12 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-antlr4-runtime_4.13.1.bb create mode 100644 meta-python/recipes-devtools/python/python3-antlr4-runtime_4.13.2.bb
meta-python/recipes-devtools/python/python3-antlr4-runtime_4.13.1.bb deleted +0 -12
@@ -1,12 +0,0 @@ -SUMMARY = "ANTLR runtime for Python" -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://PKG-INFO;md5=4b18e4a9f93178eaa50a9a37f26da7f7" - -SRC_URI[sha256sum] = "3cd282f5ea7cfb841537fe01f143350fdb1c0b1ce7981443a2fa8513fddb6d1a" - -PYPI_PACKAGE = "antlr4-python3-runtime" -PYPI_PACKAGE_SDIST = "antlr4-python3-runtime" - -inherit pypi python_setuptools_build_meta - -BBCLASSEXTEND = "nativesdk native"
meta-python/recipes-devtools/python/python3-antlr4-runtime_4.13.2.bb new file +11 -0
@@ -0,0 +1,11 @@ +SUMMARY = "ANTLR runtime for Python" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://PKG-INFO;md5=cd70187b2f2f288c20e09a358ce52b85" + +SRC_URI[sha256sum] = "909b647e1d2fc2b70180ac586df3933e38919c85f98ccc656a96cd3f25ef3916" + +PYPI_PACKAGE = "antlr4-python3-runtime" + +inherit pypi python_setuptools_build_meta + +BBCLASSEXTEND = "nativesdk native"
PATCH 3/105 python3-apiflask: upgrade 3.1.2 -> 3.1.3
In reply to Khem RajChanges:
- Fix marshmallow parameter schemas using the OpenAPI 3.0 "nullable" style in the default OpenAPI 3.1 spec (issue 771).
- Fix the OpenAPI version not being respected by the OpenAPI helper class used to generate spec elements (issue 773).
- Package metadata now declares requires-python >=3.9; linting moved to ruff.
AI-Generated: Uses Claude Code
---
.../{python3-apiflask_3.1.2.bb => python3-apiflask_3.1.3.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-apiflask_3.1.2.bb => python3-apiflask_3.1.3.bb} (83%)meta-python/recipes-devtools/python/python3-apiflask_3.1.3.bb renamed from meta-python/recipes-devtools/python/python3-apiflask_3.1.2.bb +1 -1
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=5f89d1b0dec37448d4f4163dc3c40e64" inherit pypi python_setuptools_build_meta -SRC_URI[sha256sum] = "9e19b554631a518a637c8a77887be37f37d46aeeee3d4a863bc4f6f0128bde23" +SRC_URI[sha256sum] = "cf1cc66e69b0c129d7540cc275e87b558802d30f3e23290295191fa442feada3" RDEPENDS:${PN} += "\ python3-apispec \
PATCH 4/105 python3-async-timeout: upgrade 4.0.3 -> 5.0.1
In reply to Khem RajChanges:
- 5.0.0: asyncio_timeout is now fully compatible with the standard asyncio.Timeout while keeping the old asyncio_timeout.Timeout API.
- Breaking: drop the deprecated sync context manager support; use "async with timeout(...)" instead.
- 5.0.1: miscellaneous fix only (issue 423).
AI-Generated: Uses Claude Code
---
...3-async-timeout_4.0.3.bb => python3-async-timeout_5.0.1.bb} | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
rename meta-python/recipes-devtools/python/{python3-async-timeout_4.0.3.bb => python3-async-timeout_5.0.1.bb} (83%)meta-python/recipes-devtools/python/python3-async-timeout_5.0.1.bb renamed from meta-python/recipes-devtools/python/python3-async-timeout_4.0.3.bb +1 -2
@@ -8,11 +8,10 @@ HOMEPAGE = "https://github.com/aio-libs/async-timeout" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=4fa41f15bb5f23b6d3560c5845eb8d57" -SRC_URI[sha256sum] = "4640d96be84d82d02ed59ea2b7105a0f7b33abe8703703cd0ab0bf87c427522f" +SRC_URI[sha256sum] = "d9321a7a3d5a6a5e187e824d2fa0793ce379a202935782d555d6e9d2735677d3" inherit pypi python_setuptools_build_meta -PYPI_PACKAGE_SDIST = "async-timeout" DEPENDS += "python3-wheel-native"
PATCH 5/105 python3-aws-iot-device-sdk-python: upgrade 1.5.2 -> 1.6.2
In reply to Khem RajDrop the setuptools patch, it is part of this release.
Changes:
- Security: fixed TLS hostname verification in the bundled paho client (SSLContext check_hostname/server_hostname) and in Greengrass discovery, which previously could skip hostname checks on Python 3.7+. No CVE ID given upstream.
- Updated bundled Paho client; now handles SUBACK packets.
- Python 3.12+ support (ssl.wrap_socket removed); setup.py uses setuptools instead of distutils. Minimum Python version raised; Python 2.7 and 3.3-3.5 classifiers dropped.
AI-Generated: Uses Claude Code
---
...-Use-setuptools-instead-of-distutils.patch | 29 -------------------
...ython3-aws-iot-device-sdk-python_1.6.2.bb} | 6 ++--
2 files changed, 2 insertions(+), 33 deletions(-)
delete mode 100644 meta-python/recipes-devtools/python/python3-aws-iot-device-sdk-python/0001-setup.py-Use-setuptools-instead-of-distutils.patch
rename meta-python/recipes-devtools/python/{python3-aws-iot-device-sdk-python_1.5.2.bb => python3-aws-iot-device-sdk-python_1.6.2.bb} (87%)meta-python/recipes-devtools/python/python3-aws-iot-device-sdk-python/0001-setup.py-Use-setuptools-instead-of-distutils.patch deleted +0 -29
@@ -1,29 +0,0 @@ -From 36f8106535150b970c75e8b8456ebc5a7d1dbdb3 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Wed, 2 Mar 2022 11:11:01 -0800 -Subject: [PATCH] setup.py: Use setuptools instead of distutils - -distutils is deprecated and will be gone in 3.12+ - -Upstream-Status: Submitted [https://github.com/aws/aws-iot-device-sdk-python/pull/305] -Signed-off-by: Khem Raj <[email protected]> ---- - setup.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/setup.py b/setup.py -index 3846bae..d0c2b8d 100644 ---- a/setup.py -+++ b/setup.py -@@ -3,7 +3,7 @@ sys.path.insert(0, 'AWSIoTPythonSDK') - import AWSIoTPythonSDK - currentVersion = AWSIoTPythonSDK.__version__ - --from distutils.core import setup -+from setuptools import setup - setup( - name = 'AWSIoTPythonSDK', - packages=['AWSIoTPythonSDK', 'AWSIoTPythonSDK.core', --- -2.35.1 -
meta-python/recipes-devtools/python/python3-aws-iot-device-sdk-python_1.6.2.bb renamed from meta-python/recipes-devtools/python/python3-aws-iot-device-sdk-python_1.5.2.bb +2 -4
@@ -6,10 +6,8 @@ LIC_FILES_CHKSUM = "\ file://LICENSE.txt;md5=9ac49901b833e769c7d6f21e8dbd7b30 \ file://AWSIoTPythonSDK/core/protocol/paho/client.py;endline=14;md5=5a3c8a1a4bb71bd934f450ecff972ad9 \ " -SRCREV = "0ea1a2d013529839fc1e7448d19dadff25d581b4" -SRC_URI = "git://github.com/aws/aws-iot-device-sdk-python;branch=master;protocol=https \ - file://0001-setup.py-Use-setuptools-instead-of-distutils.patch \ - " +SRCREV = "ffa4076ba754932c247c05352b810835c6bdc8ff" +SRC_URI = "git://github.com/aws/aws-iot-device-sdk-python;branch=master;protocol=https" inherit setuptools3
PATCH 6/105 python3-bidict: upgrade 0.23.1 -> 0.24.1
In reply to Khem RajUpstream builds with uv_build now; inherit python_uv_build and relax its narrow uv_build version bound.
License-Update: Copyright year bump.
Changes:
- Breaking: requires Python 3.11 or newer (was 3.8); build backend is now uv_build; typing-extensions needed only before Python 3.12.
- Breaking: remove bidict.metadata and bidict.__version__ (use importlib.metadata); pickles written by 0.23.1 and earlier can no longer be read.
- Fix values() order mismatch with keys() on non-ordered bidicts, and make bulk update()/putall() fail clean (roll back) on any error.
- Bidict and its inverse now share the same key/value objects; fix non-reflexive (nan) key handling and OrderedBidict view set ops.
- Single-item writes are about 6x faster. 0.24.1 fixes the wheel RECORD file and a Python 3.15 test failure.
AI-Generated: Uses Claude Code
--- ...oml-Relax-the-uv_build-version-bound.patch | 25 +++++++++++++++++++ .../python/python3-bidict_0.23.1.bb | 11 -------- .../python/python3-bidict_0.24.1.bb | 12 +++++++++ 3 files changed, 37 insertions(+), 11 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-bidict/0001-pyproject.toml-Relax-the-uv_build-version-bound.patch delete mode 100644 meta-python/recipes-devtools/python/python3-bidict_0.23.1.bb create mode 100644 meta-python/recipes-devtools/python/python3-bidict_0.24.1.bb
meta-python/recipes-devtools/python/python3-bidict/0001-pyproject.toml-Relax-the-uv_build-version-bound.patch new file +25 -0
@@ -0,0 +1,25 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Sun, 15 Nov 2026 23:07:01 -0800 +Subject: [PATCH] pyproject.toml: Relax the uv_build version bound + +uv_build is pinned to a narrow range upstream; build with the uv_build +version that OE ships. + +Upstream-Status: Inappropriate [OE-specific] +Signed-off-by: Khem Raj <[email protected]> +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -78,7 +78,7 @@ + # The ceiling is only change control, and is what uv recommends (it warns without one). Keep it + # covering the uv in uv.lock, so `uv build` keeps using that uv's built-in uv_build rather than + # downloading one; update_dev_dependencies checks this. +-requires = ["uv_build>=0.8.13,<0.12"] ++requires = ["uv_build>=0.8.13"] + build-backend = "uv_build" + + [tool.ty.src]
meta-python/recipes-devtools/python/python3-bidict_0.23.1.bb deleted +0 -11
@@ -1,11 +0,0 @@ -SUMMARY = "The bidirectional mapping library for Python." -DESCRIPTION = "The bidirectional mapping library for Python." -HOMEPAGE = "https://bidict.readthedocs.io/" -LICENSE = "MPL-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=e907308cc9356afa99ac0eec6b20211b" - -SRC_URI[sha256sum] = "03069d763bc387bbd20e7d49914e75fc4132a41937fa3405417e1a5a2d006d71" - -inherit pypi python_setuptools_build_meta - -DEPENDS += "python3-setuptools-scm-native"
meta-python/recipes-devtools/python/python3-bidict_0.24.1.bb new file +12 -0
@@ -0,0 +1,12 @@ +SUMMARY = "The bidirectional mapping library for Python." +DESCRIPTION = "The bidirectional mapping library for Python." +HOMEPAGE = "https://bidict.readthedocs.io/" +LICENSE = "MPL-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=faf006af6b1264b57f6cca7283841ac4" + +SRC_URI += "file://0001-pyproject.toml-Relax-the-uv_build-version-bound.patch" +SRC_URI[sha256sum] = "4dca6c17f0b01700e9f24359daa5ebabf7be022d99f4cb2a257b6af2a5076c88" + +inherit pypi python_uv_build + +DEPENDS += "python3-setuptools-scm-native"
PATCH 7/105 python3-bitarray: upgrade 3.12.3 -> 3.12.4
In reply to Khem RajChanges:
- Free-threaded CPython support is now considered stable.
- Require PyPy 7.3.23 or higher.
- Linux wheels built in parallel; RISC-V wheels added.
AI-Generated: Uses Claude Code
---
.../{python3-bitarray_3.12.3.bb => python3-bitarray_3.12.4.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-bitarray_3.12.3.bb => python3-bitarray_3.12.4.bb} (81%)meta-python/recipes-devtools/python/python3-bitarray_3.12.4.bb renamed from meta-python/recipes-devtools/python/python3-bitarray_3.12.3.bb +1 -1
@@ -4,7 +4,7 @@ HOMEPAGE = "https://github.com/ilanschnell/bitarray" LICENSE = "PSF-2.0" LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=6abe80c028e4ee53045a33ae807c64fd" -SRC_URI[sha256sum] = "919e35a951c0a551631b94bf568f3f5e38d004e0c60866cb2ca51bd8c4778fec" +SRC_URI[sha256sum] = "1f8bdf27eea32ab5783e32d3df105bab429e8097adc95d6307635238cfb5d366" inherit python_setuptools_build_meta pypi
PATCH 8/105 python3-bleak: upgrade 3.0.2 -> 3.1.0
In reply to Khem RajRefresh the uv_build bound patch for the new <0.12.0 cap.
Changes:
- New: BleakAdapter.get_connected_devices() to list already-connected devices without scanning; new Android backend for BeeWare/Briefcase apps (needs Python 3.13+).
- Minimum dbus-fast raised to 4.0.0 on Linux.
- BlueZ: detects D-Bus connection loss, recovers from InProgress on StopDiscovery, fixes disconnect() leaks, device-removed matching on adapters like hci10, and empty AcquireNotify payloads.
- CoreBluetooth: fixed memory leaks, address data leak with use_bdaddr, start_notify() ValueError after reconnect.
- WinRT: GATT I/O raises BleakError on disconnect; fixed crash after event loop closed.
AI-Generated: Uses Claude Code
---
...0001-bleak-Support-newer-uv_build-versions.patch | 13 ++++---------
...ython3-bleak_3.0.2.bb => python3-bleak_3.1.0.bb} | 2 +-
2 files changed, 5 insertions(+), 10 deletions(-)
rename meta-python/recipes-devtools/python/{python3-bleak_3.0.2.bb => python3-bleak_3.1.0.bb} (95%)meta-python/recipes-devtools/python/python3-bleak/0001-bleak-Support-newer-uv_build-versions.patch +4 -9
@@ -3,7 +3,7 @@ From: Leon Anavi <[email protected]> Date: Mon, 15 Jun 2026 17:53:47 +0300 Subject: [PATCH] bleak: Drop the uv_build upper version bound -bleak 3.0.2 requires uv_build<0.11.0. OE builds wheels with +bleak 3.1.0 requires uv_build<0.12.0. OE builds wheels with "pyproject-build --no-isolation" against whatever python3-uv-build is in the sysroot, and that check is enforced:
@@ -27,19 +27,14 @@ Signed-off-by: Leon Anavi <[email protected]> pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -diff --git a/pyproject.toml b/pyproject.toml -index 3224afc..4be6da7 100644 --- a/pyproject.toml +++ b/pyproject.toml -@@ -66,7 +66,7 @@ dev = [ +@@ -78,7 +78,7 @@ ] [build-system] --requires = ["uv_build>=0.10.9,<0.11.0"] +-requires = ["uv_build>=0.10.9,<0.12.0"] +requires = ["uv_build>=0.10.9"] build-backend = "uv_build" - [tool.uv.build-backend] --- -2.47.3 - + [tool.uv]
meta-python/recipes-devtools/python/python3-bleak_3.1.0.bb renamed from meta-python/recipes-devtools/python/python3-bleak_3.0.2.bb +1 -1
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=bcbc2069a86cba1b5e47253679f66ed7" # The PyPI sdist ships no tests/ directory at all, so ptest has nothing to # run from it (pytest exits 5, "no tests collected"). Fetch the matching # git tag instead, which does include tests/, mirroring python3-pydantic. -SRCREV = "bb49377d38afb3a9fac9022aaf2c8f59d4ef7cfe" +SRCREV = "3075468a7c511b2b771a6aa50a896120f2a3a3de" PV .= "+git" SRC_URI = "git://github.com/hbldh/bleak;protocol=https;branch=develop \ file://run-ptest \
PATCH 9/105 python3-cachecontrol: upgrade 0.14.3 -> 0.14.4
In reply to Khem RajUpstream moved from flit_core to uv_build; inherit python_uv_build and relax its narrow uv_build version bound.
Changes:
- Maintenance release: CI adds Python 3.14, a typo fix, and dependency bumps of GitHub Actions; no functional changes listed.
AI-Generated: Uses Claude Code
---
...oml-Relax-the-uv_build-version-bound.patch | 23 +++++++++++++++++++
...14.3.bb => python3-cachecontrol_0.14.4.bb} | 5 ++--
2 files changed, 26 insertions(+), 2 deletions(-)
create mode 100644 meta-python/recipes-devtools/python/python3-cachecontrol/0001-pyproject.toml-Relax-the-uv_build-version-bound.patch
rename meta-python/recipes-devtools/python/{python3-cachecontrol_0.14.3.bb => python3-cachecontrol_0.14.4.bb} (72%)meta-python/recipes-devtools/python/python3-cachecontrol/0001-pyproject.toml-Relax-the-uv_build-version-bound.patch new file +23 -0
@@ -0,0 +1,23 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Sun, 15 Nov 2026 23:07:01 -0800 +Subject: [PATCH] pyproject.toml: Relax the uv_build version bound + +uv_build is pinned to a narrow range upstream; build with the uv_build +version that OE ships. + +Upstream-Status: Inappropriate [OE-specific] +Signed-off-by: Khem Raj <[email protected]> +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["uv_build>=0.9.6,<0.10.0"] ++requires = ["uv_build>=0.9.6"] + build-backend = "uv_build" + + [tool.uv.build-backend]
meta-python/recipes-devtools/python/python3-cachecontrol_0.14.4.bb renamed from meta-python/recipes-devtools/python/python3-cachecontrol_0.14.3.bb +3 -2
@@ -3,9 +3,10 @@ HOMEPAGE = "https://pypi.org/project/CacheControl/" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=6572692148079ebbbd800be4b9f36c6d" -SRC_URI[sha256sum] = "73e7efec4b06b20d9267b441c1f733664f989fb8688391b670ca812d70795d11" +SRC_URI += "file://0001-pyproject.toml-Relax-the-uv_build-version-bound.patch" +SRC_URI[sha256sum] = "e6220afafa4c22a47dd0badb319f84475d79108100d04e26e8542ef7d3ab05a1" -inherit pypi python_flit_core +inherit pypi python_uv_build RDEPENDS:${PN} += "\ python3-crypt \
PATCH 10/105 python3-cassandra-driver: upgrade 3.29.3 -> 3.30.1
In reply to Khem RajDrop the ez_setup patch (upstream builds with setuptools.build_meta now), build with native Cython and tomli, and build the libev extension against the sysroot libev instead of host paths. The driver now depends on Deprecated; add it to RDEPENDS.
Changes:
- 3.30.0: add pyproject.toml declaring build dependencies; drop Python 3.9, add 3.14; eventlet, gevent and Twisted event loops deprecated.
- 3.30.0: fixes for missing C extension .so files and win32 libev in wheels, and execute_concurrent timeout handling; remove ez_setup for setuptools 82 compatibility.
- 3.30.1: wheels no longer ship Cython-generated .c files, mark md5 usage as non-security for FIPS, fix crash at interpreter exit.
AI-Generated: Uses Claude Code
---
...fying-the-availability-of-setuptools.patch | 34 -------------------
....bb => python3-cassandra-driver_3.30.1.bb} | 14 ++++++--
2 files changed, 11 insertions(+), 37 deletions(-)
delete mode 100644 meta-python/recipes-devtools/python/python3-cassandra-driver/0001-skip-verifying-the-availability-of-setuptools.patch
rename meta-python/recipes-devtools/python/{python3-cassandra-driver_3.29.3.bb => python3-cassandra-driver_3.30.1.bb} (61%)meta-python/recipes-devtools/python/python3-cassandra-driver/0001-skip-verifying-the-availability-of-setuptools.patch deleted +0 -34
@@ -1,34 +0,0 @@ -From ebee090ac020c5a4e4194788fc2f53d7a4e30b40 Mon Sep 17 00:00:00 2001 -From: Gyorgy Sarvari <[email protected]> -Date: Sun, 15 Mar 2026 21:28:07 +0100 -Subject: [PATCH] skip verifying the availability of setuptools - -The setup script checks is setuptools is available (with the correct minimum -version), using setuptool's pkg_resouces modules. Setuptools has dropped -this module in version 82, making this import fail. - -This patch skips the availability check of Setuptools, it is expected to be -always available from oe-core - the patch itself is oe-specific. - -Upstream has already prepared a solution to rework their setup script to -work with the latest Setuptools, however that patch builds on several other -patches. - -Upstream-Status: Inappropriate [oe-specific] -Signed-off-by: Gyorgy Sarvari <[email protected]> ---- - ez_setup.py | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/ez_setup.py b/ez_setup.py -index 76e7105..c668e5d 100644 ---- a/ez_setup.py -+++ b/ez_setup.py -@@ -107,6 +107,7 @@ def _do_download(version, download_base, to_dir, download_delay): - - def use_setuptools(version=DEFAULT_VERSION, download_base=DEFAULT_URL, - to_dir=os.curdir, download_delay=15): -+ return - # making sure we use the absolute path - to_dir = os.path.abspath(to_dir) - was_imported = 'pkg_resources' in sys.modules or \
meta-python/recipes-devtools/python/python3-cassandra-driver_3.30.1.bb renamed from meta-python/recipes-devtools/python/python3-cassandra-driver_3.29.3.bb +11 -3
@@ -8,13 +8,19 @@ LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93" SRCNAME = "cassandra-driver" -SRC_URI += "file://0001-skip-verifying-the-availability-of-setuptools.patch" -SRC_URI[sha256sum] = "ff6b82ee4533f6fd4474d833e693b44b984f58337173ee98ed76bce08721a636" +SRC_URI[sha256sum] = "0c6a3e1428f7c6a9aa6c944b9c47a37cd2cdbeb5b5a82d42c33afdd56f14e398" inherit pypi python_setuptools_build_meta +# Look for libev in the sysroot rather than in host directories +do_configure:prepend() { + sed -i -e 's|^libev-includes = .*|libev-includes = ["${STAGING_INCDIR}"]|' \ + -e 's|^libev-libs = .*|libev-libs = ["${STAGING_LIBDIR}"]|' ${S}/pyproject.toml +} + RDEPENDS:${PN} += "\ python3-cython \ + python3-deprecated \ python3-geomet \ python3-json \ python3-misc \
@@ -24,5 +30,7 @@ RDEPENDS:${PN} += "\ " DEPENDS += "\ - python3-cython \ + python3-cython-native \ + python3-tomli-native \ + libev \ "
PATCH 11/105 python3-cbor2: upgrade 6.2.1 -> 6.3.0
In reply to Khem RajChanges:
- 6.3.0: add --format=json CLI option to encode JSON as CBOR; encoder performance improved significantly.
- Security: fix segfault when encoding self-referential or deeply nested CBORTag (GHSA-ffh5-vwcq-7ccw, no CVE ID listed).
AI-Generated: Uses Claude Code
---
.../python/{python3-cbor2_6.2.1.bb => python3-cbor2_6.3.0.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-cbor2_6.2.1.bb => python3-cbor2_6.3.0.bb} (88%)meta-python/recipes-devtools/python/python3-cbor2_6.3.0.bb renamed from meta-python/recipes-devtools/python/python3-cbor2_6.2.1.bb +1 -1
@@ -3,7 +3,7 @@ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a79e64179819c7ce293372c059f1dbd8" DEPENDS += "python3-setuptools-scm-native" -SRC_URI[sha256sum] = "086c1588bd407a46739da704b5ee7d15225dc998d9582a0519fc6c9a114b25f7" +SRC_URI[sha256sum] = "fd4d6b3533e966eec3fb33ce0f17e925fc09b512500ab7770867ebec7d7d5dc1" inherit pypi python_setuptools3_rust cargo-update-recipe-crates ptest-python-pytest
PATCH 12/105 python3-cchardet: upgrade 2.4.0 -> 2.4.1
In reply to Khem RajChanges:
- Fix crashes when one UniversalDetector is used from several threads; detector methods now hold a per-instance lock.
- Fix UniversalDetector returning freed memory when close() follows reset() with language_weights (could raise UnicodeDecodeError).
AI-Generated: Uses Claude Code
---
.../{python3-cchardet_2.4.0.bb => python3-cchardet_2.4.1.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-cchardet_2.4.0.bb => python3-cchardet_2.4.1.bb} (76%)meta-python/recipes-devtools/python/python3-cchardet_2.4.1.bb renamed from meta-python/recipes-devtools/python/python3-cchardet_2.4.0.bb +1 -1
@@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/PyYoshi/cChardet" LICENSE = "MPL-1.1" LIC_FILES_CHKSUM = "file://COPYING;md5=6ecda54f6f525388d71d6b3cd92f7474" -SRC_URI[sha256sum] = "7b062e7e92e5ab1a00aaf5c164d5f056daae648ba1f144082baf5b4c229b794e" +SRC_URI[sha256sum] = "3e3b0b9f11f24b66dc34997035e4d9c570594277e59c878ef004f666b3f45124" inherit pypi python_setuptools_build_meta cython
PATCH 13/105 python3-click-repl: upgrade 0.3.0 -> 0.4.1
In reply to Khem Rajclick-repl now depends on typing-extensions; add it to RDEPENDS.
Changes:
- Requires Python 3.9+ (was 3.6); dropped 3.8 in tests, added 3.13; new runtime dependency typing-extensions>=4.7.0; click<9 pinned.
- Compatibility with click 8.2+; add ReplContext class and type hints.
- Completion: hide already-used non-multiple options, new shortest_only option, no value completion for boolean flags, fixes for wrong option values and unhandled exceptions during autocomplete.
- 0.4.1: guard the click-repl import when stdin is unavailable.
AI-Generated: Uses Claude Code
---
...ython3-click-repl_0.3.0.bb => python3-click-repl_0.4.1.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta-python/recipes-devtools/python/{python3-click-repl_0.3.0.bb => python3-click-repl_0.4.1.bb} (72%)meta-python/recipes-devtools/python/python3-click-repl_0.4.1.bb renamed from meta-python/recipes-devtools/python/python3-click-repl_0.3.0.bb +2 -2
@@ -3,15 +3,15 @@ HOMEPAGE = "https://github.com/untitaker/click-repl" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=580facc4832cac548fad94845542da44" -SRC_URI[sha256sum] = "17849c23dba3d667247dc4defe1757fff98694e90fe37474f3feebb69ced26a9" +SRC_URI[sha256sum] = "c32a1cf6f95e5bd6e92076f81ce24eafd33f2f0ffb0135887e335b8e446d1c0b" inherit pypi python_setuptools_build_meta -PYPI_PACKAGE_SDIST = "click-repl" DEPENDS += "python3-wheel-native" RDEPENDS:${PN} += " \ python3-click \ python3-prompt-toolkit \ + python3-typing-extensions \ "
PATCH 14/105 python3-click-spinner: upgrade 0.1.10 -> 0.2.0
In reply to Khem RajInherit python_setuptools_build_meta and drop the versioneer patch; versioneer is no longer used.
License-Update: PKG-INFO no longer carries the License line at line 8; point at the LICENSE file (MIT) instead.
Changes:
- 0.2.0: drops Python < 3.8 and adds type hints.
- 0.1.11: packaging moved to pyproject.toml managed with uv (setup.py and Versioneer removed); no runtime dependencies.
- Spinner no longer delays 0.25s in stop() and leaves a clear line after the spinner is stopped.
AI-Generated: Uses Claude Code
--- .../0001-Update-Versioneer-to-0.22.patch | 2489 ----------------- .../python/python3-click-spinner_0.1.10.bb | 13 - .../python/python3-click-spinner_0.2.0.bb | 10 + 3 files changed, 10 insertions(+), 2502 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-click-spinner/0001-Update-Versioneer-to-0.22.patch delete mode 100644 meta-python/recipes-devtools/python/python3-click-spinner_0.1.10.bb create mode 100644 meta-python/recipes-devtools/python/python3-click-spinner_0.2.0.bb
meta-python/recipes-devtools/python/python3-click-spinner/0001-Update-Versioneer-to-0.22.patch deleted +0 -2489
@@ -1,2489 +0,0 @@ -From 739f9da6bf0d2d9f0de624aee2ec71c65f62c275 Mon Sep 17 00:00:00 2001 -From: Hugo van Kemenade <[email protected]> -Date: Tue, 10 May 2022 18:17:50 +0300 -Subject: [PATCH] Update Versioneer to 0.22 - -Upstream-Status: Backport [https://github.com/click-contrib/click-spinner/commit/5622ab0a0b4296dc8f10863f268ed98dccf4b642] - -Signed-off-by: Ny Antra Ranaivoarison <[email protected]> ---- - click_spinner/__init__.py | 5 +- - click_spinner/_version.py | 665 +++++++++++++++++++++- - versioneer.py | 1128 ++++++++++++++++++++++++------------- - 3 files changed, 1400 insertions(+), 398 deletions(-) - -diff --git a/click_spinner/__init__.py b/click_spinner/__init__.py -index aeec089..8e9f4f9 100644 ---- a/click_spinner/__init__.py -+++ b/click_spinner/__init__.py -@@ -77,6 +77,5 @@ def spinner(beep=False, disable=False, force=False, stream=sys.stdout): - return Spinner(beep, disable, force, stream) - - --from ._version import get_versions --__version__ = get_versions()['version'] --del get_versions -+from . import _version -+__version__ = _version.get_versions()['version'] -diff --git a/click_spinner/_version.py b/click_spinner/_version.py -index 5ae340e..d44565d 100644 ---- a/click_spinner/_version.py -+++ b/click_spinner/_version.py -@@ -1,21 +1,658 @@ - --# This file was generated by 'versioneer.py' (0.16) from --# revision-control system data, or from the parent directory name of an --# unpacked source archive. Distribution tarballs contain a pre-generated copy --# of this file. -+# This file helps to compute a version number in source trees obtained from -+# git-archive tarball (such as those provided by githubs download-from-tag -+# feature). Distribution tarballs (built by setup.py sdist) and build -+# directories (produced by setup.py build) will contain a much shorter file -+# that just contains the computed version number. - --import json -+# This file is released into the public domain. Generated by -+# versioneer-0.22 (https://github.com/python-versioneer/python-versioneer) -+ -+"""Git implementation of _version.py.""" -+ -+import errno -+import os -+import re -+import subprocess - import sys -+from typing import Callable, Dict -+import functools -+ -+ -+def get_keywords(): -+ """Get the keywords needed to look up the version information.""" -+ # these strings will be replaced by git during git-archive. -+ # setup.py/versioneer.py will grep for the variable names, so they must -+ # each be defined on a line of their own. _version.py will just call -+ # get_keywords(). -+ git_refnames = "$Format:%d$" -+ git_full = "$Format:%H$" -+ git_date = "$Format:%ci$" -+ keywords = {"refnames": git_refnames, "full": git_full, "date": git_date} -+ return keywords -+ -+ -+class VersioneerConfig: -+ """Container for Versioneer configuration parameters.""" -+ -+ -+def get_config(): -+ """Create, populate and return the VersioneerConfig() object.""" -+ # these strings are filled in when 'setup.py versioneer' creates -+ # _version.py -+ cfg = VersioneerConfig() -+ cfg.VCS = "git" -+ cfg.style = "pep440" -+ cfg.tag_prefix = "v" -+ cfg.parentdir_prefix = "click-spinner-" -+ cfg.versionfile_source = "click_spinner/_version.py" -+ cfg.verbose = False -+ return cfg -+ -+ -+class NotThisMethod(Exception): -+ """Exception raised if a method is not valid for the current scenario.""" -+ -+ -+LONG_VERSION_PY: Dict[str, str] = {} -+HANDLERS: Dict[str, Dict[str, Callable]] = {} -+ -+ -+def register_vcs_handler(vcs, method): # decorator -+ """Create decorator to mark a method as the handler of a VCS.""" -+ def decorate(f): -+ """Store f in HANDLERS[vcs][method].""" -+ if vcs not in HANDLERS: -+ HANDLERS[vcs] = {} -+ HANDLERS[vcs][method] = f -+ return f -+ return decorate -+ -+ -+def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False, -+ env=None): -+ """Call the given command(s).""" -+ assert isinstance(commands, list) -+ process = None -+ -+ popen_kwargs = {} -+ if sys.platform == "win32": -+ # This hides the console window if pythonw.exe is used -+ startupinfo = subprocess.STARTUPINFO() -+ startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW -+ popen_kwargs["startupinfo"] = startupinfo -+ -+ for command in commands: -+ try: -+ dispcmd = str([command] + args) -+ # remember shell=False, so use git.cmd on windows, not just git -+ process = subprocess.Popen([command] + args, cwd=cwd, env=env, -+ stdout=subprocess.PIPE, -+ stderr=(subprocess.PIPE if hide_stderr -+ else None), **popen_kwargs) -+ break -+ except OSError: -+ e = sys.exc_info()[1] -+ if e.errno == errno.ENOENT: -+ continue -+ if verbose: -+ print("unable to run %s" % dispcmd) -+ print(e) -+ return None, None -+ else: -+ if verbose: -+ print("unable to find command, tried %s" % (commands,)) -+ return None, None -+ stdout = process.communicate()[0].strip().decode() -+ if process.returncode != 0: -+ if verbose: -+ print("unable to run %s (error)" % dispcmd) -+ print("stdout was %s" % stdout) -+ return None, process.returncode -+ return stdout, process.returncode -+ -+ -+def versions_from_parentdir(parentdir_prefix, root, verbose): -+ """Try to determine the version from the parent directory name. -+ -+ Source tarballs conventionally unpack into a directory that includes both -+ the project name and a version string. We will also support searching up -+ two directory levels for an appropriately named parent directory -+ """ -+ rootdirs = [] -+ -+ for _ in range(3): -+ dirname = os.path.basename(root) -+ if dirname.startswith(parentdir_prefix): -+ return {"version": dirname[len(parentdir_prefix):], -+ "full-revisionid": None, -+ "dirty": False, "error": None, "date": None} -+ rootdirs.append(root) -+ root = os.path.dirname(root) # up a level -+ -+ if verbose: -+ print("Tried directories %s but none started with prefix %s" % -+ (str(rootdirs), parentdir_prefix)) -+ raise NotThisMethod("rootdir doesn't start with parentdir_prefix") -+ -+ -+@register_vcs_handler("git", "get_keywords") -+def git_get_keywords(versionfile_abs): -+ """Extract version information from the given file.""" -+ # the code embedded in _version.py can just fetch the value of these -+ # keywords. When used from setup.py, we don't want to import _version.py, -+ # so we do it with a regexp instead. This function is not used from -+ # _version.py. -+ keywords = {} -+ try: -+ with open(versionfile_abs, "r") as fobj: -+ for line in fobj: -+ if line.strip().startswith("git_refnames ="): -+ mo = re.search(r'=\s*"(.*)"', line) -+ if mo: -+ keywords["refnames"] = mo.group(1) -+ if line.strip().startswith("git_full ="): -+ mo = re.search(r'=\s*"(.*)"', line) -+ if mo: -+ keywords["full"] = mo.group(1) -+ if line.strip().startswith("git_date ="): -+ mo = re.search(r'=\s*"(.*)"', line) -+ if mo: -+ keywords["date"] = mo.group(1) -+ except OSError: -+ pass -+ return keywords -+ -+ -+@register_vcs_handler("git", "keywords") -+def git_versions_from_keywords(keywords, tag_prefix, verbose): -+ """Get version information from git keywords.""" -+ if "refnames" not in keywords: -+ raise NotThisMethod("Short version file found") -+ date = keywords.get("date") -+ if date is not None: -+ # Use only the last line. Previous lines may contain GPG signature -+ # information. -+ date = date.splitlines()[-1] -+ -+ # git-2.2.0 added "%cI", which expands to an ISO-8601 -compliant -+ # datestamp. However we prefer "%ci" (which expands to an "ISO-8601 -+ # -like" string, which we must then edit to make compliant), because -+ # it's been around since git-1.5.3, and it's too difficult to -+ # discover which version we're using, or to work around using an -+ # older one. -+ date = date.strip().replace(" ", "T", 1).replace(" ", "", 1) -+ refnames = keywords["refnames"].strip() -+ if refnames.startswith("$Format"): -+ if verbose: -+ print("keywords are unexpanded, not using") -+ raise NotThisMethod("unexpanded keywords, not a git-archive tarball") -+ refs = {r.strip() for r in refnames.strip("()").split(",")} -+ # starting in git-1.8.3, tags are listed as "tag: foo-1.0" instead of -+ # just "foo-1.0". If we see a "tag: " prefix, prefer those. -+ TAG = "tag: " -+ tags = {r[len(TAG):] for r in refs if r.startswith(TAG)} -+ if not tags: -+ # Either we're using git < 1.8.3, or there really are no tags. We use -+ # a heuristic: assume all version tags have a digit. The old git %d -+ # expansion behaves like git log --decorate=short and strips out the -+ # refs/heads/ and refs/tags/ prefixes that would let us distinguish -+ # between branches and tags. By ignoring refnames without digits, we -+ # filter out many common branch names like "release" and -+ # "stabilization", as well as "HEAD" and "master". -+ tags = {r for r in refs if re.search(r'\d', r)} -+ if verbose: -+ print("discarding '%s', no digits" % ",".join(refs - tags)) -+ if verbose: -+ print("likely tags: %s" % ",".join(sorted(tags))) -+ for ref in sorted(tags): -+ # sorting will prefer e.g. "2.0" over "2.0rc1" -+ if ref.startswith(tag_prefix): -+ r = ref[len(tag_prefix):] -+ # Filter out refs that exactly match prefix or that don't start -+ # with a number once the prefix is stripped (mostly a concern -+ # when prefix is '') -+ if not re.match(r'\d', r): -+ continue -+ if verbose: -+ print("picking %s" % r) -+ return {"version": r, -+ "full-revisionid": keywords["full"].strip(), -+ "dirty": False, "error": None, -+ "date": date} -+ # no suitable tags, so version is "0+unknown", but full hex is still there -+ if verbose: -+ print("no suitable tags, using unknown + full revision id") -+ return {"version": "0+unknown", -+ "full-revisionid": keywords["full"].strip(), -+ "dirty": False, "error": "no suitable tags", "date": None} -+ -+ -+@register_vcs_handler("git", "pieces_from_vcs") -+def git_pieces_from_vcs(tag_prefix, root, verbose, runner=run_command): -+ """Get version from 'git describe' in the root of the source tree. -+ -+ This only gets called if the git-archive 'subst' keywords were *not* -+ expanded, and _version.py hasn't already been rewritten with a short -+ version string, meaning we're inside a checked out source tree. -+ """ -+ GITS = ["git"] -+ if sys.platform == "win32": -+ GITS = ["git.cmd", "git.exe"] -+ -+ # GIT_DIR can interfere with correct operation of Versioneer. -+ # It may be intended to be passed to the Versioneer-versioned project, -+ # but that should not change where we get our version from. -+ env = os.environ.copy() -+ env.pop("GIT_DIR", None) -+ runner = functools.partial(runner, env=env) -+ -+ _, rc = runner(GITS, ["rev-parse", "--git-dir"], cwd=root, -+ hide_stderr=True) -+ if rc != 0: -+ if verbose: -+ print("Directory %s not under git control" % root) -+ raise NotThisMethod("'git rev-parse --git-dir' returned error") -+ -+ MATCH_ARGS = ["--match", "%s*" % tag_prefix] if tag_prefix else [] -+ -+ # if there is a tag matching tag_prefix, this yields TAG-NUM-gHEX[-dirty] -+ # if there isn't one, this yields HEX[-dirty] (no NUM) -+ describe_out, rc = runner(GITS, ["describe", "--tags", "--dirty", -+ "--always", "--long", *MATCH_ARGS], -+ cwd=root) -+ # --long was added in git-1.5.5 -+ if describe_out is None: -+ raise NotThisMethod("'git describe' failed") -+ describe_out = describe_out.strip() -+ full_out, rc = runner(GITS, ["rev-parse", "HEAD"], cwd=root) -+ if full_out is None: -+ raise NotThisMethod("'git rev-parse' failed") -+ full_out = full_out.strip() -+ -+ pieces = {} -+ pieces["long"] = full_out -+ pieces["short"] = full_out[:7] # maybe improved later -+ pieces["error"] = None -+ -+ branch_name, rc = runner(GITS, ["rev-parse", "--abbrev-ref", "HEAD"], -+ cwd=root) -+ # --abbrev-ref was added in git-1.6.3 -+ if rc != 0 or branch_name is None: -+ raise NotThisMethod("'git rev-parse --abbrev-ref' returned error") -+ branch_name = branch_name.strip() -+ -+ if branch_name == "HEAD": -+ # If we aren't exactly on a branch, pick a branch which represents -+ # the current commit. If all else fails, we are on a branchless -+ # commit. -+ branches, rc = runner(GITS, ["branch", "--contains"], cwd=root) -+ # --contains was added in git-1.5.4 -+ if rc != 0 or branches is None: -+ raise NotThisMethod("'git branch --contains' returned error") -+ branches = branches.split("\n") -+ -+ # Remove the first line if we're running detached -+ if "(" in branches[0]: -+ branches.pop(0) -+ -+ # Strip off the leading "* " from the list of branches. -+ branches = [branch[2:] for branch in branches] -+ if "master" in branches: -+ branch_name = "master" -+ elif not branches: -+ branch_name = None -+ else: -+ # Pick the first branch that is returned. Good or bad. -+ branch_name = branches[0] -+ -+ pieces["branch"] = branch_name -+ -+ # parse describe_out. It will be like TAG-NUM-gHEX[-dirty] or HEX[-dirty] -+ # TAG might have hyphens. -+ git_describe = describe_out -+ -+ # look for -dirty suffix -+ dirty = git_describe.endswith("-dirty") -+ pieces["dirty"] = dirty -+ if dirty: -+ git_describe = git_describe[:git_describe.rindex("-dirty")] -+ -+ # now we have TAG-NUM-gHEX or HEX -+ -+ if "-" in git_describe: -+ # TAG-NUM-gHEX -+ mo = re.search(r'^(.+)-(\d+)-g([0-9a-f]+)$', git_describe) -+ if not mo: -+ # unparsable. Maybe git-describe is misbehaving? -+ pieces["error"] = ("unable to parse git-describe output: '%s'" -+ % describe_out) -+ return pieces -+ -+ # tag -+ full_tag = mo.group(1) -+ if not full_tag.startswith(tag_prefix): -+ if verbose: -+ fmt = "tag '%s' doesn't start with prefix '%s'" -+ print(fmt % (full_tag, tag_prefix)) -+ pieces["error"] = ("tag '%s' doesn't start with prefix '%s'" -+ % (full_tag, tag_prefix)) -+ return pieces -+ pieces["closest-tag"] = full_tag[len(tag_prefix):] -+ -+ # distance: number of commits since tag -+ pieces["distance"] = int(mo.group(2)) -+ -+ # commit: short hex revision ID -+ pieces["short"] = mo.group(3) -+ -+ else: -+ # HEX: no tags -+ pieces["closest-tag"] = None -+ count_out, rc = runner(GITS, ["rev-list", "HEAD", "--count"], cwd=root) -+ pieces["distance"] = int(count_out) # total number of commits - --version_json = ''' --{ -- "dirty": false, -- "error": null, -- "full-revisionid": "7cadb31e3e257c64a47a67255547f0a746e1a465", -- "version": "0.1.10" --} --''' # END VERSION_JSON -+ # commit date: see ISO-8601 comment in git_versions_from_keywords() -+ date = runner(GITS, ["show", "-s", "--format=%ci", "HEAD"], cwd=root)[0].strip() -+ # Use only the last line. Previous lines may contain GPG signature -+ # information. -+ date = date.splitlines()[-1] -+ pieces["date"] = date.strip().replace(" ", "T", 1).replace(" ", "", 1) -+ -+ return pieces -+ -+ -+def plus_or_dot(pieces): -+ """Return a + if we don't already have one, else return a .""" -+ if "+" in pieces.get("closest-tag", ""): -+ return "." -+ return "+" -+ -+ -+def render_pep440(pieces): -+ """Build up version string, with post-release "local version identifier". -+ -+ Our goal: TAG[+DISTANCE.gHEX[.dirty]] . Note that if you -+ get a tagged build and then dirty it, you'll get TAG+0.gHEX.dirty -+ -+ Exceptions: -+ 1: no tags. git_describe was just HEX. 0+untagged.DISTANCE.gHEX[.dirty] -+ """ -+ if pieces["closest-tag"]: -+ rendered = pieces["closest-tag"] -+ if pieces["distance"] or pieces["dirty"]: -+ rendered += plus_or_dot(pieces) -+ rendered += "%d.g%s" % (pieces["distance"], pieces["short"]) -+ if pieces["dirty"]: -+ rendered += ".dirty" -+ else: -+ # exception #1 -+ rendered = "0+untagged.%d.g%s" % (pieces["distance"], -+ pieces["short"]) -+ if pieces["dirty"]: -+ rendered += ".dirty" -+ return rendered -+ -+ -+def render_pep440_branch(pieces): -+ """TAG[[.dev0]+DISTANCE.gHEX[.dirty]] . -+ -+ The ".dev0" means not master branch. Note that .dev0 sorts backwards -+ (a feature branch will appear "older" than the master branch). -+ -+ Exceptions: -+ 1: no tags. 0[.dev0]+untagged.DISTANCE.gHEX[.dirty] -+ """ -+ if pieces["closest-tag"]: -+ rendered = pieces["closest-tag"] -+ if pieces["distance"] or pieces["dirty"]: -+ if pieces["branch"] != "master": -+ rendered += ".dev0" -+ rendered += plus_or_dot(pieces) -+ rendered += "%d.g%s" % (pieces["distance"], pieces["short"]) -+ if pieces["dirty"]: -+ rendered += ".dirty" -+ else: -+ # exception #1 -+ rendered = "0" -+ if pieces["branch"] != "master": -+ rendered += ".dev0" -+ rendered += "+untagged.%d.g%s" % (pieces["distance"], -+ pieces["short"]) -+ if pieces["dirty"]: -+ rendered += ".dirty" -+ return rendered -+ -+ -+def pep440_split_post(ver): -+ """Split pep440 version string at the post-release segment. -+ -+ Returns the release segments before the post-release and the -+ post-release version number (or -1 if no post-release segment is present). -+ """ -+ vc = str.split(ver, ".post") -+ return vc[0], int(vc[1] or 0) if len(vc) == 2 else None -+ -+ -+def render_pep440_pre(pieces): -+ """TAG[.postN.devDISTANCE] -- No -dirty. -+ -+ Exceptions: -+ 1: no tags. 0.post0.devDISTANCE -+ """ -+ if pieces["closest-tag"]: -+ if pieces["distance"]: -+ # update the post release segment -+ tag_version, post_version = pep440_split_post(pieces["closest-tag"]) -+ rendered = tag_version -+ if post_version is not None: -+ rendered += ".post%d.dev%d" % (post_version+1, pieces["distance"]) -+ else: -+ rendered += ".post0.dev%d" % (pieces["distance"]) -+ else: -+ # no commits, use the tag as the version -+ rendered = pieces["closest-tag"] -+ else: -+ # exception #1 -+ rendered = "0.post0.dev%d" % pieces["distance"] -+ return rendered -+ -+ -+def render_pep440_post(pieces): -+ """TAG[.postDISTANCE[.dev0]+gHEX] . -+ -+ The ".dev0" means dirty. Note that .dev0 sorts backwards -+ (a dirty tree will appear "older" than the corresponding clean one), -+ but you shouldn't be releasing software with -dirty anyways. -+ -+ Exceptions: -+ 1: no tags. 0.postDISTANCE[.dev0] -+ """ -+ if pieces["closest-tag"]: -+ rendered = pieces["closest-tag"] -+ if pieces["distance"] or pieces["dirty"]: -+ rendered += ".post%d" % pieces["distance"] -+ if pieces["dirty"]: -+ rendered += ".dev0" -+ rendered += plus_or_dot(pieces) -+ rendered += "g%s" % pieces["short"] -+ else: -+ # exception #1 -+ rendered = "0.post%d" % pieces["distance"] -+ if pieces["dirty"]: -+ rendered += ".dev0" -+ rendered += "+g%s" % pieces["short"] -+ return rendered -+ -+ -+def render_pep440_post_branch(pieces): -+ """TAG[.postDISTANCE[.dev0]+gHEX[.dirty]] . -+ -+ The ".dev0" means not master branch. -+ -+ Exceptions: -+ 1: no tags. 0.postDISTANCE[.dev0]+gHEX[.dirty] -+ """ -+ if pieces["closest-tag"]: -+ rendered = pieces["closest-tag"] -+ if pieces["distance"] or pieces["dirty"]: -+ rendered += ".post%d" % pieces["distance"] -+ if pieces["branch"] != "master": -+ rendered += ".dev0" -+ rendered += plus_or_dot(pieces) -+ rendered += "g%s" % pieces["short"] -+ if pieces["dirty"]: -+ rendered += ".dirty" -+ else: -+ # exception #1 -+ rendered = "0.post%d" % pieces["distance"] -+ if pieces["branch"] != "master": -+ rendered += ".dev0" -+ rendered += "+g%s" % pieces["short"] -+ if pieces["dirty"]: -+ rendered += ".dirty" -+ return rendered -+ -+ -+def render_pep440_old(pieces): -+ """TAG[.postDISTANCE[.dev0]] . -+ -+ The ".dev0" means dirty. -+ -+ Exceptions: -+ 1: no tags. 0.postDISTANCE[.dev0] -+ """ -+ if pieces["closest-tag"]: -+ rendered = pieces["closest-tag"] -+ if pieces["distance"] or pieces["dirty"]: -+ rendered += ".post%d" % pieces["distance"] -+ if pieces["dirty"]: -+ rendered += ".dev0" -+ else: -+ # exception #1 -+ rendered = "0.post%d" % pieces["distance"] -+ if pieces["dirty"]: -+ rendered += ".dev0" -+ return rendered -+ -+ -+def render_git_describe(pieces): -+ """TAG[-DISTANCE-gHEX][-dirty]. -+ -+ Like 'git describe --tags --dirty --always'. -+ -+ Exceptions: -+ 1: no tags. HEX[-dirty] (note: no 'g' prefix) -+ """ -+ if pieces["closest-tag"]: -+ rendered = pieces["closest-tag"] -+ if pieces["distance"]: -+ rendered += "-%d-g%s" % (pieces["distance"], pieces["short"]) -+ else: -+ # exception #1 -+ rendered = pieces["short"] -+ if pieces["dirty"]: -+ rendered += "-dirty" -+ return rendered -+ -+ -+def render_git_describe_long(pieces): -+ """TAG-DISTANCE-gHEX[-dirty]. -+ -+ Like 'git describe --tags --dirty --always -long'. -+ The distance/hash is unconditional. -+ -+ Exceptions: -+ 1: no tags. HEX[-dirty] (note: no 'g' prefix) -+ """ -+ if pieces["closest-tag"]: -+ rendered = pieces["closest-tag"] -+ rendered += "-%d-g%s" % (pieces["distance"], pieces["short"]) -+ else: -+ # exception #1 -+ rendered = pieces["short"] -+ if pieces["dirty"]: -+ rendered += "-dirty" -+ return rendered -+ -+ -+def render(pieces, style): -+ """Render the given version pieces into the requested style.""" -+ if pieces["error"]: -+ return {"version": "unknown", -+ "full-revisionid": pieces.get("long"), -+ "dirty": None, -+ "error": pieces["error"], -+ "date": None} -+ -+ if not style or style == "default": -+ style = "pep440" # the default -+ -+ if style == "pep440": -+ rendered = render_pep440(pieces) -+ elif style == "pep440-branch": -+ rendered = render_pep440_branch(pieces) -+ elif style == "pep440-pre": -+ rendered = render_pep440_pre(pieces) -+ elif style == "pep440-post": -+ rendered = render_pep440_post(pieces) -+ elif style == "pep440-post-branch": -+ rendered = render_pep440_post_branch(pieces) -+ elif style == "pep440-old": -+ rendered = render_pep440_old(pieces) -+ elif style == "git-describe": -+ rendered = render_git_describe(pieces) -+ elif style == "git-describe-long": -+ rendered = render_git_describe_long(pieces) -+ else: -+ raise ValueError("unknown style '%s'" % style) -+ -+ return {"version": rendered, "full-revisionid": pieces["long"], -+ "dirty": pieces["dirty"], "error": None, -+ "date": pieces.get("date")} - - - def get_versions(): -- return json.loads(version_json) -+ """Get version information or return default if unable to do so.""" -+ # I am in _version.py, which lives at ROOT/VERSIONFILE_SOURCE. If we have -+ # __file__, we can work backwards from there to the root. Some -+ # py2exe/bbfreeze/non-CPython implementations don't do __file__, in which -+ # case we can only use expanded keywords. -+ -+ cfg = get_config() -+ verbose = cfg.verbose -+ -+ try: -+ return git_versions_from_keywords(get_keywords(), cfg.tag_prefix, -+ verbose) -+ except NotThisMethod: -+ pass -+ -+ try: -+ root = os.path.realpath(__file__) -+ # versionfile_source is the relative path from the top of the source -+ # tree (where the .git directory might live) to this file. Invert -+ # this to find the root from __file__. -+ for _ in cfg.versionfile_source.split('/'): -+ root = os.path.dirname(root) -+ except NameError: -+ return {"version": "0+unknown", "full-revisionid": None, -+ "dirty": None, -+ "error": "unable to find root of source tree", -+ "date": None} -+ -+ try: -+ pieces = git_pieces_from_vcs(cfg.tag_prefix, root, verbose) -+ return render(pieces, cfg.style) -+ except NotThisMethod: -+ pass -+ -+ try: -+ if cfg.parentdir_prefix: -+ return versions_from_parentdir(cfg.parentdir_prefix, root, verbose) -+ except NotThisMethod: -+ pass -+ -+ return {"version": "0+unknown", "full-revisionid": None, -+ "dirty": None, -+ "error": "unable to compute version", "date": None} -diff --git a/versioneer.py b/versioneer.py -index 7ed2a21..a142bf5 100644 ---- a/versioneer.py -+++ b/versioneer.py -@@ -1,5 +1,5 @@ - --# Version: 0.16 -+# Version: 0.22 - - """The Versioneer - like a rocketeer, but for versions. - -@@ -7,18 +7,14 @@ The Versioneer - ============== - - * like a rocketeer, but for versions! --* https://github.com/warner/python-versioneer -+* https://github.com/python-versioneer/python-versioneer - * Brian Warner - * License: Public Domain --* Compatible With: python2.6, 2.7, 3.3, 3.4, 3.5, and pypy --* [![Latest Version] --(https://pypip.in/version/versioneer/badge.svg?style=flat) --](https://pypi.python.org/pypi/versioneer/) --* [![Build Status] --(https://travis-ci.org/warner/python-versioneer.png?branch=master) --](https://travis-ci.org/warner/python-versioneer) -- --This is a tool for managing a recorded version number in distutils-based -+* Compatible with: Python 3.6, 3.7, 3.8, 3.9, 3.10 and pypy3 -+* [![Latest Version][pypi-image]][pypi-url] -+* [![Build Status][travis-image]][travis-url] -+ -+This is a tool for managing a recorded version number in distutils/setuptools-based - python projects. The goal is to remove the tedious and error-prone "update - the embedded version string" step from your release process. Making a new - release should be as easy as recording a new tag in your version-control -@@ -27,9 +23,10 @@ system, and maybe making new tarballs. - - ## Quick Install - --* `pip install versioneer` to somewhere to your $PATH --* add a `[versioneer]` section to your setup.cfg (see below) -+* `pip install versioneer` to somewhere in your $PATH -+* add a `[versioneer]` section to your setup.cfg (see [Install](INSTALL.md)) - * run `versioneer install` in your source tree, commit the results -+* Verify version information with `python setup.py version` - - ## Version Identifiers - -@@ -61,7 +58,7 @@ version 1.3). Many VCS systems can report a description that captures this, - for example `git describe --tags --dirty --always` reports things like - "0.7-1-g574ab98-dirty" to indicate that the checkout is one revision past the - 0.7 tag, has a unique revision id of "574ab98", and is "dirty" (it has --uncommitted changes. -+uncommitted changes). - - The version identifier is used for multiple purposes: - -@@ -88,127 +85,7 @@ the generated version data. - - ## Installation - --First, decide on values for the following configuration variables: -- --* `VCS`: the version control system you use. Currently accepts "git". -- --* `style`: the style of version string to be produced. See "Styles" below for -- details. Defaults to "pep440", which looks like -- `TAG[+DISTANCE.gSHORTHASH[.dirty]]`. -- --* `versionfile_source`: -- -- A project-relative pathname into which the generated version strings should -- be written. This is usually a `_version.py` next to your project's main -- `__init__.py` file, so it can be imported at runtime. If your project uses -- `src/myproject/__init__.py`, this should be `src/myproject/_version.py`. -- This file should be checked in to your VCS as usual: the copy created below -- by `setup.py setup_versioneer` will include code that parses expanded VCS -- keywords in generated tarballs. The 'build' and 'sdist' commands will -- replace it with a copy that has just the calculated version string. -- -- This must be set even if your project does not have any modules (and will -- therefore never import `_version.py`), since "setup.py sdist" -based trees -- still need somewhere to record the pre-calculated version strings. Anywhere -- in the source tree should do. If there is a `__init__.py` next to your -- `_version.py`, the `setup.py setup_versioneer` command (described below) -- will append some `__version__`-setting assignments, if they aren't already -- present. -- --* `versionfile_build`: -- -- Like `versionfile_source`, but relative to the build directory instead of -- the source directory. These will differ when your setup.py uses -- 'package_dir='. If you have `package_dir={'myproject': 'src/myproject'}`, -- then you will probably have `versionfile_build='myproject/_version.py'` and -- `versionfile_source='src/myproject/_version.py'`. -- -- If this is set to None, then `setup.py build` will not attempt to rewrite -- any `_version.py` in the built tree. If your project does not have any -- libraries (e.g. if it only builds a script), then you should use -- `versionfile_build = None`. To actually use the computed version string, -- your `setup.py` will need to override `distutils.command.build_scripts` -- with a subclass that explicitly inserts a copy of -- `versioneer.get_version()` into your script file. See -- `test/demoapp-script-only/setup.py` for an example. -- --* `tag_prefix`: -- -- a string, like 'PROJECTNAME-', which appears at the start of all VCS tags. -- If your tags look like 'myproject-1.2.0', then you should use -- tag_prefix='myproject-'. If you use unprefixed tags like '1.2.0', this -- should be an empty string, using either `tag_prefix=` or `tag_prefix=''`. -- --* `parentdir_prefix`: -- -- a optional string, frequently the same as tag_prefix, which appears at the -- start of all unpacked tarball filenames. If your tarball unpacks into -- 'myproject-1.2.0', this should be 'myproject-'. To disable this feature, -- just omit the field from your `setup.cfg`. -- --This tool provides one script, named `versioneer`. That script has one mode, --"install", which writes a copy of `versioneer.py` into the current directory --and runs `versioneer.py setup` to finish the installation. -- --To versioneer-enable your project: -- --* 1: Modify your `setup.cfg`, adding a section named `[versioneer]` and -- populating it with the configuration values you decided earlier (note that -- the option names are not case-sensitive): -- -- ```` -- [versioneer] -- VCS = git -- style = pep440 -- versionfile_source = src/myproject/_version.py -- versionfile_build = myproject/_version.py -- tag_prefix = -- parentdir_prefix = myproject- -- ```` -- --* 2: Run `versioneer install`. This will do the following: -- -- * copy `versioneer.py` into the top of your source tree -- * create `_version.py` in the right place (`versionfile_source`) -- * modify your `__init__.py` (if one exists next to `_version.py`) to define -- `__version__` (by calling a function from `_version.py`) -- * modify your `MANIFEST.in` to include both `versioneer.py` and the -- generated `_version.py` in sdist tarballs -- -- `versioneer install` will complain about any problems it finds with your -- `setup.py` or `setup.cfg`. Run it multiple times until you have fixed all -- the problems. -- --* 3: add a `import versioneer` to your setup.py, and add the following -- arguments to the setup() call: -- -- version=versioneer.get_version(), -- cmdclass=versioneer.get_cmdclass(), -- --* 4: commit these changes to your VCS. To make sure you won't forget, -- `versioneer install` will mark everything it touched for addition using -- `git add`. Don't forget to add `setup.py` and `setup.cfg` too. -- --## Post-Installation Usage -- --Once established, all uses of your tree from a VCS checkout should get the --current version string. All generated tarballs should include an embedded --version string (so users who unpack them will not need a VCS tool installed). -- --If you distribute your project through PyPI, then the release process should --boil down to two steps: -- --* 1: git tag 1.0 --* 2: python setup.py register sdist upload -- --If you distribute it through github (i.e. users use github to generate --tarballs with `git archive`), the process is: -- --* 1: git tag 1.0 --* 2: git push; git push --tags -- --Versioneer will report "0+untagged.NUMCOMMITS.gHASH" until your tree has at --least one tag in its history. -+See [INSTALL.md](./INSTALL.md) for detailed installation instructions. - - ## Version-String Flavors - -@@ -229,6 +106,10 @@ information: - * `['full-revisionid']`: detailed revision identifier. For Git, this is the - full SHA1 commit id, e.g. "1076c978a8d3cfc70f408fe5974aa6c092c949ac". - -+* `['date']`: Date and time of the latest `HEAD` commit. For Git, it is the -+ commit date in ISO 8601 format. This will be None if the date is not -+ available. -+ - * `['dirty']`: a boolean, True if the tree has uncommitted changes. Note that - this is only accurate if run in a VCS checkout, otherwise it is likely to - be False or None -@@ -267,8 +148,8 @@ that this commit is two revisions ("+2") beyond the "0.11" tag. For released - software (exactly equal to a known tag), the identifier will only contain the - stripped tag, e.g. "0.11". - --Other styles are available. See details.md in the Versioneer source tree for --descriptions. -+Other styles are available. See [details.md](details.md) in the Versioneer -+source tree for descriptions. - - ## Debugging - -@@ -278,51 +159,83 @@ version`, which will run the version-lookup code in a verbose mode, and will - display the full contents of `get_versions()` (including the `error` string, - which may help identify what went wrong). - --## Updating Versioneer -+## Known Limitations - --To upgrade your project to a new release of Versioneer, do the following: -+Some situations are known to cause problems for Versioneer. This details the -+most significant ones. More can be found on Github -+[issues page](https://github.com/python-versioneer/python-versioneer/issues). - --* install the new Versioneer (`pip install -U versioneer` or equivalent) --* edit `setup.cfg`, if necessary, to include any new configuration settings -- indicated by the release notes --* re-run `versioneer install` in your source tree, to replace -- `SRC/_version.py` --* commit any changed files -+### Subprojects -+ -+Versioneer has limited support for source trees in which `setup.py` is not in -+the root directory (e.g. `setup.py` and `.git/` are *not* siblings). The are -+two common reasons why `setup.py` might not be in the root: -+ -+* Source trees which contain multiple subprojects, such as -+ [Buildbot](https://github.com/buildbot/buildbot), which contains both -+ "master" and "slave" subprojects, each with their own `setup.py`, -+ `setup.cfg`, and `tox.ini`. Projects like these produce multiple PyPI -+ distributions (and upload multiple independently-installable tarballs). -+* Source trees whose main purpose is to contain a C library, but which also -+ provide bindings to Python (and perhaps other languages) in subdirectories. -+ -+Versioneer will look for `.git` in parent directories, and most operations -+should get the right version string. However `pip` and `setuptools` have bugs -+and implementation details which frequently cause `pip install .` from a -+subproject directory to fail to find a correct version string (so it usually -+defaults to `0+unknown`). - --### Upgrading to 0.16 -+`pip install --editable .` should work correctly. `setup.py install` might -+work too. - --Nothing special. -+Pip-8.1.1 is known to have this problem, but hopefully it will get fixed in -+some later version. - --### Upgrading to 0.15 -+[Bug #38](https://github.com/python-versioneer/python-versioneer/issues/38) is tracking -+this issue. The discussion in -+[PR #61](https://github.com/python-versioneer/python-versioneer/pull/61) describes the -+issue from the Versioneer side in more detail. -+[pip PR#3176](https://github.com/pypa/pip/pull/3176) and -+[pip PR#3615](https://github.com/pypa/pip/pull/3615) contain work to improve -+pip to let Versioneer work correctly. - --Starting with this version, Versioneer is configured with a `[versioneer]` --section in your `setup.cfg` file. Earlier versions required the `setup.py` to --set attributes on the `versioneer` module immediately after import. The new --version will refuse to run (raising an exception during import) until you --have provided the necessary `setup.cfg` section. -+Versioneer-0.16 and earlier only looked for a `.git` directory next to the -+`setup.cfg`, so subprojects were completely unsupported with those releases. - --In addition, the Versioneer package provides an executable named --`versioneer`, and the installation process is driven by running `versioneer --install`. In 0.14 and earlier, the executable was named --`versioneer-installer` and was run without an argument. -+### Editable installs with setuptools <= 18.5 - --### Upgrading to 0.14 -+`setup.py develop` and `pip install --editable .` allow you to install a -+project into a virtualenv once, then continue editing the source code (and -+test) without re-installing after every change. - --0.14 changes the format of the version string. 0.13 and earlier used --hyphen-separated strings like "0.11-2-g1076c97-dirty". 0.14 and beyond use a --plus-separated "local version" section strings, with dot-separated --components, like "0.11+2.g1076c97". PEP440-strict tools did not like the old --format, but should be ok with the new one. -+"Entry-point scripts" (`setup(entry_points={"console_scripts": ..})`) are a -+convenient way to specify executable scripts that should be installed along -+with the python package. - --### Upgrading from 0.11 to 0.12 -+These both work as expected when using modern setuptools. When using -+setuptools-18.5 or earlier, however, certain operations will cause -+`pkg_resources.DistributionNotFound` errors when running the entrypoint -+script, which must be resolved by re-installing the package. This happens -+when the install happens with one version, then the egg_info data is -+regenerated while a different version is checked out. Many setup.py commands -+cause egg_info to be rebuilt (including `sdist`, `wheel`, and installing into -+a different virtualenv), so this can be surprising. - --Nothing special. -+[Bug #83](https://github.com/python-versioneer/python-versioneer/issues/83) describes -+this one, but upgrading to a newer version of setuptools should probably -+resolve it. - --### Upgrading from 0.10 to 0.11 - --You must add a `versioneer.VCS = "git"` to your `setup.py` before re-running --`setup.py setup_versioneer`. This will enable the use of additional --version-control systems (SVN, etc) in the future. -+## Updating Versioneer -+ -+To upgrade your project to a new release of Versioneer, do the following: -+ -+* install the new Versioneer (`pip install -U versioneer` or equivalent) -+* edit `setup.cfg`, if necessary, to include any new configuration settings -+ indicated by the release notes. See [UPGRADING](./UPGRADING.md) for details. -+* re-run `versioneer install` in your source tree, to replace -+ `SRC/_version.py` -+* commit any changed files - - ## Future Directions - -@@ -337,6 +250,14 @@ installation by editing setup.py . Alternatively, it might go the other - direction and include code from all supported VCS systems, reducing the - number of intermediate scripts. - -+## Similar projects -+ -+* [setuptools_scm](https://github.com/pypa/setuptools_scm/) - a non-vendored build-time -+ dependency -+* [minver](https://github.com/jbweston/miniver) - a lightweight reimplementation of -+ versioneer -+* [versioningit](https://github.com/jwodder/versioningit) - a PEP 518-based setuptools -+ plugin - - ## License - -@@ -346,19 +267,28 @@ Specifically, both are released under the Creative Commons "Public Domain - Dedication" license (CC0-1.0), as described in - https://creativecommons.org/publicdomain/zero/1.0/ . - -+[pypi-image]: https://img.shields.io/pypi/v/versioneer.svg -+[pypi-url]: https://pypi.python.org/pypi/versioneer/ -+[travis-image]: -+https://img.shields.io/travis/com/python-versioneer/python-versioneer.svg -+[travis-url]: https://travis-ci.com/github/python-versioneer/python-versioneer -+ - """ -+# pylint:disable=invalid-name,import-outside-toplevel,missing-function-docstring -+# pylint:disable=missing-class-docstring,too-many-branches,too-many-statements -+# pylint:disable=raise-missing-from,too-many-lines,too-many-locals,import-error -+# pylint:disable=too-few-public-methods,redefined-outer-name,consider-using-with -+# pylint:disable=attribute-defined-outside-init,too-many-arguments - --from __future__ import print_function --try: -- import configparser --except ImportError: -- import ConfigParser as configparser -+import configparser - import errno - import json - import os - import re - import subprocess - import sys -+from typing import Callable, Dict -+import functools - - - class VersioneerConfig: -@@ -393,10 +323,12 @@ def get_root(): - # module-import table will cache the first one. So we can't use - # os.path.dirname(__file__), as that will find whichever - # versioneer.py was first imported, even in later projects. -- me = os.path.realpath(os.path.abspath(__file__)) -- if os.path.splitext(me)[0] != os.path.splitext(versioneer_py)[0]: -+ my_path = os.path.realpath(os.path.abspath(__file__)) -+ me_dir = os.path.normcase(os.path.splitext(my_path)[0]) -+ vsr_dir = os.path.normcase(os.path.splitext(versioneer_py)[0]) -+ if me_dir != vsr_dir: - print("Warning: build in %s is using versioneer.py from %s" -- % (os.path.dirname(me), versioneer_py)) -+ % (os.path.dirname(my_path), versioneer_py)) - except NameError: - pass - return root -@@ -404,85 +336,94 @@ def get_root(): - - def get_config_from_root(root): - """Read the project setup.cfg file to determine Versioneer config.""" -- # This might raise EnvironmentError (if setup.cfg is missing), or -+ # This might raise OSError (if setup.cfg is missing), or - # configparser.NoSectionError (if it lacks a [versioneer] section), or - # configparser.NoOptionError (if it lacks "VCS="). See the docstring at - # the top of versioneer.py for instructions on writing your setup.cfg . - setup_cfg = os.path.join(root, "setup.cfg") -- parser = configparser.SafeConfigParser() -- with open(setup_cfg, "r") as f: -- parser.readfp(f) -+ parser = configparser.ConfigParser() -+ with open(setup_cfg, "r") as cfg_file: -+ parser.read_file(cfg_file) - VCS = parser.get("versioneer", "VCS") # mandatory - -- def get(parser, name): -- if parser.has_option("versioneer", name): -- return parser.get("versioneer", name) -- return None -+ # Dict-like interface for non-mandatory entries -+ section = parser["versioneer"] -+ - cfg = VersioneerConfig() - cfg.VCS = VCS -- cfg.style = get(parser, "style") or "" -- cfg.versionfile_source = get(parser, "versionfile_source") -- cfg.versionfile_build = get(parser, "versionfile_build") -- cfg.tag_prefix = get(parser, "tag_prefix") -+ cfg.style = section.get("style", "") -+ cfg.versionfile_source = section.get("versionfile_source") -+ cfg.versionfile_build = section.get("versionfile_build") -+ cfg.tag_prefix = section.get("tag_prefix") - if cfg.tag_prefix in ("''", '""'): - cfg.tag_prefix = "" -- cfg.parentdir_prefix = get(parser, "parentdir_prefix") -- cfg.verbose = get(parser, "verbose") -+ cfg.parentdir_prefix = section.get("parentdir_prefix") -+ cfg.verbose = section.get("verbose") - return cfg - - - class NotThisMethod(Exception): - """Exception raised if a method is not valid for the current scenario.""" - -+ - # these dictionaries contain VCS-specific tools --LONG_VERSION_PY = {} --HANDLERS = {} -+LONG_VERSION_PY: Dict[str, str] = {} -+HANDLERS: Dict[str, Dict[str, Callable]] = {} - - - def register_vcs_handler(vcs, method): # decorator -- """Decorator to mark a method as the handler for a particular VCS.""" -+ """Create decorator to mark a method as the handler of a VCS.""" - def decorate(f): - """Store f in HANDLERS[vcs][method].""" -- if vcs not in HANDLERS: -- HANDLERS[vcs] = {} -- HANDLERS[vcs][method] = f -+ HANDLERS.setdefault(vcs, {})[method] = f - return f - return decorate - - --def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False): -+def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False, -+ env=None): - """Call the given command(s).""" - assert isinstance(commands, list) -- p = None -- for c in commands: -+ process = None -+ -+ popen_kwargs = {} -+ if sys.platform == "win32": -+ # This hides the console window if pythonw.exe is used -+ startupinfo = subprocess.STARTUPINFO() -+ startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW -+ popen_kwargs["startupinfo"] = startupinfo -+ -+ for command in commands: - try: -- dispcmd = str([c] + args) -+ dispcmd = str([command] + args) - # remember shell=False, so use git.cmd on windows, not just git -- p = subprocess.Popen([c] + args, cwd=cwd, stdout=subprocess.PIPE, -- stderr=(subprocess.PIPE if hide_stderr -- else None)) -+ process = subprocess.Popen([command] + args, cwd=cwd, env=env, -+ stdout=subprocess.PIPE, -+ stderr=(subprocess.PIPE if hide_stderr -+ else None), **popen_kwargs) - break -- except EnvironmentError: -+ except OSError: - e = sys.exc_info()[1] - if e.errno == errno.ENOENT: - continue - if verbose: - print("unable to run %s" % dispcmd) - print(e) -- return None -+ return None, None - else: - if verbose: - print("unable to find command, tried %s" % (commands,)) -- return None -- stdout = p.communicate()[0].strip() -- if sys.version_info[0] >= 3: -- stdout = stdout.decode() -- if p.returncode != 0: -+ return None, None -+ stdout = process.communicate()[0].strip().decode() -+ if process.returncode != 0: - if verbose: - print("unable to run %s (error)" % dispcmd) -- return None -- return stdout --LONG_VERSION_PY['git'] = ''' -+ print("stdout was %s" % stdout) -+ return None, process.returncode -+ return stdout, process.returncode -+ -+ -+LONG_VERSION_PY['git'] = r''' - # This file helps to compute a version number in source trees obtained from - # git-archive tarball (such as those provided by githubs download-from-tag - # feature). Distribution tarballs (built by setup.py sdist) and build -@@ -490,7 +431,7 @@ LONG_VERSION_PY['git'] = ''' - # that just contains the computed version number. - - # This file is released into the public domain. Generated by --# versioneer-0.16 (https://github.com/warner/python-versioneer) -+# versioneer-0.22 (https://github.com/python-versioneer/python-versioneer) - - """Git implementation of _version.py.""" - -@@ -499,6 +440,8 @@ import os - import re - import subprocess - import sys -+from typing import Callable, Dict -+import functools - - - def get_keywords(): -@@ -509,7 +452,8 @@ def get_keywords(): - # get_keywords(). - git_refnames = "%(DOLLAR)sFormat:%%d%(DOLLAR)s" - git_full = "%(DOLLAR)sFormat:%%H%(DOLLAR)s" -- keywords = {"refnames": git_refnames, "full": git_full} -+ git_date = "%(DOLLAR)sFormat:%%ci%(DOLLAR)s" -+ keywords = {"refnames": git_refnames, "full": git_full, "date": git_date} - return keywords - - -@@ -535,12 +479,12 @@ class NotThisMethod(Exception): - """Exception raised if a method is not valid for the current scenario.""" - - --LONG_VERSION_PY = {} --HANDLERS = {} -+LONG_VERSION_PY: Dict[str, str] = {} -+HANDLERS: Dict[str, Dict[str, Callable]] = {} - - - def register_vcs_handler(vcs, method): # decorator -- """Decorator to mark a method as the handler for a particular VCS.""" -+ """Create decorator to mark a method as the handler of a VCS.""" - def decorate(f): - """Store f in HANDLERS[vcs][method].""" - if vcs not in HANDLERS: -@@ -550,55 +494,71 @@ def register_vcs_handler(vcs, method): # decorator - return decorate - - --def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False): -+def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False, -+ env=None): - """Call the given command(s).""" - assert isinstance(commands, list) -- p = None -- for c in commands: -+ process = None -+ -+ popen_kwargs = {} -+ if sys.platform == "win32": -+ # This hides the console window if pythonw.exe is used -+ startupinfo = subprocess.STARTUPINFO() -+ startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW -+ popen_kwargs["startupinfo"] = startupinfo -+ -+ for command in commands: - try: -- dispcmd = str([c] + args) -+ dispcmd = str([command] + args) - # remember shell=False, so use git.cmd on windows, not just git -- p = subprocess.Popen([c] + args, cwd=cwd, stdout=subprocess.PIPE, -- stderr=(subprocess.PIPE if hide_stderr -- else None)) -+ process = subprocess.Popen([command] + args, cwd=cwd, env=env, -+ stdout=subprocess.PIPE, -+ stderr=(subprocess.PIPE if hide_stderr -+ else None), **popen_kwargs) - break -- except EnvironmentError: -+ except OSError: - e = sys.exc_info()[1] - if e.errno == errno.ENOENT: - continue - if verbose: - print("unable to run %%s" %% dispcmd) - print(e) -- return None -+ return None, None - else: - if verbose: - print("unable to find command, tried %%s" %% (commands,)) -- return None -- stdout = p.communicate()[0].strip() -- if sys.version_info[0] >= 3: -- stdout = stdout.decode() -- if p.returncode != 0: -+ return None, None -+ stdout = process.communicate()[0].strip().decode() -+ if process.returncode != 0: - if verbose: - print("unable to run %%s (error)" %% dispcmd) -- return None -- return stdout -+ print("stdout was %%s" %% stdout) -+ return None, process.returncode -+ return stdout, process.returncode - - - def versions_from_parentdir(parentdir_prefix, root, verbose): - """Try to determine the version from the parent directory name. - -- Source tarballs conventionally unpack into a directory that includes -- both the project name and a version string. -+ Source tarballs conventionally unpack into a directory that includes both -+ the project name and a version string. We will also support searching up -+ two directory levels for an appropriately named parent directory - """ -- dirname = os.path.basename(root) -- if not dirname.startswith(parentdir_prefix): -- if verbose: -- print("guessing rootdir is '%%s', but '%%s' doesn't start with " -- "prefix '%%s'" %% (root, dirname, parentdir_prefix)) -- raise NotThisMethod("rootdir doesn't start with parentdir_prefix") -- return {"version": dirname[len(parentdir_prefix):], -- "full-revisionid": None, -- "dirty": False, "error": None} -+ rootdirs = [] -+ -+ for _ in range(3): -+ dirname = os.path.basename(root) -+ if dirname.startswith(parentdir_prefix): -+ return {"version": dirname[len(parentdir_prefix):], -+ "full-revisionid": None, -+ "dirty": False, "error": None, "date": None} -+ rootdirs.append(root) -+ root = os.path.dirname(root) # up a level -+ -+ if verbose: -+ print("Tried directories %%s but none started with prefix %%s" %% -+ (str(rootdirs), parentdir_prefix)) -+ raise NotThisMethod("rootdir doesn't start with parentdir_prefix") - - - @register_vcs_handler("git", "get_keywords") -@@ -610,18 +570,21 @@ def git_get_keywords(versionfile_abs): - # _version.py. - keywords = {} - try: -- f = open(versionfile_abs, "r") -- for line in f.readlines(): -- if line.strip().startswith("git_refnames ="): -- mo = re.search(r'=\s*"(.*)"', line) -- if mo: -- keywords["refnames"] = mo.group(1) -- if line.strip().startswith("git_full ="): -- mo = re.search(r'=\s*"(.*)"', line) -- if mo: -- keywords["full"] = mo.group(1) -- f.close() -- except EnvironmentError: -+ with open(versionfile_abs, "r") as fobj: -+ for line in fobj: -+ if line.strip().startswith("git_refnames ="): -+ mo = re.search(r'=\s*"(.*)"', line) -+ if mo: -+ keywords["refnames"] = mo.group(1) -+ if line.strip().startswith("git_full ="): -+ mo = re.search(r'=\s*"(.*)"', line) -+ if mo: -+ keywords["full"] = mo.group(1) -+ if line.strip().startswith("git_date ="): -+ mo = re.search(r'=\s*"(.*)"', line) -+ if mo: -+ keywords["date"] = mo.group(1) -+ except OSError: - pass - return keywords - -@@ -629,18 +592,31 @@ def git_get_keywords(versionfile_abs): - @register_vcs_handler("git", "keywords") - def git_versions_from_keywords(keywords, tag_prefix, verbose): - """Get version information from git keywords.""" -- if not keywords: -- raise NotThisMethod("no keywords at all, weird") -+ if "refnames" not in keywords: -+ raise NotThisMethod("Short version file found") -+ date = keywords.get("date") -+ if date is not None: -+ # Use only the last line. Previous lines may contain GPG signature -+ # information. -+ date = date.splitlines()[-1] -+ -+ # git-2.2.0 added "%%cI", which expands to an ISO-8601 -compliant -+ # datestamp. However we prefer "%%ci" (which expands to an "ISO-8601 -+ # -like" string, which we must then edit to make compliant), because -+ # it's been around since git-1.5.3, and it's too difficult to -+ # discover which version we're using, or to work around using an -+ # older one. -+ date = date.strip().replace(" ", "T", 1).replace(" ", "", 1) - refnames = keywords["refnames"].strip() - if refnames.startswith("$Format"): - if verbose: - print("keywords are unexpanded, not using") - raise NotThisMethod("unexpanded keywords, not a git-archive tarball") -- refs = set([r.strip() for r in refnames.strip("()").split(",")]) -+ refs = {r.strip() for r in refnames.strip("()").split(",")} - # starting in git-1.8.3, tags are listed as "tag: foo-1.0" instead of - # just "foo-1.0". If we see a "tag: " prefix, prefer those. - TAG = "tag: " -- tags = set([r[len(TAG):] for r in refs if r.startswith(TAG)]) -+ tags = {r[len(TAG):] for r in refs if r.startswith(TAG)} - if not tags: - # Either we're using git < 1.8.3, or there really are no tags. We use - # a heuristic: assume all version tags have a digit. The old git %%d -@@ -649,56 +625,72 @@ def git_versions_from_keywords(keywords, tag_prefix, verbose): - # between branches and tags. By ignoring refnames without digits, we - # filter out many common branch names like "release" and - # "stabilization", as well as "HEAD" and "master". -- tags = set([r for r in refs if re.search(r'\d', r)]) -+ tags = {r for r in refs if re.search(r'\d', r)} - if verbose: -- print("discarding '%%s', no digits" %% ",".join(refs-tags)) -+ print("discarding '%%s', no digits" %% ",".join(refs - tags)) - if verbose: - print("likely tags: %%s" %% ",".join(sorted(tags))) - for ref in sorted(tags): - # sorting will prefer e.g. "2.0" over "2.0rc1" - if ref.startswith(tag_prefix): - r = ref[len(tag_prefix):] -+ # Filter out refs that exactly match prefix or that don't start -+ # with a number once the prefix is stripped (mostly a concern -+ # when prefix is '') -+ if not re.match(r'\d', r): -+ continue - if verbose: - print("picking %%s" %% r) - return {"version": r, - "full-revisionid": keywords["full"].strip(), -- "dirty": False, "error": None -- } -+ "dirty": False, "error": None, -+ "date": date} - # no suitable tags, so version is "0+unknown", but full hex is still there - if verbose: - print("no suitable tags, using unknown + full revision id") - return {"version": "0+unknown", - "full-revisionid": keywords["full"].strip(), -- "dirty": False, "error": "no suitable tags"} -+ "dirty": False, "error": "no suitable tags", "date": None} - - - @register_vcs_handler("git", "pieces_from_vcs") --def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command): -+def git_pieces_from_vcs(tag_prefix, root, verbose, runner=run_command): - """Get version from 'git describe' in the root of the source tree. - - This only gets called if the git-archive 'subst' keywords were *not* - expanded, and _version.py hasn't already been rewritten with a short - version string, meaning we're inside a checked out source tree. - """ -- if not os.path.exists(os.path.join(root, ".git")): -- if verbose: -- print("no .git in %%s" %% root) -- raise NotThisMethod("no .git directory") -- - GITS = ["git"] - if sys.platform == "win32": - GITS = ["git.cmd", "git.exe"] -+ -+ # GIT_DIR can interfere with correct operation of Versioneer. -+ # It may be intended to be passed to the Versioneer-versioned project, -+ # but that should not change where we get our version from. -+ env = os.environ.copy() -+ env.pop("GIT_DIR", None) -+ runner = functools.partial(runner, env=env) -+ -+ _, rc = runner(GITS, ["rev-parse", "--git-dir"], cwd=root, -+ hide_stderr=True) -+ if rc != 0: -+ if verbose: -+ print("Directory %%s not under git control" %% root) -+ raise NotThisMethod("'git rev-parse --git-dir' returned error") -+ -+ MATCH_ARGS = ["--match", "%%s*" %% tag_prefix] if tag_prefix else [] -+ - # if there is a tag matching tag_prefix, this yields TAG-NUM-gHEX[-dirty] - # if there isn't one, this yields HEX[-dirty] (no NUM) -- describe_out = run_command(GITS, ["describe", "--tags", "--dirty", -- "--always", "--long", -- "--match", "%%s*" %% tag_prefix], -- cwd=root) -+ describe_out, rc = runner(GITS, ["describe", "--tags", "--dirty", -+ "--always", "--long", *MATCH_ARGS], -+ cwd=root) - # --long was added in git-1.5.5 - if describe_out is None: - raise NotThisMethod("'git describe' failed") - describe_out = describe_out.strip() -- full_out = run_command(GITS, ["rev-parse", "HEAD"], cwd=root) -+ full_out, rc = runner(GITS, ["rev-parse", "HEAD"], cwd=root) - if full_out is None: - raise NotThisMethod("'git rev-parse' failed") - full_out = full_out.strip() -@@ -708,6 +700,39 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command): - pieces["short"] = full_out[:7] # maybe improved later - pieces["error"] = None - -+ branch_name, rc = runner(GITS, ["rev-parse", "--abbrev-ref", "HEAD"], -+ cwd=root) -+ # --abbrev-ref was added in git-1.6.3 -+ if rc != 0 or branch_name is None: -+ raise NotThisMethod("'git rev-parse --abbrev-ref' returned error") -+ branch_name = branch_name.strip() -+ -+ if branch_name == "HEAD": -+ # If we aren't exactly on a branch, pick a branch which represents -+ # the current commit. If all else fails, we are on a branchless -+ # commit. -+ branches, rc = runner(GITS, ["branch", "--contains"], cwd=root) -+ # --contains was added in git-1.5.4 -+ if rc != 0 or branches is None: -+ raise NotThisMethod("'git branch --contains' returned error") -+ branches = branches.split("\n") -+ -+ # Remove the first line if we're running detached -+ if "(" in branches[0]: -+ branches.pop(0) -+ -+ # Strip off the leading "* " from the list of branches. -+ branches = [branch[2:] for branch in branches] -+ if "master" in branches: -+ branch_name = "master" -+ elif not branches: -+ branch_name = None -+ else: -+ # Pick the first branch that is returned. Good or bad. -+ branch_name = branches[0] -+ -+ pieces["branch"] = branch_name -+ - # parse describe_out. It will be like TAG-NUM-gHEX[-dirty] or HEX[-dirty] - # TAG might have hyphens. - git_describe = describe_out -@@ -724,7 +749,7 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command): - # TAG-NUM-gHEX - mo = re.search(r'^(.+)-(\d+)-g([0-9a-f]+)$', git_describe) - if not mo: -- # unparseable. Maybe git-describe is misbehaving? -+ # unparsable. Maybe git-describe is misbehaving? - pieces["error"] = ("unable to parse git-describe output: '%%s'" - %% describe_out) - return pieces -@@ -749,10 +774,16 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command): - else: - # HEX: no tags - pieces["closest-tag"] = None -- count_out = run_command(GITS, ["rev-list", "HEAD", "--count"], -- cwd=root) -+ count_out, rc = runner(GITS, ["rev-list", "HEAD", "--count"], cwd=root) - pieces["distance"] = int(count_out) # total number of commits - -+ # commit date: see ISO-8601 comment in git_versions_from_keywords() -+ date = runner(GITS, ["show", "-s", "--format=%%ci", "HEAD"], cwd=root)[0].strip() -+ # Use only the last line. Previous lines may contain GPG signature -+ # information. -+ date = date.splitlines()[-1] -+ pieces["date"] = date.strip().replace(" ", "T", 1).replace(" ", "", 1) -+ - return pieces - - -@@ -788,19 +819,67 @@ def render_pep440(pieces): - return rendered - - --def render_pep440_pre(pieces): -- """TAG[.post.devDISTANCE] -- No -dirty. -+def render_pep440_branch(pieces): -+ """TAG[[.dev0]+DISTANCE.gHEX[.dirty]] . -+ -+ The ".dev0" means not master branch. Note that .dev0 sorts backwards -+ (a feature branch will appear "older" than the master branch). - - Exceptions: -- 1: no tags. 0.post.devDISTANCE -+ 1: no tags. 0[.dev0]+untagged.DISTANCE.gHEX[.dirty] - """ - if pieces["closest-tag"]: - rendered = pieces["closest-tag"] -+ if pieces["distance"] or pieces["dirty"]: -+ if pieces["branch"] != "master": -+ rendered += ".dev0" -+ rendered += plus_or_dot(pieces) -+ rendered += "%%d.g%%s" %% (pieces["distance"], pieces["short"]) -+ if pieces["dirty"]: -+ rendered += ".dirty" -+ else: -+ # exception #1 -+ rendered = "0" -+ if pieces["branch"] != "master": -+ rendered += ".dev0" -+ rendered += "+untagged.%%d.g%%s" %% (pieces["distance"], -+ pieces["short"]) -+ if pieces["dirty"]: -+ rendered += ".dirty" -+ return rendered -+ -+ -+def pep440_split_post(ver): -+ """Split pep440 version string at the post-release segment. -+ -+ Returns the release segments before the post-release and the -+ post-release version number (or -1 if no post-release segment is present). -+ """ -+ vc = str.split(ver, ".post") -+ return vc[0], int(vc[1] or 0) if len(vc) == 2 else None -+ -+ -+def render_pep440_pre(pieces): -+ """TAG[.postN.devDISTANCE] -- No -dirty. -+ -+ Exceptions: -+ 1: no tags. 0.post0.devDISTANCE -+ """ -+ if pieces["closest-tag"]: - if pieces["distance"]: -- rendered += ".post.dev%%d" %% pieces["distance"] -+ # update the post release segment -+ tag_version, post_version = pep440_split_post(pieces["closest-tag"]) -+ rendered = tag_version -+ if post_version is not None: -+ rendered += ".post%%d.dev%%d" %% (post_version+1, pieces["distance"]) -+ else: -+ rendered += ".post0.dev%%d" %% (pieces["distance"]) -+ else: -+ # no commits, use the tag as the version -+ rendered = pieces["closest-tag"] - else: - # exception #1 -- rendered = "0.post.dev%%d" %% pieces["distance"] -+ rendered = "0.post0.dev%%d" %% pieces["distance"] - return rendered - - -@@ -831,12 +910,41 @@ def render_pep440_post(pieces): - return rendered - - -+def render_pep440_post_branch(pieces): -+ """TAG[.postDISTANCE[.dev0]+gHEX[.dirty]] . -+ -+ The ".dev0" means not master branch. -+ -+ Exceptions: -+ 1: no tags. 0.postDISTANCE[.dev0]+gHEX[.dirty] -+ """ -+ if pieces["closest-tag"]: -+ rendered = pieces["closest-tag"] -+ if pieces["distance"] or pieces["dirty"]: -+ rendered += ".post%%d" %% pieces["distance"] -+ if pieces["branch"] != "master": -+ rendered += ".dev0" -+ rendered += plus_or_dot(pieces) -+ rendered += "g%%s" %% pieces["short"] -+ if pieces["dirty"]: -+ rendered += ".dirty" -+ else: -+ # exception #1 -+ rendered = "0.post%%d" %% pieces["distance"] -+ if pieces["branch"] != "master": -+ rendered += ".dev0" -+ rendered += "+g%%s" %% pieces["short"] -+ if pieces["dirty"]: -+ rendered += ".dirty" -+ return rendered -+ -+ - def render_pep440_old(pieces): - """TAG[.postDISTANCE[.dev0]] . - - The ".dev0" means dirty. - -- Eexceptions: -+ Exceptions: - 1: no tags. 0.postDISTANCE[.dev0] - """ - if pieces["closest-tag"]: -@@ -899,17 +1007,22 @@ def render(pieces, style): - return {"version": "unknown", - "full-revisionid": pieces.get("long"), - "dirty": None, -- "error": pieces["error"]} -+ "error": pieces["error"], -+ "date": None} - - if not style or style == "default": - style = "pep440" # the default - - if style == "pep440": - rendered = render_pep440(pieces) -+ elif style == "pep440-branch": -+ rendered = render_pep440_branch(pieces) - elif style == "pep440-pre": - rendered = render_pep440_pre(pieces) - elif style == "pep440-post": - rendered = render_pep440_post(pieces) -+ elif style == "pep440-post-branch": -+ rendered = render_pep440_post_branch(pieces) - elif style == "pep440-old": - rendered = render_pep440_old(pieces) - elif style == "git-describe": -@@ -920,7 +1033,8 @@ def render(pieces, style): - raise ValueError("unknown style '%%s'" %% style) - - return {"version": rendered, "full-revisionid": pieces["long"], -- "dirty": pieces["dirty"], "error": None} -+ "dirty": pieces["dirty"], "error": None, -+ "date": pieces.get("date")} - - - def get_versions(): -@@ -944,12 +1058,13 @@ def get_versions(): - # versionfile_source is the relative path from the top of the source - # tree (where the .git directory might live) to this file. Invert - # this to find the root from __file__. -- for i in cfg.versionfile_source.split('/'): -+ for _ in cfg.versionfile_source.split('/'): - root = os.path.dirname(root) - except NameError: - return {"version": "0+unknown", "full-revisionid": None, - "dirty": None, -- "error": "unable to find root of source tree"} -+ "error": "unable to find root of source tree", -+ "date": None} - - try: - pieces = git_pieces_from_vcs(cfg.tag_prefix, root, verbose) -@@ -965,7 +1080,7 @@ def get_versions(): - - return {"version": "0+unknown", "full-revisionid": None, - "dirty": None, -- "error": "unable to compute version"} -+ "error": "unable to compute version", "date": None} - ''' - - -@@ -978,18 +1093,21 @@ def git_get_keywords(versionfile_abs): - # _version.py. - keywords = {} - try: -- f = open(versionfile_abs, "r") -- for line in f.readlines(): -- if line.strip().startswith("git_refnames ="): -- mo = re.search(r'=\s*"(.*)"', line) -- if mo: -- keywords["refnames"] = mo.group(1) -- if line.strip().startswith("git_full ="): -- mo = re.search(r'=\s*"(.*)"', line) -- if mo: -- keywords["full"] = mo.group(1) -- f.close() -- except EnvironmentError: -+ with open(versionfile_abs, "r") as fobj: -+ for line in fobj: -+ if line.strip().startswith("git_refnames ="): -+ mo = re.search(r'=\s*"(.*)"', line) -+ if mo: -+ keywords["refnames"] = mo.group(1) -+ if line.strip().startswith("git_full ="): -+ mo = re.search(r'=\s*"(.*)"', line) -+ if mo: -+ keywords["full"] = mo.group(1) -+ if line.strip().startswith("git_date ="): -+ mo = re.search(r'=\s*"(.*)"', line) -+ if mo: -+ keywords["date"] = mo.group(1) -+ except OSError: - pass - return keywords - -@@ -997,18 +1115,31 @@ def git_get_keywords(versionfile_abs): - @register_vcs_handler("git", "keywords") - def git_versions_from_keywords(keywords, tag_prefix, verbose): - """Get version information from git keywords.""" -- if not keywords: -- raise NotThisMethod("no keywords at all, weird") -+ if "refnames" not in keywords: -+ raise NotThisMethod("Short version file found") -+ date = keywords.get("date") -+ if date is not None: -+ # Use only the last line. Previous lines may contain GPG signature -+ # information. -+ date = date.splitlines()[-1] -+ -+ # git-2.2.0 added "%cI", which expands to an ISO-8601 -compliant -+ # datestamp. However we prefer "%ci" (which expands to an "ISO-8601 -+ # -like" string, which we must then edit to make compliant), because -+ # it's been around since git-1.5.3, and it's too difficult to -+ # discover which version we're using, or to work around using an -+ # older one. -+ date = date.strip().replace(" ", "T", 1).replace(" ", "", 1) - refnames = keywords["refnames"].strip() - if refnames.startswith("$Format"): - if verbose: - print("keywords are unexpanded, not using") - raise NotThisMethod("unexpanded keywords, not a git-archive tarball") -- refs = set([r.strip() for r in refnames.strip("()").split(",")]) -+ refs = {r.strip() for r in refnames.strip("()").split(",")} - # starting in git-1.8.3, tags are listed as "tag: foo-1.0" instead of - # just "foo-1.0". If we see a "tag: " prefix, prefer those. - TAG = "tag: " -- tags = set([r[len(TAG):] for r in refs if r.startswith(TAG)]) -+ tags = {r[len(TAG):] for r in refs if r.startswith(TAG)} - if not tags: - # Either we're using git < 1.8.3, or there really are no tags. We use - # a heuristic: assume all version tags have a digit. The old git %d -@@ -1017,56 +1148,72 @@ def git_versions_from_keywords(keywords, tag_prefix, verbose): - # between branches and tags. By ignoring refnames without digits, we - # filter out many common branch names like "release" and - # "stabilization", as well as "HEAD" and "master". -- tags = set([r for r in refs if re.search(r'\d', r)]) -+ tags = {r for r in refs if re.search(r'\d', r)} - if verbose: -- print("discarding '%s', no digits" % ",".join(refs-tags)) -+ print("discarding '%s', no digits" % ",".join(refs - tags)) - if verbose: - print("likely tags: %s" % ",".join(sorted(tags))) - for ref in sorted(tags): - # sorting will prefer e.g. "2.0" over "2.0rc1" - if ref.startswith(tag_prefix): - r = ref[len(tag_prefix):] -+ # Filter out refs that exactly match prefix or that don't start -+ # with a number once the prefix is stripped (mostly a concern -+ # when prefix is '') -+ if not re.match(r'\d', r): -+ continue - if verbose: - print("picking %s" % r) - return {"version": r, - "full-revisionid": keywords["full"].strip(), -- "dirty": False, "error": None -- } -+ "dirty": False, "error": None, -+ "date": date} - # no suitable tags, so version is "0+unknown", but full hex is still there - if verbose: - print("no suitable tags, using unknown + full revision id") - return {"version": "0+unknown", - "full-revisionid": keywords["full"].strip(), -- "dirty": False, "error": "no suitable tags"} -+ "dirty": False, "error": "no suitable tags", "date": None} - - - @register_vcs_handler("git", "pieces_from_vcs") --def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command): -+def git_pieces_from_vcs(tag_prefix, root, verbose, runner=run_command): - """Get version from 'git describe' in the root of the source tree. - - This only gets called if the git-archive 'subst' keywords were *not* - expanded, and _version.py hasn't already been rewritten with a short - version string, meaning we're inside a checked out source tree. - """ -- if not os.path.exists(os.path.join(root, ".git")): -- if verbose: -- print("no .git in %s" % root) -- raise NotThisMethod("no .git directory") -- - GITS = ["git"] - if sys.platform == "win32": - GITS = ["git.cmd", "git.exe"] -+ -+ # GIT_DIR can interfere with correct operation of Versioneer. -+ # It may be intended to be passed to the Versioneer-versioned project, -+ # but that should not change where we get our version from. -+ env = os.environ.copy() -+ env.pop("GIT_DIR", None) -+ runner = functools.partial(runner, env=env) -+ -+ _, rc = runner(GITS, ["rev-parse", "--git-dir"], cwd=root, -+ hide_stderr=True) -+ if rc != 0: -+ if verbose: -+ print("Directory %s not under git control" % root) -+ raise NotThisMethod("'git rev-parse --git-dir' returned error") -+ -+ MATCH_ARGS = ["--match", "%s*" % tag_prefix] if tag_prefix else [] -+ - # if there is a tag matching tag_prefix, this yields TAG-NUM-gHEX[-dirty] - # if there isn't one, this yields HEX[-dirty] (no NUM) -- describe_out = run_command(GITS, ["describe", "--tags", "--dirty", -- "--always", "--long", -- "--match", "%s*" % tag_prefix], -- cwd=root) -+ describe_out, rc = runner(GITS, ["describe", "--tags", "--dirty", -+ "--always", "--long", *MATCH_ARGS], -+ cwd=root) - # --long was added in git-1.5.5 - if describe_out is None: - raise NotThisMethod("'git describe' failed") - describe_out = describe_out.strip() -- full_out = run_command(GITS, ["rev-parse", "HEAD"], cwd=root) -+ full_out, rc = runner(GITS, ["rev-parse", "HEAD"], cwd=root) - if full_out is None: - raise NotThisMethod("'git rev-parse' failed") - full_out = full_out.strip() -@@ -1076,6 +1223,39 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command): - pieces["short"] = full_out[:7] # maybe improved later - pieces["error"] = None - -+ branch_name, rc = runner(GITS, ["rev-parse", "--abbrev-ref", "HEAD"], -+ cwd=root) -+ # --abbrev-ref was added in git-1.6.3 -+ if rc != 0 or branch_name is None: -+ raise NotThisMethod("'git rev-parse --abbrev-ref' returned error") -+ branch_name = branch_name.strip() -+ -+ if branch_name == "HEAD": -+ # If we aren't exactly on a branch, pick a branch which represents -+ # the current commit. If all else fails, we are on a branchless -+ # commit. -+ branches, rc = runner(GITS, ["branch", "--contains"], cwd=root) -+ # --contains was added in git-1.5.4 -+ if rc != 0 or branches is None: -+ raise NotThisMethod("'git branch --contains' returned error") -+ branches = branches.split("\n") -+ -+ # Remove the first line if we're running detached -+ if "(" in branches[0]: -+ branches.pop(0) -+ -+ # Strip off the leading "* " from the list of branches. -+ branches = [branch[2:] for branch in branches] -+ if "master" in branches: -+ branch_name = "master" -+ elif not branches: -+ branch_name = None -+ else: -+ # Pick the first branch that is returned. Good or bad. -+ branch_name = branches[0] -+ -+ pieces["branch"] = branch_name -+ - # parse describe_out. It will be like TAG-NUM-gHEX[-dirty] or HEX[-dirty] - # TAG might have hyphens. - git_describe = describe_out -@@ -1092,7 +1272,7 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command): - # TAG-NUM-gHEX - mo = re.search(r'^(.+)-(\d+)-g([0-9a-f]+)$', git_describe) - if not mo: -- # unparseable. Maybe git-describe is misbehaving? -+ # unparsable. Maybe git-describe is misbehaving? - pieces["error"] = ("unable to parse git-describe output: '%s'" - % describe_out) - return pieces -@@ -1117,10 +1297,16 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command): - else: - # HEX: no tags - pieces["closest-tag"] = None -- count_out = run_command(GITS, ["rev-list", "HEAD", "--count"], -- cwd=root) -+ count_out, rc = runner(GITS, ["rev-list", "HEAD", "--count"], cwd=root) - pieces["distance"] = int(count_out) # total number of commits - -+ # commit date: see ISO-8601 comment in git_versions_from_keywords() -+ date = runner(GITS, ["show", "-s", "--format=%ci", "HEAD"], cwd=root)[0].strip() -+ # Use only the last line. Previous lines may contain GPG signature -+ # information. -+ date = date.splitlines()[-1] -+ pieces["date"] = date.strip().replace(" ", "T", 1).replace(" ", "", 1) -+ - return pieces - - -@@ -1128,7 +1314,7 @@ def do_vcs_install(manifest_in, versionfile_source, ipy): - """Git-specific installation logic for Versioneer. - - For Git, this means creating/changing .gitattributes to mark _version.py -- for export-time keyword substitution. -+ for export-subst keyword substitution. - """ - GITS = ["git"] - if sys.platform == "win32": -@@ -1137,27 +1323,26 @@ def do_vcs_install(manifest_in, versionfile_source, ipy): - if ipy: - files.append(ipy) - try: -- me = __file__ -- if me.endswith(".pyc") or me.endswith(".pyo"): -- me = os.path.splitext(me)[0] + ".py" -- versioneer_file = os.path.relpath(me) -+ my_path = __file__ -+ if my_path.endswith(".pyc") or my_path.endswith(".pyo"): -+ my_path = os.path.splitext(my_path)[0] + ".py" -+ versioneer_file = os.path.relpath(my_path) - except NameError: - versioneer_file = "versioneer.py" - files.append(versioneer_file) - present = False - try: -- f = open(".gitattributes", "r") -- for line in f.readlines(): -- if line.strip().startswith(versionfile_source): -- if "export-subst" in line.strip().split()[1:]: -- present = True -- f.close() -- except EnvironmentError: -+ with open(".gitattributes", "r") as fobj: -+ for line in fobj: -+ if line.strip().startswith(versionfile_source): -+ if "export-subst" in line.strip().split()[1:]: -+ present = True -+ break -+ except OSError: - pass - if not present: -- f = open(".gitattributes", "a+") -- f.write("%s export-subst\n" % versionfile_source) -- f.close() -+ with open(".gitattributes", "a+") as fobj: -+ fobj.write(f"{versionfile_source} export-subst\n") - files.append(".gitattributes") - run_command(GITS, ["add", "--"] + files) - -@@ -1165,27 +1350,34 @@ def do_vcs_install(manifest_in, versionfile_source, ipy): - def versions_from_parentdir(parentdir_prefix, root, verbose): - """Try to determine the version from the parent directory name. - -- Source tarballs conventionally unpack into a directory that includes -- both the project name and a version string. -+ Source tarballs conventionally unpack into a directory that includes both -+ the project name and a version string. We will also support searching up -+ two directory levels for an appropriately named parent directory - """ -- dirname = os.path.basename(root) -- if not dirname.startswith(parentdir_prefix): -- if verbose: -- print("guessing rootdir is '%s', but '%s' doesn't start with " -- "prefix '%s'" % (root, dirname, parentdir_prefix)) -- raise NotThisMethod("rootdir doesn't start with parentdir_prefix") -- return {"version": dirname[len(parentdir_prefix):], -- "full-revisionid": None, -- "dirty": False, "error": None} -+ rootdirs = [] -+ -+ for _ in range(3): -+ dirname = os.path.basename(root) -+ if dirname.startswith(parentdir_prefix): -+ return {"version": dirname[len(parentdir_prefix):], -+ "full-revisionid": None, -+ "dirty": False, "error": None, "date": None} -+ rootdirs.append(root) -+ root = os.path.dirname(root) # up a level -+ -+ if verbose: -+ print("Tried directories %s but none started with prefix %s" % -+ (str(rootdirs), parentdir_prefix)) -+ raise NotThisMethod("rootdir doesn't start with parentdir_prefix") -+ - - SHORT_VERSION_PY = """ --# This file was generated by 'versioneer.py' (0.16) from -+# This file was generated by 'versioneer.py' (0.22) from - # revision-control system data, or from the parent directory name of an - # unpacked source archive. Distribution tarballs contain a pre-generated copy - # of this file. - - import json --import sys - - version_json = ''' - %s -@@ -1202,10 +1394,13 @@ def versions_from_file(filename): - try: - with open(filename) as f: - contents = f.read() -- except EnvironmentError: -+ except OSError: - raise NotThisMethod("unable to read _version.py") - mo = re.search(r"version_json = '''\n(.*)''' # END VERSION_JSON", - contents, re.M | re.S) -+ if not mo: -+ mo = re.search(r"version_json = '''\r\n(.*)''' # END VERSION_JSON", -+ contents, re.M | re.S) - if not mo: - raise NotThisMethod("no version_json in _version.py") - return json.loads(mo.group(1)) -@@ -1254,19 +1449,67 @@ def render_pep440(pieces): - return rendered - - --def render_pep440_pre(pieces): -- """TAG[.post.devDISTANCE] -- No -dirty. -+def render_pep440_branch(pieces): -+ """TAG[[.dev0]+DISTANCE.gHEX[.dirty]] . -+ -+ The ".dev0" means not master branch. Note that .dev0 sorts backwards -+ (a feature branch will appear "older" than the master branch). - - Exceptions: -- 1: no tags. 0.post.devDISTANCE -+ 1: no tags. 0[.dev0]+untagged.DISTANCE.gHEX[.dirty] - """ - if pieces["closest-tag"]: - rendered = pieces["closest-tag"] -+ if pieces["distance"] or pieces["dirty"]: -+ if pieces["branch"] != "master": -+ rendered += ".dev0" -+ rendered += plus_or_dot(pieces) -+ rendered += "%d.g%s" % (pieces["distance"], pieces["short"]) -+ if pieces["dirty"]: -+ rendered += ".dirty" -+ else: -+ # exception #1 -+ rendered = "0" -+ if pieces["branch"] != "master": -+ rendered += ".dev0" -+ rendered += "+untagged.%d.g%s" % (pieces["distance"], -+ pieces["short"]) -+ if pieces["dirty"]: -+ rendered += ".dirty" -+ return rendered -+ -+ -+def pep440_split_post(ver): -+ """Split pep440 version string at the post-release segment. -+ -+ Returns the release segments before the post-release and the -+ post-release version number (or -1 if no post-release segment is present). -+ """ -+ vc = str.split(ver, ".post") -+ return vc[0], int(vc[1] or 0) if len(vc) == 2 else None -+ -+ -+def render_pep440_pre(pieces): -+ """TAG[.postN.devDISTANCE] -- No -dirty. -+ -+ Exceptions: -+ 1: no tags. 0.post0.devDISTANCE -+ """ -+ if pieces["closest-tag"]: - if pieces["distance"]: -- rendered += ".post.dev%d" % pieces["distance"] -+ # update the post release segment -+ tag_version, post_version = pep440_split_post(pieces["closest-tag"]) -+ rendered = tag_version -+ if post_version is not None: -+ rendered += ".post%d.dev%d" % (post_version+1, pieces["distance"]) -+ else: -+ rendered += ".post0.dev%d" % (pieces["distance"]) -+ else: -+ # no commits, use the tag as the version -+ rendered = pieces["closest-tag"] - else: - # exception #1 -- rendered = "0.post.dev%d" % pieces["distance"] -+ rendered = "0.post0.dev%d" % pieces["distance"] - return rendered - - -@@ -1297,12 +1540,41 @@ def render_pep440_post(pieces): - return rendered - - -+def render_pep440_post_branch(pieces): -+ """TAG[.postDISTANCE[.dev0]+gHEX[.dirty]] . -+ -+ The ".dev0" means not master branch. -+ -+ Exceptions: -+ 1: no tags. 0.postDISTANCE[.dev0]+gHEX[.dirty] -+ """ -+ if pieces["closest-tag"]: -+ rendered = pieces["closest-tag"] -+ if pieces["distance"] or pieces["dirty"]: -+ rendered += ".post%d" % pieces["distance"] -+ if pieces["branch"] != "master": -+ rendered += ".dev0" -+ rendered += plus_or_dot(pieces) -+ rendered += "g%s" % pieces["short"] -+ if pieces["dirty"]: -+ rendered += ".dirty" -+ else: -+ # exception #1 -+ rendered = "0.post%d" % pieces["distance"] -+ if pieces["branch"] != "master": -+ rendered += ".dev0" -+ rendered += "+g%s" % pieces["short"] -+ if pieces["dirty"]: -+ rendered += ".dirty" -+ return rendered -+ -+ - def render_pep440_old(pieces): - """TAG[.postDISTANCE[.dev0]] . - - The ".dev0" means dirty. - -- Eexceptions: -+ Exceptions: - 1: no tags. 0.postDISTANCE[.dev0] - """ - if pieces["closest-tag"]: -@@ -1365,17 +1637,22 @@ def render(pieces, style): - return {"version": "unknown", - "full-revisionid": pieces.get("long"), - "dirty": None, -- "error": pieces["error"]} -+ "error": pieces["error"], -+ "date": None} - - if not style or style == "default": - style = "pep440" # the default - - if style == "pep440": - rendered = render_pep440(pieces) -+ elif style == "pep440-branch": -+ rendered = render_pep440_branch(pieces) - elif style == "pep440-pre": - rendered = render_pep440_pre(pieces) - elif style == "pep440-post": - rendered = render_pep440_post(pieces) -+ elif style == "pep440-post-branch": -+ rendered = render_pep440_post_branch(pieces) - elif style == "pep440-old": - rendered = render_pep440_old(pieces) - elif style == "git-describe": -@@ -1386,7 +1663,8 @@ def render(pieces, style): - raise ValueError("unknown style '%s'" % style) - - return {"version": rendered, "full-revisionid": pieces["long"], -- "dirty": pieces["dirty"], "error": None} -+ "dirty": pieces["dirty"], "error": None, -+ "date": pieces.get("date")} - - - class VersioneerBadRootError(Exception): -@@ -1465,7 +1743,8 @@ def get_versions(verbose=False): - print("unable to compute version") - - return {"version": "0+unknown", "full-revisionid": None, -- "dirty": None, "error": "unable to compute version"} -+ "dirty": None, "error": "unable to compute version", -+ "date": None} - - - def get_version(): -@@ -1473,8 +1752,12 @@ def get_version(): - return get_versions()["version"] - - --def get_cmdclass(): -- """Get the custom setuptools/distutils subclasses used by Versioneer.""" -+def get_cmdclass(cmdclass=None): -+ """Get the custom setuptools/distutils subclasses used by Versioneer. -+ -+ If the package uses a different cmdclass (e.g. one from numpy), it -+ should be provide as an argument. -+ """ - if "versioneer" in sys.modules: - del sys.modules["versioneer"] - # this fixes the "python setup.py develop" case (also 'install' and -@@ -1488,12 +1771,15 @@ def get_cmdclass(): - # parent is protected against the child's "import versioneer". By - # removing ourselves from sys.modules here, before the child build - # happens, we protect the child from the parent's versioneer too. -- # Also see https://github.com/warner/python-versioneer/issues/52 -+ # Also see https://github.com/python-versioneer/python-versioneer/issues/52 - -- cmds = {} -+ cmds = {} if cmdclass is None else cmdclass.copy() - - # we add "version" to both distutils and setuptools -- from distutils.core import Command -+ try: -+ from setuptools import Command -+ except ImportError: -+ from distutils.core import Command - - class cmd_version(Command): - description = "report generated version string" -@@ -1511,6 +1797,7 @@ def get_cmdclass(): - print("Version: %s" % vers["version"]) - print(" full-revisionid: %s" % vers.get("full-revisionid")) - print(" dirty: %s" % vers.get("dirty")) -+ print(" date: %s" % vers.get("date")) - if vers["error"]: - print(" error: %s" % vers["error"]) - cmds["version"] = cmd_version -@@ -1524,9 +1811,16 @@ def get_cmdclass(): - # setuptools/bdist_egg -> distutils/install_lib -> build_py - # setuptools/install -> bdist_egg ->.. - # setuptools/develop -> ? -+ # pip install: -+ # copies source tree to a tempdir before running egg_info/etc -+ # if .git isn't copied too, 'git describe' will fail -+ # then does setup.py bdist_wheel, or sometimes setup.py install -+ # setup.py egg_info -> ? - - # we override different "build_py" commands for both environments -- if "setuptools" in sys.modules: -+ if 'build_py' in cmds: -+ _build_py = cmds['build_py'] -+ elif "setuptools" in sys.modules: - from setuptools.command.build_py import build_py as _build_py - else: - from distutils.command.build_py import build_py as _build_py -@@ -1546,8 +1840,41 @@ def get_cmdclass(): - write_to_version_file(target_versionfile, versions) - cmds["build_py"] = cmd_build_py - -+ if 'build_ext' in cmds: -+ _build_ext = cmds['build_ext'] -+ elif "setuptools" in sys.modules: -+ from setuptools.command.build_ext import build_ext as _build_ext -+ else: -+ from distutils.command.build_ext import build_ext as _build_ext -+ -+ class cmd_build_ext(_build_ext): -+ def run(self): -+ root = get_root() -+ cfg = get_config_from_root(root) -+ versions = get_versions() -+ _build_ext.run(self) -+ if self.inplace: -+ # build_ext --inplace will only build extensions in -+ # build/lib<..> dir with no _version.py to write to. -+ # As in place builds will already have a _version.py -+ # in the module dir, we do not need to write one. -+ return -+ # now locate _version.py in the new build/ directory and replace -+ # it with an updated value -+ target_versionfile = os.path.join(self.build_lib, -+ cfg.versionfile_build) -+ print("UPDATING %s" % target_versionfile) -+ write_to_version_file(target_versionfile, versions) -+ cmds["build_ext"] = cmd_build_ext -+ - if "cx_Freeze" in sys.modules: # cx_freeze enabled? - from cx_Freeze.dist import build_exe as _build_exe -+ # nczeczulin reports that py2exe won't like the pep440-style string -+ # as FILEVERSION, but it can be used for PRODUCTVERSION, e.g. -+ # setup(console=[{ -+ # "version": versioneer.get_version().split("+", 1)[0], # FILEVERSION -+ # "product_version": versioneer.get_version(), -+ # ... - - class cmd_build_exe(_build_exe): - def run(self): -@@ -1572,8 +1899,35 @@ def get_cmdclass(): - cmds["build_exe"] = cmd_build_exe - del cmds["build_py"] - -+ if 'py2exe' in sys.modules: # py2exe enabled? -+ from py2exe.distutils_buildexe import py2exe as _py2exe -+ -+ class cmd_py2exe(_py2exe): -+ def run(self): -+ root = get_root() -+ cfg = get_config_from_root(root) -+ versions = get_versions() -+ target_versionfile = cfg.versionfile_source -+ print("UPDATING %s" % target_versionfile) -+ write_to_version_file(target_versionfile, versions) -+ -+ _py2exe.run(self) -+ os.unlink(target_versionfile) -+ with open(cfg.versionfile_source, "w") as f: -+ LONG = LONG_VERSION_PY[cfg.VCS] -+ f.write(LONG % -+ {"DOLLAR": "$", -+ "STYLE": cfg.style, -+ "TAG_PREFIX": cfg.tag_prefix, -+ "PARENTDIR_PREFIX": cfg.parentdir_prefix, -+ "VERSIONFILE_SOURCE": cfg.versionfile_source, -+ }) -+ cmds["py2exe"] = cmd_py2exe -+ - # we override different "sdist" commands for both environments -- if "setuptools" in sys.modules: -+ if 'sdist' in cmds: -+ _sdist = cmds['sdist'] -+ elif "setuptools" in sys.modules: - from setuptools.command.sdist import sdist as _sdist - else: - from distutils.command.sdist import sdist as _sdist -@@ -1640,21 +1994,26 @@ SAMPLE_CONFIG = """ - - """ - --INIT_PY_SNIPPET = """ -+OLD_SNIPPET = """ - from ._version import get_versions - __version__ = get_versions()['version'] - del get_versions - """ - -+INIT_PY_SNIPPET = """ -+from . import {0} -+__version__ = {0}.get_versions()['version'] -+""" -+ - - def do_setup(): -- """Main VCS-independent setup function for installing Versioneer.""" -+ """Do main VCS-independent setup function for installing Versioneer.""" - root = get_root() - try: - cfg = get_config_from_root(root) -- except (EnvironmentError, configparser.NoSectionError, -+ except (OSError, configparser.NoSectionError, - configparser.NoOptionError) as e: -- if isinstance(e, (EnvironmentError, configparser.NoSectionError)): -+ if isinstance(e, (OSError, configparser.NoSectionError)): - print("Adding sample versioneer config to setup.cfg", - file=sys.stderr) - with open(os.path.join(root, "setup.cfg"), "a") as f: -@@ -1678,12 +2037,18 @@ def do_setup(): - try: - with open(ipy, "r") as f: - old = f.read() -- except EnvironmentError: -+ except OSError: - old = "" -- if INIT_PY_SNIPPET not in old: -+ module = os.path.splitext(os.path.basename(cfg.versionfile_source))[0] -+ snippet = INIT_PY_SNIPPET.format(module) -+ if OLD_SNIPPET in old: -+ print(" replacing boilerplate in %s" % ipy) -+ with open(ipy, "w") as f: -+ f.write(old.replace(OLD_SNIPPET, snippet)) -+ elif snippet not in old: - print(" appending to %s" % ipy) - with open(ipy, "a") as f: -- f.write(INIT_PY_SNIPPET) -+ f.write(snippet) - else: - print(" %s unmodified" % ipy) - else: -@@ -1702,7 +2067,7 @@ def do_setup(): - if line.startswith("include "): - for include in line.split()[1:]: - simple_includes.add(include) -- except EnvironmentError: -+ except OSError: - pass - # That doesn't cover everything MANIFEST.in can do - # (http://docs.python.org/2/distutils/sourcedist.html#commands), so -@@ -1723,7 +2088,7 @@ def do_setup(): - print(" versionfile_source already in MANIFEST.in") - - # Make VCS-specific changes. For git, this means creating/changing -- # .gitattributes to mark _version.py for export-time keyword -+ # .gitattributes to mark _version.py for export-subst keyword - # substitution. - do_vcs_install(manifest_in, cfg.versionfile_source, ipy) - return 0 -@@ -1765,6 +2130,7 @@ def scan_setup_py(): - errors += 1 - return errors - -+ - if __name__ == "__main__": - cmd = sys.argv[1] - if cmd == "setup":
meta-python/recipes-devtools/python/python3-click-spinner_0.1.10.bb deleted +0 -13
@@ -1,13 +0,0 @@ -SUMMARY = "Spinner for Click" -HOMEPAGE = "https://github.com/click-contrib/click-spinner" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=8227180126797a0148f94f483f3e1489" - -SRC_URI += "file://0001-Update-Versioneer-to-0.22.patch" -SRC_URI[sha256sum] = "87eacf9d7298973a25d7615ef57d4782aebf913a532bba4b28a37e366e975daf" - -inherit pypi setuptools3 - -PYPI_PACKAGE_SDIST = "click-spinner" - -RDEPENDS:${PN} += "python3-json"
meta-python/recipes-devtools/python/python3-click-spinner_0.2.0.bb new file +10 -0
@@ -0,0 +1,10 @@ +SUMMARY = "Spinner for Click" +HOMEPAGE = "https://github.com/click-contrib/click-spinner" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=69a92e89bf5eb0912e714bad75dad065" + +SRC_URI[sha256sum] = "01371550596bc18f1e1546bb2956745eed387235235e664bc96f8cc675b7d6e8" + +inherit pypi python_setuptools_build_meta + +RDEPENDS:${PN} += "python3-json"
PATCH 15/105 python3-cmake: upgrade 4.4.4 -> 4.4.5
In reply to Khem RajChanges:
- Updates the bundled CMake binaries to CMake 4.4.5 (see upstream CMake 4.4.5 release notes); also CI runner and build Python updates.
AI-Generated: Uses Claude Code
---
.../python/{python3-cmake_4.4.4.bb => python3-cmake_4.4.5.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-cmake_4.4.4.bb => python3-cmake_4.4.5.bb} (90%)meta-python/recipes-devtools/python/python3-cmake_4.4.5.bb renamed from meta-python/recipes-devtools/python/python3-cmake_4.4.4.bb +1 -1
@@ -10,7 +10,7 @@ DEPENDS = "ninja-native cmake-native python3-scikit-build-native python3-scikit- PYPI_ARCHIVE_NAME_PREFIX = "pypi-" inherit pypi python_setuptools_build_meta -SRC_URI[sha256sum] = "f337d18e33b116cabae9a7a8ff423fc0bc3f389da0acefeb724e1397128dcc34" +SRC_URI[sha256sum] = "88088f35743b423482408ec9342ade6299fd01f48f56b2066f51c624cada69a5" SRC_URI += " \ file://CMakeLists.txt \
PATCH 16/105 python3-crc32c: upgrade 2.3 -> 2.9.post0
In reply to Khem RajInherit 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
---
...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%)meta-python/recipes-devtools/python/python3-crc32c_2.9.post0.bb renamed from meta-python/recipes-devtools/python/python3-crc32c_2.3.bb +3 -9
@@ -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"
PATCH 17/105 python3-croniter: upgrade 6.2.4 -> 7.0.0
In reply to Khem RajRework the build dependency pin patch to drop the pins; upstream now pins hatchling==1.33.0, newer than OE has.
Changes:
- 7.0.0 is a major release: bug fixes change what some valid expressions mean; read the upstream "Upgrading to 7.0" section.
- Breaking: a step starting at the field maximum ("59/15") now means that single value, not the whole field; expand_from_start_time=True now keeps range bounds and reads phase in the start time's zone.
- Breaking: more invalid expressions raise CroniterBadCronError (non-ASCII digits, out-of-range H()/R() ranges, "1#0"); schedules with no match raise CroniterBadDateError.
- max_years_between_matches must now be an int >= 1 or None.
AI-Generated: Uses Claude Code
---
...r-versions-of-trove-classifiers-and-.patch | 31 +++++++++----------
...ter_6.2.4.bb => python3-croniter_7.0.0.bb} | 2 +-
2 files changed, 16 insertions(+), 17 deletions(-)
rename meta-python/recipes-devtools/python/{python3-croniter_6.2.4.bb => python3-croniter_7.0.0.bb} (83%)meta-python/recipes-devtools/python/python3-croniter/0001-Allow-using-newer-versions-of-trove-classifiers-and-.patch +15 -16
@@ -5,15 +5,14 @@ Subject: [PATCH] Allow using newer versions of build dependencies The pyproject.toml pins exact (==) versions of all build-system requirements. When building with --no-isolation (as OE does), pip uses -the build dependencies already present in the sysroot, which are newer -than the pinned versions, e.g.: +the build dependencies already present in the sysroot, which differ +from the pinned versions, e.g.: ERROR Missing dependencies: - packaging==26.0 - hatchling==1.29.0 + hatchling==1.33.0 -Relax the exact pins to >= so that the (newer) provided versions -satisfy the requirements. +Drop the exact pins so that the provided versions satisfy the +requirements. Upstream-Status: Pending
@@ -24,21 +23,21 @@ Signed-off-by: Leon Anavi <[email protected]> 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml -index 657cc21..d1b9ce3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,10 @@ [build-system] requires = [ -- "hatchling==1.30.1", -- "packaging==26.2", +- "hatchling==1.33.0", +- "packaging==26.3", - "pathspec==1.1.1", -- "pluggy==1.6.0", -- "trove-classifiers==2026.6.1.19", -+ "hatchling>=1.30.1", -+ "packaging>=26.2", -+ "pathspec>=1.1.1", -+ "pluggy>=1.6.0", -+ "trove-classifiers>=2026.6.1.19", +- "pluggy==1.7.0", +- "trove-classifiers==2026.9.21.13", ++ "hatchling", ++ "packaging", ++ "pathspec", ++ "pluggy", ++ "trove-classifiers", ] build-backend = "hatchling.build" +
meta-python/recipes-devtools/python/python3-croniter_7.0.0.bb renamed from meta-python/recipes-devtools/python/python3-croniter_6.2.4.bb +1 -1
@@ -4,7 +4,7 @@ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=b8ee59850b882cbf623188489ea748e2" SRC_URI += "file://0001-Allow-using-newer-versions-of-trove-classifiers-and-.patch" -SRC_URI[sha256sum] = "fc124f751b1b04805c2a04b061898b436b45ab2320b045e1e052ea895de65189" +SRC_URI[sha256sum] = "a0b2568303c774f6a4ea2d4ce2e72b1ee911029c7070d64a1befe05cdb107f5a" inherit pypi python_hatchling
PATCH 18/105 python3-cucumber-tag-expressions: upgrade 9.1.0 -> 11.2.0
In reply to Khem RajDrop the uv_build bound patch; the new <0.14.0 cap allows the uv_build in OE.
Changes:
- No Python-specific changes listed upstream between 9.1.0 and 11.2.0. The shared changelog covers other language ports only: C++ added (11.1.0), Java OSGi bundle name and jspecify range, JavaScript ESM (10.0.0), Ruby minimum 3.1 (11.0.0), .NET test dependency updates.
AI-Generated: Uses Claude Code
---
...ax-required-version-of-uv-to-be-0.12.patch | 38 -------------------
...ython3-cucumber-tag-expressions_11.2.0.bb} | 3 +-
2 files changed, 1 insertion(+), 40 deletions(-)
delete mode 100644 meta-python/recipes-devtools/python/python3-cucumber-tag-expressions/0001-pyprojects-Relax-required-version-of-uv-to-be-0.12.patch
rename meta-python/recipes-devtools/python/{python3-cucumber-tag-expressions_9.1.0.bb => python3-cucumber-tag-expressions_11.2.0.bb} (66%)meta-python/recipes-devtools/python/python3-cucumber-tag-expressions/0001-pyprojects-Relax-required-version-of-uv-to-be-0.12.patch deleted +0 -38
@@ -1,38 +0,0 @@ -From 5cf10b111d61f00db2b3d9c8c6635fc31f3ceefd Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Thu, 14 May 2026 06:43:36 -0700 -Subject: [PATCH] pyprojects: Drop the uv_build upper version bound - -Core builds wheels with "pyproject-build --no-isolation" against whatever -python3-uv-build is in the sysroot, and the build-system requirement is -enforced: - -| * Getting build dependencies for wheel... -| -| ERROR Missing dependencies: -| uv_build<0.11.0,>=0.10.0 - -Raising the bound only defers the problem to the next uv-build upgrade; -the 0.11.32 -> 0.12.1 upgrade in oe-core has already invalidated the -previous <0.12.0 bound. Since there is only ever one uv-build in the -sysroot, drop the upper bound instead. - -Upstream-Status: Inappropriate [OE Specific] - -Signed-off-by: Khem Raj <[email protected]> ---- - pyproject.toml | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/pyproject.toml b/pyproject.toml -index b0f253e..b39d0fd 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -1,6 +1,6 @@ - [build-system] - build-backend = "uv_build" --requires = ["uv_build>=0.10.0,<0.11.0"] -+requires = ["uv_build>=0.10.0"] - - [project] - name = "cucumber-tag-expressions"
meta-python/recipes-devtools/python/python3-cucumber-tag-expressions_11.2.0.bb renamed from meta-python/recipes-devtools/python/python3-cucumber-tag-expressions_9.1.0.bb +1 -2
@@ -4,7 +4,6 @@ HOMEPAGE = "https://github.com/cucumber/tag-expressions" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=134f1026f0de92fd30e71976590a2868" -SRC_URI += "file://0001-pyprojects-Relax-required-version-of-uv-to-be-0.12.patch" -SRC_URI[sha256sum] = "d960383d5885300ebcbcb14e41657946fde2a59d5c0f485eb291bc6a0e228acc" +SRC_URI[sha256sum] = "7de37ff754acd8a09a62ce37183ba235d7d1bcbfde17ea1bdbb2de517b689273" inherit pypi python_uv_build
PATCH 19/105 python3-cvxopt: upgrade 1.3.2 -> 1.3.3
In reply to Khem RajLicense-Update: Copyright year bump.
Changes:
- Fixed out-of-bounds access when a buffer view has ndim == 2.
- Fixed dsdp.sdp() reference counting; replaced the removed private _PyUnicode_AsString with PyUnicode_AsUTF8 (newer Python builds).
- Build: setup.py default library/include directory logic rewritten (platform based, Homebrew prefixes); pyproject.toml now requires setuptools>=64 and setuptools-scm>=8 (was setuptools>=45, setuptools_scm[toml]>=6.2); requires-python >=3.8.
- Documentation refreshed.
AI-Generated: Uses Claude Code
---
.../{python3-cvxopt_1.3.2.bb => python3-cvxopt_1.3.3.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta-python/recipes-devtools/python/{python3-cvxopt_1.3.2.bb => python3-cvxopt_1.3.3.bb} (79%)meta-python/recipes-devtools/python/python3-cvxopt_1.3.3.bb renamed from meta-python/recipes-devtools/python/python3-cvxopt_1.3.2.bb +2 -2
@@ -1,11 +1,11 @@ SUMMARY = "Convex optimization package" HOMEPAGE = "https://cvxopt.org" LICENSE = "GPL-3.0-only" -LIC_FILES_CHKSUM = "file://LICENSE;md5=66ec4f8e53d3e733a8c26d5ca3830fba" +LIC_FILES_CHKSUM = "file://LICENSE;md5=878d3698da0459c16007d32b4b2915a4" SRC_URI = "git://github.com/cvxopt/cvxopt;protocol=https;branch=master" -SRCREV = "3b718ee560b3b97d6255c55f0ed7f64cb4b72082" +SRCREV = "add0181990cab7e018e82246028ded3d67778f2e" CVE_PRODUCT = "cvxopt"
PATCH 20/105 python3-deprecated: upgrade 1.3.1 -> 3.0.1
In reply to Khem RajUpstream dropped setup.py and builds with hatchling; inherit python_hatchling.
License-Update: LICENSE.rst renamed to LICENSE.md (MIT text unchanged).
Changes:
- 3.0.0 (major): requires Python 3.12+ (use 1.3.x on older Python) and wrapt >= 1.16; Python 2.7 support and the inspect2 dependency removed.
- Build backend moved from setuptools to Hatchling (pyproject.toml, src layout).
- Removed deprecated.__date__ and classic.string_types; "from deprecated import *" exports only deprecated and deprecated_params.
- Added deprecated.google and deprecated.numpy docstring decorators, type annotations with py.typed, and pickling support for deprecated functions.
- 3.0.1: preserve constructor signatures of deprecated classes.
AI-Generated: Uses Claude Code
---
...hon3-deprecated_1.3.1.bb => python3-deprecated_3.0.1.bb} | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
rename meta-python/recipes-devtools/python/{python3-deprecated_1.3.1.bb => python3-deprecated_3.0.1.bb} (52%)meta-python/recipes-devtools/python/python3-deprecated_3.0.1.bb renamed from meta-python/recipes-devtools/python/python3-deprecated_1.3.1.bb +3 -3
@@ -1,11 +1,11 @@ SUMMARY = "Python @deprecated decorator to deprecate old python classes, functions or methods." HOMEPAGE = "https://deprecated.readthedocs.io/en/latest/" LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=44288e26f4896bdab14072d4fa35ff01" +LIC_FILES_CHKSUM = "file://LICENSE.md;md5=656397bbedec0bd68b9163ff5e53032b" -SRC_URI[sha256sum] = "b1b50e0ff0c1fddaa5708a2c6b0a6588bb09b892825ab2b214ac9ea9d92a5223" +SRC_URI[sha256sum] = "2f5a9fecc9961e26462846cf1e57f73a612b1d0b79c27dceeed8de647beadcee" -inherit pypi setuptools3 +inherit pypi python_hatchling RDEPENDS:${PN} += " \ python3-wrapt \
PATCH 21/105 python3-devtools: upgrade 0.12.2 -> 0.13.0
In reply to Khem RajUpstream moved from hatchling to uv_build; inherit python_uv_build.
Changes:
- Requires Python 3.10+ (was 3.7); add Python 3.15 support.
- Remove the pytest plugin (upstream recommends inline-snapshot).
- Add IPython debugger support to breakpoint; respect NO_COLOR for automatic debug and pprint highlighting.
- Restore PrettyFormat streams after reentrant calls.
AI-Generated: Uses Claude Code
---
...{python3-devtools_0.12.2.bb => python3-devtools_0.13.0.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta-python/recipes-devtools/python/{python3-devtools_0.12.2.bb => python3-devtools_0.13.0.bb} (75%)meta-python/recipes-devtools/python/python3-devtools_0.13.0.bb renamed from meta-python/recipes-devtools/python/python3-devtools_0.12.2.bb +2 -2
@@ -4,9 +4,9 @@ HOMEPAGE = "https://github.com/samuelcolvin/python-devtools" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=3c69d58fa5f4ff0b4244368d39546751" -SRC_URI[sha256sum] = "efceab184cb35e3a11fa8e602cc4fadacaa2e859e920fc6f87bf130b69885507" +SRC_URI[sha256sum] = "e3a848080404bd4e10dbf535fe016c6b593fccf24a8edac863048b8cbab3d92f" -inherit pypi python_hatchling ptest-python-pytest +inherit pypi python_uv_build ptest-python-pytest RDEPENDS:${PN}-ptest += "\ python3-core \
PATCH 22/105 python3-discovery: upgrade 1.6.4 -> 1.9.5
In reply to Khem RajAdd hatch-fancy-pypi-readme to DEPENDS, now required by the build.
Changes:
- 1.7.0: version specifiers accept free-threaded/debug/arch suffixes (">=3.13t"); unparseable operator specs raise ValueError.
- 1.8.0/1.9.0: expose PythonInfo.marker_environment and MarkerEnvironment typing.
- 1.9.2-1.9.5: many fixes: PATH matching, uv-managed patch releases, caps on candidate output size, retry without cache on cache errors.
- 1.9.2 security hardening (no CVE IDs): skip relative PATH entries, validate pyenv/mise/asdf version names, private temp dir for the probe, untrusted disk cache dirs skipped, no Tk startup files run.
- Bare interpreter names no longer probe a file in the working dir.
AI-Generated: Uses Claude Code
---
...{python3-discovery_1.6.4.bb => python3-discovery_1.9.5.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta-python/recipes-devtools/python/{python3-discovery_1.6.4.bb => python3-discovery_1.9.5.bb} (75%)meta-python/recipes-devtools/python/python3-discovery_1.9.5.bb renamed from meta-python/recipes-devtools/python/python3-discovery_1.6.4.bb +2 -2
@@ -5,11 +5,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=11610a9d8fd95649cf8159be12b98cb7" PYPI_PACKAGE = "python-discovery" -SRC_URI[sha256sum] = "bc70d31f0ec5de11eda13d4d64c16e24b3506a65984684f2b6c98cb83b2ea9df" +SRC_URI[sha256sum] = "86279f5d2728bc067de28b7ddc571be2eacc2ae0e7048f8629d2481a0f8848a2" inherit pypi python_hatchling ptest-python-pytest -DEPENDS += "python3-hatch-vcs-native" +DEPENDS += "python3-hatch-fancy-pypi-readme-native python3-hatch-vcs-native" RDEPENDS:${PN} += "\ python3-core \
PATCH 23/105 python3-django: upgrade 6.0.9 -> 6.0.10
In reply to Khem RajChanges:
- Security release fixing:
CVE-2026-108147: memory exhaustion in MultiPartParser via base64-encoded file uploads.
CVE-2026-111211: log injection via unescaped GeometryField values.
CVE-2026-111362: SSRF via the crs member of GeoJSON geometries.
CVE-2026-113593: private data exposure via empty and missing Vary headers in the cache middleware.
CVE-2026-113733: password hash disclosure to view-only admin users with custom user models.
CVE-2026-114582: SSRF via SpatialReference string input.
AI-Generated: Uses Claude Code
---
.../{python3-django_6.0.9.bb => python3-django_6.0.10.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-django_6.0.9.bb => python3-django_6.0.10.bb} (75%)meta-python/recipes-devtools/python/python3-django_6.0.10.bb renamed from meta-python/recipes-devtools/python/python3-django_6.0.9.bb +1 -1
@@ -1,7 +1,7 @@ require python3-django.inc inherit python_setuptools_build_meta -SRC_URI[sha256sum] = "8ce037c971f421cfb47d38c097ca233a8f6dd42d9e9501a37e02dd7d08c5cb3f" +SRC_URI[sha256sum] = "6005d030df924f85088454c18bd35dcf082b058aa355ad3df520d8de9aef9f41" # Set DEFAULT_PREFERENCE so that the LTS version of django is built by # default. To build the 6.x branch,
PATCH 24/105 python3-dnspython: upgrade 2.8.0 -> 2.9.2
In reply to Khem RajUpstream moved from hatchling to uv_build; inherit python_uv_build. Refresh the DDR test skip patch. The zone tests need the idna module for IDNA 2008; add python3-idna to the ptest RDEPENDS.
Changes:
- Requires Python 3.11+ (2.9.0); httpx2 replaces httpx for HTTPS TCP connections; DNSSEC gains ML-DSA-44.
- Security (no CVE IDs; GHSA-45c3-73f7-pv4m): name decompression chain limited to 16 (CPU DoS); crafted WKS record in a zone file could exhaust memory/CPU (2.9.2); $GENERATE width capped at 127.
- Security (2.9.1): DNSSEC rejects revoked DNSKEY use and mismatched RRSIG type/class; strict ECDSA/DSA signature lengths; resolver uses a random query id each time; negative TTL without SOA capped at 300.
- Security (2.9.1): asyncquery.quic() now verifies the server hostname; XFR responses are checked with is_response(); from_xfr() ignores out-of-zone records; TSIG checked on DoH/DoQ replies.
- Stricter rdata parsing (SVCB/HTTPS, NSEC3, NID/L64, TLSA, SSHFP, LOC, TTL); escape control characters in to_unicode/EDNS text output.
AI-Generated: Uses Claude Code
---
...R-tests-when-the-resolvers-do-not-answe.patch | 16 ++++++++++++----
...ython_2.8.0.bb => python3-dnspython_2.9.2.bb} | 5 +++--
2 files changed, 15 insertions(+), 6 deletions(-)
rename meta-python/recipes-devtools/python/{python3-dnspython_2.8.0.bb => python3-dnspython_2.9.2.bb} (85%)meta-python/recipes-devtools/python/python3-dnspython/0001-tests-skip-DDR-tests-when-the-resolvers-do-not-answe.patch +12 -4
@@ -16,13 +16,14 @@ Skip the tests unless both resolvers return DDR SVCB records. Upstream-Status: Pending Signed-off-by: Khem Raj <[email protected]> --- - tests/test_ddr.py | 27 +++++++++++++++++++++++++-- + tests/test_ddr.py | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) +diff --git a/tests/test_ddr.py b/tests/test_ddr.py --- a/tests/test_ddr.py +++ b/tests/test_ddr.py -@@ -6,13 +6,36 @@ - +@@ -8,12 +8,35 @@ + import dns._ddr import dns.asyncbackend import dns.asyncresolver +import dns.message
@@ -30,6 +31,7 @@ Signed-off-by: Khem Raj <[email protected]> +import dns.query +import dns.rdatatype import dns.resolver + import dns.rrset import tests.util
@@ -53,13 +55,19 @@ Signed-off-by: Khem Raj <[email protected]> + return True + + + def _svcb_nameserver_kinds(svcb_text): + rrset = dns.rrset.from_text("_dns.resolver.arpa.", 7200, "IN", "SVCB", svcb_text) + answer = types.SimpleNamespace(nameserver="192.0.2.1", rrset=rrset) +@@ -64,7 +87,7 @@ + + @pytest.mark.skipif( - not tests.util.is_internet_reachable(), reason="Internet not reachable" + not _ddr_available(), reason="Internet not reachable or DDR not available" ) @tests.util.retry_on_timeout def test_basic_ddr_sync(): -@@ -26,7 +49,7 @@ +@@ -78,7 +101,7 @@ @pytest.mark.skipif(
meta-python/recipes-devtools/python/python3-dnspython_2.9.2.bb renamed from meta-python/recipes-devtools/python/python3-dnspython_2.8.0.bb +3 -2
@@ -3,11 +3,11 @@ HOMEPAGE = "https://www.dnspython.org/" LICENSE = "ISC" LIC_FILES_CHKSUM = "file://LICENSE;md5=5af50906b5929837f667dfe31052bd34" -SRC_URI[sha256sum] = "181d3c6996452cb1189c4046c61599b84a5a86e099562ffde77d26984ff26d0f" +SRC_URI[sha256sum] = "8d4d39a513e649d634004ce4d39ade2352efcea472a0247535a5c2d18a9d7ba9" CVE_PRODUCT = "dnspython" -inherit pypi python_hatchling ptest +inherit pypi python_uv_build ptest SRC_URI += " \ file://run-ptest \
@@ -16,6 +16,7 @@ SRC_URI += " \ " RDEPENDS:${PN}-ptest += " \ + python3-idna \ python3-pytest \ python3-unittest-automake-output \ "
PATCH 25/105 python3-dominate: upgrade 2.9.1 -> 3.1.0
In reply to Khem RajDrop the backported patch, it is part of this release. The sdist doesn't ship the dominate.community package, so drop its tests from the ptest.
Changes:
- 3.0 series: requires Python 3.10+ (3.9 dropped), adds Python 3.14; asyncio code uses get_running_loop() instead of get_event_loop().
- Async DOM contexts copied per task are now kept separate.
- Fixes: unescape() on out-of-range numeric entities, preserve numeric zero attribute values, inline link whitespace, lazy node rendering, child node deletion by index.
AI-Generated: Uses Claude Code
---
...d7fdb171f80ed6ce97e6ca4409723975c47f.patch | 40 -------------------
...ate_2.9.1.bb => python3-dominate_3.1.0.bb} | 9 +++--
2 files changed, 5 insertions(+), 44 deletions(-)
delete mode 100644 meta-python/recipes-devtools/python/python3-dominate/58f7d7fdb171f80ed6ce97e6ca4409723975c47f.patch
rename meta-python/recipes-devtools/python/{python3-dominate_2.9.1.bb => python3-dominate_3.1.0.bb} (60%)meta-python/recipes-devtools/python/python3-dominate/58f7d7fdb171f80ed6ce97e6ca4409723975c47f.patch deleted +0 -40
@@ -1,40 +0,0 @@ -From 58f7d7fdb171f80ed6ce97e6ca4409723975c47f Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <[email protected]> -Date: Sat, 3 Aug 2024 16:07:38 +0200 -Subject: [PATCH] Update tests for docstring dedenting in Python 3.13 - -Update the `get_expected()` function to account for the fact that -Python 3.13 automatically dedents all the docstrings, and therefore -does not require explicitly removing the indent (which effectively -removes too much indent). - -Fixes #199 - -Upstream-Status: Submitted [https://github.com/Knio/dominate/pull/202] -Signed-off-by: Khem Raj <[email protected]> ---- - tests/test_svg.py | 7 ++++++- - 1 file changed, 6 insertions(+), 1 deletion(-) - -diff --git a/tests/test_svg.py b/tests/test_svg.py -index e5bbec3..ea7d98f 100644 ---- a/tests/test_svg.py -+++ b/tests/test_svg.py -@@ -1,3 +1,5 @@ -+import sys -+ - import dominate.svg - from dominate.tags import * - from dominate.svg import * -@@ -14,7 +16,10 @@ def base(): - - - def get_expected(func): -- return func.__doc__.replace('\n ', '\n').strip() -+ doc = func.__doc__ -+ if sys.version_info < (3, 13): -+ doc = doc.replace('\n ', '\n') -+ return doc.strip() - - - def output_test(func):
meta-python/recipes-devtools/python/python3-dominate_3.1.0.bb renamed from meta-python/recipes-devtools/python/python3-dominate_2.9.1.bb +5 -4
@@ -2,13 +2,14 @@ SUMMARY = "Dominate is a Python library for creating and manipulating HTML docum LICENSE = "LGPL-3.0-only" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b52f2d57d10c4f7ee67a7eb9615d5d24" -SRC_URI[sha256sum] = "558284687d9b8aae1904e3d6051ad132dd4a8c0cf551b37ea4e7e42a31d19dc4" +SRC_URI[sha256sum] = "926989c819db2fe91e590590a2902183685edd94829c8cfba5fd71af57c1a982" inherit pypi ptest-python-pytest python_setuptools_build_meta -SRC_URI += " \ - file://58f7d7fdb171f80ed6ce97e6ca4409723975c47f.patch \ -" +# the sdist lacks the dominate.community package these tests import +do_install_ptest:append() { + rm -rf ${D}${PTEST_PATH}/tests/community +} RDEPENDS:${PN} += "\ python3-numbers \
PATCH 26/105 python3-email-validator: upgrade 2.3.0 -> 2.4.0
In reply to Khem RajChanges:
- Drops Python 3.8 and 3.9; adds 3.14 and 3.15 to testing.
- Stricter validation: reject IPv6 zone indexes, multiple trailing angle brackets in display names, IDNA Bidi Rule violations, and IDN domains over 253 characters before encoding.
- IPv6 domain literal tag is case-insensitive; "original" field no longer wrongly un-escapes the local part; quoted local parts with U+037E handled correctly.
- Faster validation of non-Punycode domains; CLI reads boolean and DEFAULT_TIMEOUT environment variables correctly.
AI-Generated: Uses Claude Code
---
...mail-validator_2.3.0.bb => python3-email-validator_2.4.0.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-email-validator_2.3.0.bb => python3-email-validator_2.4.0.bb} (76%)meta-python/recipes-devtools/python/python3-email-validator_2.4.0.bb renamed from meta-python/recipes-devtools/python/python3-email-validator_2.3.0.bb +1 -1
@@ -3,7 +3,7 @@ SECTION = "devel/python" LICENSE = "Unlicense" LIC_FILES_CHKSUM = "file://LICENSE;md5=2890aee62bd2a4c3197e2059016a397e" -SRC_URI[sha256sum] = "9fc05c37f2f6cf439ff414f8fc46d917929974a82244c20eb10231ba60c54426" +SRC_URI[sha256sum] = "be487bc50bc3bd832a98515a55a15649d9bec06d954fa178663190714b6c4ee1" inherit pypi setuptools3
PATCH 27/105 python3-eth-keys: upgrade 0.5.0 -> 0.8.0
In reply to Khem RajUpstream dropped setup.py; build with python_setuptools_build_meta, setuptools-scm and wheel.
License-Update: Copyright year bump.
Changes:
- 0.6.0: ecdsa_raw_recover now accepts only v values of 0 or 1 (breaking).
- 0.7.0: drop coincurve <= 16, add coincurve 21 support (breaking); reduce message digest modulo before HMAC; PrivateKey.public_key made an explicit instance member.
- 0.8.0: drop Python 3.8 and 3.9 (breaking); add Python 3.14 support.
AI-Generated: Uses Claude Code
--- .../python/python3-eth-keys_0.5.0.bb | 13 ------------- .../python/python3-eth-keys_0.8.0.bb | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 13 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-eth-keys_0.5.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-eth-keys_0.8.0.bb
meta-python/recipes-devtools/python/python3-eth-keys_0.5.0.bb deleted +0 -13
@@ -1,13 +0,0 @@ -SUMMARY = "A common API for Ethereum key operations with pluggable backends." -HOMEPAGE = "https://github.com/ethereum/eth-keys" -SECTION = "devel/python" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=6749008d847c14b9718949c2e24d5c0a" - -SRC_URI[sha256sum] = "a0abccb83f3d84322591a2c047a1e3aa52ea86b185fa3e82ce311d120ca2791e" - -inherit pypi setuptools3 - -PYPI_PACKAGE_SDIST = "eth-keys" - -RDEPENDS:${PN} += "python3-eth-utils"
meta-python/recipes-devtools/python/python3-eth-keys_0.8.0.bb new file +14 -0
@@ -0,0 +1,14 @@ +SUMMARY = "A common API for Ethereum key operations with pluggable backends." +HOMEPAGE = "https://github.com/ethereum/eth-keys" +SECTION = "devel/python" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=d3f53e7cc5bf80b16eff1f4a38c73182" + +SRC_URI[sha256sum] = "11549b251876fccd7caedd6905e494ea2309aec352ec2579b00ef9978017a964" + +inherit pypi python_setuptools_build_meta + +DEPENDS += "python3-setuptools-scm-native python3-wheel-native" + + +RDEPENDS:${PN} += "python3-eth-utils"
PATCH 28/105 python3-eth-rlp: upgrade 2.1.0 -> 3.0.0
In reply to Khem RajUpstream dropped setup.py; build with python_setuptools_build_meta, setuptools-scm and wheel.
License-Update: Copyright year bump.
Changes:
- 3.0.0: drops Python < 3.10 (breaking); supports up to 3.14.
- Dependency floor raised: rlp>=3.0.0 (was >=0.6.0), hexbytes>=1.2.0; typing_extensions needed only before Python 3.11.
- 2.2.0: template upgrade; tooling moved to prek and ruff.
AI-Generated: Uses Claude Code
---
...python3-eth-rlp_2.1.0.bb => python3-eth-rlp_3.0.0.bb} | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
rename meta-python/recipes-devtools/python/{python3-eth-rlp_2.1.0.bb => python3-eth-rlp_3.0.0.bb} (51%)meta-python/recipes-devtools/python/python3-eth-rlp_3.0.0.bb renamed from meta-python/recipes-devtools/python/python3-eth-rlp_2.1.0.bb +5 -4
@@ -2,13 +2,14 @@ SUMMARY = "RLP definitions for common Ethereum objects in Python" HOMEPAGE = "https://github.com/ethereum/eth-rlp" SECTION = "devel/python" LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=3d7bdfe69b1ffbde073ca6e96f5c53f7" +LIC_FILES_CHKSUM = "file://LICENSE;md5=3ef06eb4d4373222e59a338e2eb9a795" -SRC_URI[sha256sum] = "d5b408a8cd20ed496e8e66d0559560d29bc21cee482f893936a1f05d0dddc4a0" +SRC_URI[sha256sum] = "9663e54a4a1c1c847d2d328c1d07e4174ec1c082953fbb42b60e61c501c4931c" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta + +DEPENDS += "python3-setuptools-scm-native python3-wheel-native" -PYPI_PACKAGE_SDIST = "eth-rlp" RDEPENDS:${PN} = " \ python3-eth-utils \
PATCH 29/105 python3-fastapi: upgrade 0.162.0 -> 0.163.1
In reply to Khem RajFastAPI now depends on anyio directly. The settings examples were renamed upstream; drop all docs_src/settings/app02* examples, they need pydantic-settings which isn't packaged.
Changes:
- 0.163.0: add dependency concurrency limits with Depends(max_concurrency=...).
- 0.162.6: breaking, drops support for Python 3.10.
- 0.162.4: require AnyIO 4.1.0 or newer at runtime.
- Fixes: async and sync yield-dependency cleanup on cancellation (0.162.5/0.162.7), OpenAPI for response models with nested computed fields (0.163.1).
AI-Generated: Uses Claude Code
---
...ython3-fastapi_0.162.0.bb => python3-fastapi_0.163.1.bb} | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
rename meta-python/recipes-devtools/python/{python3-fastapi_0.162.0.bb => python3-fastapi_0.163.1.bb} (89%)meta-python/recipes-devtools/python/python3-fastapi_0.163.1.bb renamed from meta-python/recipes-devtools/python/python3-fastapi_0.162.0.bb +3 -3
@@ -4,7 +4,7 @@ HOMEPAGE = "https://fastapi.tiangolo.com/" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=95792ff3fe8e11aa49ceb247e66e4810" -SRC_URI[sha256sum] = "6a22c1e2e6e32e0633ee7e170f00009a29b8228b16feb219ee42f32fd8d88a8f" +SRC_URI[sha256sum] = "3d364b02a68b67292e833ff2dfed3b8dc3aeadf73e271c15316c6c166668792f" SRC_URI += "file://run-ptest"
@@ -20,6 +20,7 @@ PACKAGECONFIG[swagger-ui] = ",,,swagger-ui" RDEPENDS:${PN} += "\ python3-annotated-doc \ + python3-anyio \ python3-fastapi-cli \ python3-json \ python3-opentelemetry-api \
@@ -49,6 +50,5 @@ do_install_ptest:append() { echo "import sys; from pathlib import Path; sys.path.insert(0, str(Path(__file__).parent))" > ${D}${PTEST_PATH}/conftest.py # these docs examples need python3-pydantic-settings, which meta-python # doesn't package - rm -rf ${D}${PTEST_PATH}/docs_src/settings/app02_an_py310 - rm -rf ${D}${PTEST_PATH}/docs_src/settings/app02_py310 + rm -rf ${D}${PTEST_PATH}/docs_src/settings/app02* }
PATCH 30/105 python3-fastapi-cli: upgrade 0.0.33 -> 0.0.34
In reply to Khem RajAI-Generated: Uses Claude Code
---
...hon3-fastapi-cli_0.0.33.bb => python3-fastapi-cli_0.0.34.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-fastapi-cli_0.0.33.bb => python3-fastapi-cli_0.0.34.bb} (81%)meta-python/recipes-devtools/python/python3-fastapi-cli_0.0.34.bb renamed from meta-python/recipes-devtools/python/python3-fastapi-cli_0.0.33.bb +1 -1
@@ -3,7 +3,7 @@ HOMEPAGE = "https://fastapi.tiangolo.com/" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=e0cf8d811ea2046529403707b266fb5a" -SRC_URI[sha256sum] = "94f19bcde4bd6ae26328292ac864082543262b7ee9f5d11bd7224614c22fb958" +SRC_URI[sha256sum] = "7eeb74cf83edd75d22a9289713db03d8a0be3ed7a8daa48a3703a12d4f2a4615" inherit pypi python_pdm
PATCH 31/105 python3-filelock: upgrade 4.2.9 -> 4.2.10
In reply to Khem RajThe build now requires the python-sbom hatch plugin, which only adds SBOM metadata and isn't packaged in OE; drop it from pyproject.toml.
Changes:
- Fix contended FileLock/SoftFileLock acquisition retrying forever with zero-length sleeps when the clock lands exactly on the timeout deadline; it now raises Timeout (4.2.10).
- Add a PEP 770 CycloneDX SBOM to every wheel.
AI-Generated: Uses Claude Code
---
...ython3-filelock_4.2.9.bb => python3-filelock_4.2.10.bb} | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-filelock_4.2.9.bb => python3-filelock_4.2.10.bb} (83%)meta-python/recipes-devtools/python/python3-filelock_4.2.10.bb renamed from meta-python/recipes-devtools/python/python3-filelock_4.2.9.bb +6 -1
@@ -9,7 +9,7 @@ CVE_PRODUCT = "tox-dev:filelock" SRC_URI += "file://run-ptest" -SRC_URI[sha256sum] = "96530b7c538d4ea08493ab067247aab7948c54d8cd622cce711c97cccc5d9896" +SRC_URI[sha256sum] = "fcc3c0cb8bfe7f4b3bb0e231c04b15dbad068cb3c2515f343d8fde4dce93bd5d" BBCLASSEXTEND = "native nativesdk"
@@ -20,6 +20,11 @@ DEPENDS += "\ python3-hatch-vcs-native \ " +# python-sbom (an SBOM metadata hatch hook) isn't packaged in OE +do_configure:prepend() { + sed -i -e '/python-sbom\[hatch\]/d' -e '/build.hooks.python-sbom/d' ${S}/pyproject.toml +} + RDEPENDS:${PN} += " \ python3-core \ python3-crypt \
PATCH 32/105 python3-flask-cors: upgrade 6.0.2 -> 6.0.5
In reply to Khem RajAdd setuptools-scm to DEPENDS, now required by the build.
Changes:
- Add full type annotations and a py.typed marker; the package passes mypy --strict. CORS()/init_app() accept a Blueprint (6.0.5).
- Resolve options into a frozen internal dataclass; invalid regular expressions now raise instead of being silently ignored.
- Derive the package version from the git tag via setuptools-scm.
AI-Generated: Uses Claude Code
---
...ython3-flask-cors_6.0.2.bb => python3-flask-cors_6.0.5.bb} | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-flask-cors_6.0.2.bb => python3-flask-cors_6.0.5.bb} (78%)meta-python/recipes-devtools/python/python3-flask-cors_6.0.5.bb renamed from meta-python/recipes-devtools/python/python3-flask-cors_6.0.2.bb +3 -1
@@ -10,6 +10,8 @@ LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=6;endline=6;md5=134f1026f0de92fd30 CVE_PRODUCT = "flask-cors" inherit pypi python_setuptools_build_meta -SRC_URI[sha256sum] = "6e118f3698249ae33e429760db98ce032a8bf9913638d085ca0f4c5534ad2423" + +DEPENDS += "python3-setuptools-scm-native" +SRC_URI[sha256sum] = "30c5031552cd59f620ac0c8211dac45b345d3b2df310e7721879e4f46ef9c601" RDEPENDS:${PN} += "python3-flask"
PATCH 33/105 python3-flask-user: upgrade 0.6.19 -> 1.0.2.2
In reply to Khem RajDrop Flask-Login from setup_requires, which made setuptools try to fetch it from PyPI at build time, and add the new runtime dependencies (bcrypt, cryptography, Flask-SQLAlchemy).
License-Update: Upstream relicensed from BSD-2-Clause to MIT in 1.0; LICENSE updated to MIT.
Changes:
- BREAKING: v1.0 is not compatible with 0.6; UserManager properties and methods are now overridden or extended by subclassing. Custom form class attributes renamed (register_form -> RegisterFormClass).
- Password hashing is configurable through passlib CryptContext settings; minimum passlib raised from 1.6 to 1.7.
- TokenManager accepts parts of the password so tokens are invalidated after a password change; it also accepts non-integer user IDs.
- Add MongoDB (Flask-MongoEngine) and DynamoDB (Flask-Flywheel) support and an EmailAdapter interface (SMTP, sendmail, SendGrid, custom).
- Remove callbacks/auth0; drop Python 2.6 and 3.3; add Slovak, Polish and Ukrainian translations; fix crashes with USER_ENABLE_INVITE_USER and with username change when USER_ENABLE_EMAIL is false.
AI-Generated: Uses Claude Code
---
...ser_0.6.19.bb => python3-flask-user_1.0.2.2.bb} | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
rename meta-python/recipes-devtools/python/{python3-flask-user_0.6.19.bb => python3-flask-user_1.0.2.2.bb} (53%)meta-python/recipes-devtools/python/python3-flask-user_1.0.2.2.bb renamed from meta-python/recipes-devtools/python/python3-flask-user_0.6.19.bb +11 -3
@@ -3,10 +3,10 @@ DESCRIPTION = "Customizable User Account Management for Flask; Register \ Confirm email, Login, Change username, Change password, Forgot Password \ and more." HOMEPAGE = "https://github.com/lingthio/Flask-User" -LICENSE = "BSD-2-Clause" -LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=97de97cd9d6e23c88129d884588ce71a" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=5aabce758ead32427c145173bc555403" -SRC_URI[sha256sum] = "601abcc0343dfbae0c56273d98362d5cdc266ac84d20b3f65a212e4a2c83b302" +SRC_URI[sha256sum] = "c9785febc2fc7ca15c69cfff1c8dabc2788f25043b54a33f73a6c2a9daf7fbe4" PYPI_PACKAGE_SDIST = "Flask-User"
@@ -14,12 +14,20 @@ CVE_PRODUCT = "flask-user_project:flask-user" inherit pypi setuptools3 +# setup_requires would make setuptools fetch Flask-Login from PyPI at build time +do_configure:prepend() { + sed -i -e "s/setup_requires=\['Flask-Login',\] + pytest_runner/setup_requires=pytest_runner/" ${S}/setup.py +} + RDEPENDS:${PN} = " \ python3-babel \ + python3-bcrypt \ python3-blinker \ + python3-cryptography \ python3-flask \ python3-flask-login \ python3-flask-mail \ + python3-flask-sqlalchemy \ python3-flask-wtf \ python3-passlib \ "
PATCH 34/105 python3-gcovr: upgrade 8.7 -> 8.8
In reply to Khem RajChanges:
- Fixed removal of coverage data for internal C functions (known bug in 8.7).
- GitHub-theme HTML source view: breadcrumbs changed.
- Release pipeline fix for macOS standalone applications; CI hardening only otherwise (zizmor, dependabot).
AI-Generated: Uses Claude Code
---
.../python/{python3-gcovr_8.7.bb => python3-gcovr_8.8.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-gcovr_8.7.bb => python3-gcovr_8.8.bb} (93%)meta-python/recipes-devtools/python/python3-gcovr_8.8.bb renamed from meta-python/recipes-devtools/python/python3-gcovr_8.7.bb +1 -1
@@ -8,7 +8,7 @@ SRC_URI = " \ git://github.com/gcovr/gcovr.git;branch=main;protocol=https \ file://0001-pyproject.toml-Support-newer-versions.patch \ " -SRCREV = "7fc1fc829b77a3fd7828abcd976b2e56ff1f28c2" +SRCREV = "6e49f2f4d05f0bde932dc40f95d6e501c0e42651" inherit python_hatchling
PATCH 35/105 python3-gnupg: upgrade 0.5.6 -> 0.5.7
In reply to Khem RajThe sdist is now named python_gnupg; drop the explicit S. Add a patch relaxing the setuptools<75 cap.
Changes:
- Add quick_sign_key(), hidden recipients for encrypt_file(), and allow paths in verify_file().
- Allow passing an encoding to the GPG initializer via a keyword parameter (#277).
AI-Generated: Uses Claude Code
---
...l-Relax-the-setuptools-version-bound.patch | 24 +++++++++++++++++++
...-gnupg_0.5.6.bb => python3-gnupg_0.5.7.bb} | 4 ++--
2 files changed, 26 insertions(+), 2 deletions(-)
create mode 100644 meta-python/recipes-devtools/python/python3-gnupg/0001-pyproject.toml-Relax-the-setuptools-version-bound.patch
rename meta-python/recipes-devtools/python/{python3-gnupg_0.5.6.bb => python3-gnupg_0.5.7.bb} (70%)meta-python/recipes-devtools/python/python3-gnupg/0001-pyproject.toml-Relax-the-setuptools-version-bound.patch new file +24 -0
@@ -0,0 +1,24 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Sun, 15 Nov 2026 23:26:55 -0800 +Subject: [PATCH] pyproject.toml: Relax the setuptools version bound + +setuptools is capped below 75 upstream; build with the setuptools +version that OE ships. + +Upstream-Status: Inappropriate [OE-specific] +Signed-off-by: Khem Raj <[email protected]> +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] + requires = [ +- "setuptools >= 68,<75", ++ "setuptools >= 68", + ] + build-backend = 'setuptools.build_meta'
meta-python/recipes-devtools/python/python3-gnupg_0.5.7.bb renamed from meta-python/recipes-devtools/python/python3-gnupg_0.5.6.bb +2 -2
@@ -5,13 +5,13 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=5dabe659eadd6d97325b1582e41cfc11" PYPI_PACKAGE = "python-gnupg" -SRC_URI[sha256sum] = "5743e96212d38923fc19083812dc127907e44dbd3bcf0db4d657e291d3c21eac" +SRC_URI += "file://0001-pyproject.toml-Relax-the-setuptools-version-bound.patch" +SRC_URI[sha256sum] = "73ea46219f992b361eb1ce54cb0968101670654454916a3ee5df8bb9bf0cc8cc" CVE_PRODUCT = "python:python-gnupg" inherit pypi python_setuptools_build_meta -S = "${UNPACKDIR}/python-gnupg-${PV}" DEPENDS += "python3-wheel-native"
PATCH 36/105 python3-google-api-python-client: upgrade 2.136.0 -> 2.202.0
In reply to Khem RajChanges:
- BREAKING: drop support for Python 3.7-3.9 (2.199.0); add Python 3.13, 3.14 and 3.15 support.
- Validate module, class and filename during MediaUpload deserialization (2.200.0; hardening against unsafe loading).
- Auto-enable mTLS when supported certificates are detected; read apiVersion from discovery artifacts; import urllib.parse explicitly.
- Fix installation of pre-release dependency versions; drop universal wheel setup.cfg config.
- Regenerated discovery documents for many Google APIs (new services and methods).
AI-Generated: Uses Claude Code
---
..._2.136.0.bb => python3-google-api-python-client_2.202.0.bb} | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
rename meta-python/recipes-devtools/python/{python3-google-api-python-client_2.136.0.bb => python3-google-api-python-client_2.202.0.bb} (78%)meta-python/recipes-devtools/python/python3-google-api-python-client_2.202.0.bb renamed from meta-python/recipes-devtools/python/python3-google-api-python-client_2.136.0.bb +1 -2
@@ -4,11 +4,10 @@ HOMEPAGE = "https://github.com/googleapis/google-api-python-client" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" -SRC_URI[sha256sum] = "161c722c8864e7ed39393e2b7eea76ef4e1c933a6a59f9d7c70409b6635f225d" +SRC_URI[sha256sum] = "ae126c8e91f43c331e23dbd83bc4a8075699dd48089cebc7295f6ab2f5850fc5" inherit pypi setuptools3 -PYPI_PACKAGE_SDIST = "google-api-python-client" RDEPENDS:${PN} += "\ python3-logging \
PATCH 37/105 python3-google-auth: upgrade 2.57.0 -> 2.62.2
In reply to Khem RajRework the mTLS test skip patch for the reorganized tests. The transport tests import zoneinfo; add python3-zoneinfo to the ptest RDEPENDS.
Changes:
- oauth2.verify_firebase_token now validates the Firebase issuer and subject and warns when the audience is omitted (2.62.2).
- mTLS: fix races during certificate rotation on 401 responses, use an unencrypted key for rotation, support mTLS in requests.Request refresh/impersonation, and add aiohttp reconfiguration on cert mismatch.
- Add bound access and ID tokens for GKE and Cloud Run; sync credentials in AsyncAuthorizedSession; strip -fips from the AWS service name in SigV4 signing; declare Python 3.15 support.
AI-Generated: Uses Claude Code
---
...uth-Skip-mTLS-tests-in-ptest-environ.patch | 65 +++++++++----------
....57.0.bb => python3-google-auth_2.62.2.bb} | 3 +-
2 files changed, 32 insertions(+), 36 deletions(-)
rename meta-python/recipes-devtools/python/{python3-google-auth_2.57.0.bb => python3-google-auth_2.62.2.bb} (90%)meta-python/recipes-devtools/python/python3-google-auth/0001-python3-google-auth-Skip-mTLS-tests-in-ptest-environ.patch +30 -35
@@ -18,31 +18,30 @@ in the embedded ptest runtime without external certificate infrastructure. Upstream-Status: Inappropriate [ptest environment limitation] Signed-off-by: Khem Raj <[email protected]> --- - tests/transport/test_requests.py | 6 ++++++ - tests/transport/test_urllib3.py | 2 ++ + tests/transport/test_requests.py | 6 ++++++ + tests/transport/test_urllib3.py | 2 ++ 2 files changed, 8 insertions(+) diff --git a/tests/transport/test_requests.py b/tests/transport/test_requests.py -index f14ccea..6a1cc55 100644 --- a/tests/transport/test_requests.py +++ b/tests/transport/test_requests.py -@@ -178,6 +178,7 @@ class TimeTickAdapterStub(AdapterStub): +@@ -504,6 +504,7 @@ + + class TestMutualTlsAdapter(object): ++ @pytest.mark.skip(reason="mTLS requires certificates not available in ptest") @mock.patch.object(requests.adapters.HTTPAdapter, "init_poolmanager") @mock.patch.object(requests.adapters.HTTPAdapter, "proxy_manager_for") -+ @pytest.mark.skip(reason="mTLS requires certificates not available in ptest") def test_success(self, mock_proxy_manager_for, mock_init_poolmanager): - adapter = google.auth.transport.requests._MutualTlsAdapter( - pytest.public_cert_bytes, pytest.private_key_bytes -@@ -189,6 +190,7 @@ class TestMutualTlsAdapter(object): - adapter.proxy_manager_for() - mock_proxy_manager_for.assert_called_with(ssl_context=adapter._ctx_proxymanager) +@@ -530,6 +531,7 @@ + assert adapter._ctx_poolmanager.verify_mode == ssl.CERT_NONE + assert adapter._ctx_proxymanager.verify_mode == ssl.CERT_NONE + @pytest.mark.skip(reason="mTLS requires certificates not available in ptest") def test_invalid_cert_or_key(self): with pytest.raises(exceptions.MutualTLSChannelError): google.auth.transport.requests._MutualTlsAdapter( -@@ -408,6 +410,7 @@ class TestAuthorizedSession(object): +@@ -750,6 +752,7 @@ "https://{}/".format(default_host) )
@@ -50,35 +49,34 @@ index f14ccea..6a1cc55 100644 def test_configure_mtls_channel_with_callback(self): mock_callback = mock.Mock() mock_callback.return_value = ( -@@ -432,6 +435,7 @@ class TestAuthorizedSession(object): +@@ -771,6 +774,7 @@ + google.auth.transport.requests._MutualTlsAdapter, + ) + ++ @pytest.mark.skip(reason="mTLS requires certificates not available in ptest") @mock.patch( "google.auth.transport._mtls_helper.get_client_cert_and_key", autospec=True ) +@@ -1671,6 +1675,7 @@ + + + class TestMutualTlsOffloadAdapter(object): + @pytest.mark.skip(reason="mTLS requires certificates not available in ptest") - def test_configure_mtls_channel_with_metadata(self, mock_get_client_cert_and_key): - mock_get_client_cert_and_key.return_value = ( - True, -@@ -888,6 +892,7 @@ class TestMutualTlsOffloadAdapter(object): - google.auth.transport._custom_tls_signer.CustomTlsSigner, - "attach_to_ssl_context", - ) -+ @pytest.mark.skip(reason="mTLS requires certificates not available in ptest") - def test_success( - self, - mock_attach_to_ssl_context, -@@ -921,6 +926,7 @@ class TestMutualTlsOffloadAdapter(object): - google.auth.transport._custom_tls_signer.CustomTlsSigner, - "attach_to_ssl_context", - ) + @mock.patch.object(requests.adapters.HTTPAdapter, "init_poolmanager") + @mock.patch.object(requests.adapters.HTTPAdapter, "proxy_manager_for") + @mock.patch.object( +@@ -1701,6 +1706,7 @@ + adapter.proxy_manager_for() + mock_proxy_manager_for.assert_called_with(ssl_context=adapter._ctx_proxymanager) + + @pytest.mark.skip(reason="mTLS requires certificates not available in ptest") - def test_success_should_use_provider( - self, - mock_attach_to_ssl_context, + @mock.patch.object(requests.adapters.HTTPAdapter, "init_poolmanager") + @mock.patch.object(requests.adapters.HTTPAdapter, "proxy_manager_for") + @mock.patch.object( diff --git a/tests/transport/test_urllib3.py b/tests/transport/test_urllib3.py -index 3367403..88d0963 100644 --- a/tests/transport/test_urllib3.py +++ b/tests/transport/test_urllib3.py -@@ -94,12 +94,14 @@ class ResponseStub(object): +@@ -94,12 +94,14 @@ class TestMakeMutualTlsHttp(object):
@@ -93,6 +91,3 @@ index 3367403..88d0963 100644 def test_crypto_error(self): with pytest.raises(exceptions.MutualTLSChannelError): google.auth.transport.urllib3._make_mutual_tls_http( --- -2.43.0 -
meta-python/recipes-devtools/python/python3-google-auth_2.62.2.bb renamed from meta-python/recipes-devtools/python/python3-google-auth_2.57.0.bb +2 -1
@@ -9,7 +9,7 @@ SRC_URI += " \ file://0001-python3-google-auth-Skip-mTLS-tests-in-ptest-environ.patch \ file://run-ptest \ " -SRC_URI[sha256sum] = "9b4f96d6a1feb5f7201231f47cfb3de08d8f176f8a61f9e461555116e95a8789" +SRC_URI[sha256sum] = "046c61a72d3a847d6df6417a7f0d5cf054e3b82bbcb54fb1e69d47880964049c" RDEPENDS:${PN}-ptest += " \ python3-aioresponses \
@@ -28,6 +28,7 @@ RDEPENDS:${PN}-ptest += " \ python3-responses \ python3-unittest-automake-output \ python3-unixadmin \ + python3-zoneinfo \ " do_install_ptest() {
PATCH 38/105 python3-graphviz: upgrade 0.20.3 -> 0.21
In reply to Khem RajUpstream dropped setup.py and now ships a .tar.gz sdist; inherit python_setuptools_build_meta and drop PYPI_PACKAGE_EXT.
License-Update: Copyright year bump.
Changes:
- Drop Python 3.8 support; tag Python 3.13 support.
- Add format='svg_inline' (header-less SVG for inlining into HTML, needs Graphviz >= 10.0.1).
- Switch to pyproject.toml built with "python -m build"; the sdist is now a PEP 625 .tar.gz instead of .zip.
AI-Generated: Uses Claude Code
--- .../python/python3-graphviz_0.20.3.bb | 16 ---------------- .../python/python3-graphviz_0.21.bb | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 16 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-graphviz_0.20.3.bb create mode 100644 meta-python/recipes-devtools/python/python3-graphviz_0.21.bb
meta-python/recipes-devtools/python/python3-graphviz_0.20.3.bb deleted +0 -16
@@ -1,16 +0,0 @@ -DESCRIPTION = "Graphviz protocol implementation" -HOMEPAGE = "https://graphviz.readthedocs.io/en/stable/" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=bcdc1cf20245c598f9a563b550605785" - -SRC_URI[sha256sum] = "09d6bc81e6a9fa392e7ba52135a9d49f1ed62526f96499325930e87ca1b5925d" - -inherit pypi setuptools3 - -PYPI_PACKAGE_EXT = "zip" - -RDEPENDS:${PN} += " \ - python3-logging \ -" - -BBCLASSEXTEND = "native nativesdk"
meta-python/recipes-devtools/python/python3-graphviz_0.21.bb new file +15 -0
@@ -0,0 +1,15 @@ +DESCRIPTION = "Graphviz protocol implementation" +HOMEPAGE = "https://graphviz.readthedocs.io/en/stable/" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4b25184bd855af83b70418a1497a1208" + +SRC_URI[sha256sum] = "20743e7183be82aaaa8ad6c93f8893c923bd6658a04c32ee115edb3c8a835f78" + +inherit pypi python_setuptools_build_meta + + +RDEPENDS:${PN} += " \ + python3-logging \ +" + +BBCLASSEXTEND = "native nativesdk"
PATCH 39/105 python3-grpcio: upgrade 1.84.1 -> 1.85.1
In reply to Khem RajDrop the OpenSSL 4 patch; upstream fixed the same code differently. Refresh the cross-compilation patch, and backport the abseil fix for clang rejecting a direct <bmi2intrin.h> include (needed for x86-64-v3) to the bundled abseil.
Changes:
- Security: fix denial of service in the Health Watch RPC and HPACK host/:authority handling (1.85.1); no CVE ID given in the release notes. 1.85.0 also updates the gRPC root certificates.
- Add MLKEM1024 key exchange, OpenSSL 4 support and the map_host_header_to_authority experiment; remove OpenSSL 1.0.2 support.
- Fix AsyncIO client-streaming memory leak with interceptors, data race in PollerCompletionQueue, channelz and CSDS leaks, and SyncServicerContext.abort not raising.
- Unpin Cython for source builds.
AI-Generated: Uses Claude Code
---
.../0001-Fix-OpenSSL-4.0-compatibility.patch | 140 ------------------
...set-include-immintrin.h-instead-of-b.patch | 36 +++++
...n-enable-unbundled-cross-compilation.patch | 6 +-
...cio_1.84.1.bb => python3-grpcio_1.85.1.bb} | 4 +-
4 files changed, 40 insertions(+), 146 deletions(-)
delete mode 100644 meta-python/recipes-devtools/python/python3-grpcio/0001-Fix-OpenSSL-4.0-compatibility.patch
create mode 100644 meta-python/recipes-devtools/python/python3-grpcio/0001-abseil-raw_hash_set-include-immintrin.h-instead-of-b.patch
rename meta-python/recipes-devtools/python/{python3-grpcio_1.84.1.bb => python3-grpcio_1.85.1.bb} (92%)meta-python/recipes-devtools/python/python3-grpcio/0001-Fix-OpenSSL-4.0-compatibility.patch deleted +0 -140
@@ -1,140 +0,0 @@ -From 664032e1cee574e5d3874bbf55466448f537ab1a Mon Sep 17 00:00:00 2001 -From: Jaipaul Cheernam <[email protected]> -Date: Thu, 27 Aug 2026 10:55:42 +0000 -Subject: [PATCH] Fix OpenSSL 4.0 compatibility in bundled grpc - -OpenSSL 4.0 returns const pointers from X509 accessor functions -and makes ASN1_OCTET_STRING opaque. Use auto* for const returns -and ASN1_STRING accessors for opaque access. - -Upstream-Status: Submitted [https://github.com/grpc/grpc/pull/41932] - -Note: Fixes bundled grpc 1.78.0 C core. Our fix for areas not -covered by the upstream PR. - -Signed-off-by: Jaipaul Cheernam <[email protected]> ---- - .../transport/tls/grpc_tls_crl_provider.cc | 2 +- - src/core/tsi/ssl_transport_security.cc | 17 ++++++++--------- - src/core/tsi/ssl_transport_security_utils.cc | 10 +++++----- - 3 files changed, 14 insertions(+), 15 deletions(-) - -diff --git a/src/core/credentials/transport/tls/grpc_tls_crl_provider.cc b/src/core/credentials/transport/tls/grpc_tls_crl_provider.cc -index 7bd4c5a..22d266e 100644 ---- a/src/core/credentials/transport/tls/grpc_tls_crl_provider.cc -+++ b/src/core/credentials/transport/tls/grpc_tls_crl_provider.cc -@@ -56,7 +56,7 @@ absl::StatusOr<std::string> IssuerFromCrl(X509_CRL* crl) { - if (crl == nullptr) { - return absl::InvalidArgumentError("crl cannot be null"); - } -- X509_NAME* issuer = X509_CRL_get_issuer(crl); -+ auto* issuer = X509_CRL_get_issuer(crl); - if (issuer == nullptr) { - return absl::InvalidArgumentError("crl cannot have null issuer"); - } -diff --git a/src/core/tsi/ssl_transport_security.cc b/src/core/tsi/ssl_transport_security.cc -index 6526d3f..ff03697 100644 ---- a/src/core/tsi/ssl_transport_security.cc -+++ b/src/core/tsi/ssl_transport_security.cc -@@ -1021,9 +1021,9 @@ static int looks_like_ip_address(absl::string_view name) { - static tsi_result ssl_get_x509_common_name(X509* cert, unsigned char** utf8, - size_t* utf8_size) { - int common_name_index = -1; -- X509_NAME_ENTRY* common_name_entry = nullptr; -- ASN1_STRING* common_name_asn1 = nullptr; -- X509_NAME* subject_name = X509_get_subject_name(cert); -+ const X509_NAME_ENTRY* common_name_entry = nullptr; -+ const ASN1_STRING* common_name_asn1 = nullptr; -+ auto* subject_name = X509_get_subject_name(cert); - int utf8_returned_size = 0; - if (subject_name == nullptr) { - VLOG(2) << "Could not get subject name from certificate."; -@@ -1081,7 +1081,7 @@ static tsi_result peer_property_from_x509_common_name( - static tsi_result peer_property_from_x509_subject(X509* cert, - tsi_peer_property* property, - bool is_verified_root_cert) { -- X509_NAME* subject_name = X509_get_subject_name(cert); -+ auto* subject_name = X509_get_subject_name(cert); - if (subject_name == nullptr) { - GRPC_TRACE_LOG(tsi, INFO) << "Could not get subject name from certificate."; - return TSI_NOT_FOUND; -@@ -1177,16 +1177,16 @@ static tsi_result add_subject_alt_names_properties_to_peer( - char ntop_buf[INET6_ADDRSTRLEN]; - int af; - -- if (subject_alt_name->d.iPAddress->length == 4) { -+ if (ASN1_STRING_length(subject_alt_name->d.iPAddress) == 4) { - af = AF_INET; -- } else if (subject_alt_name->d.iPAddress->length == 16) { -+ } else if (ASN1_STRING_length(subject_alt_name->d.iPAddress) == 16) { - af = AF_INET6; - } else { - LOG(ERROR) << "SAN IP Address contained invalid IP"; - result = TSI_INTERNAL_ERROR; - break; - } -- const char* name = inet_ntop(af, subject_alt_name->d.iPAddress->data, -+ const char* name = inet_ntop(af, ASN1_STRING_get0_data(subject_alt_name->d.iPAddress), - ntop_buf, INET6_ADDRSTRLEN); - if (name == nullptr) { - LOG(ERROR) << "Could not get IP string from asn1 octet."; -@@ -1472,13 +1472,12 @@ static tsi_result x509_store_load_certs(X509_STORE* cert_store, - break; // We're at the end of stream. - } - if (root_names != nullptr) { -- root_name = X509_get_subject_name(root); -+ root_name = X509_NAME_dup(X509_get_subject_name(root)); - if (root_name == nullptr) { - LOG(ERROR) << "Could not get name from root certificate."; - result = TSI_INVALID_ARGUMENT; - break; - } -- root_name = X509_NAME_dup(root_name); - if (root_name == nullptr) { - result = TSI_OUT_OF_RESOURCES; - break; -diff --git a/src/core/tsi/ssl_transport_security_utils.cc b/src/core/tsi/ssl_transport_security_utils.cc -index 8f6607c..93876bb 100644 ---- a/src/core/tsi/ssl_transport_security_utils.cc -+++ b/src/core/tsi/ssl_transport_security_utils.cc -@@ -282,11 +282,11 @@ bool VerifyCrlCertIssuerNamesMatch(X509_CRL* crl, X509* cert) { - if (cert == nullptr || crl == nullptr) { - return false; - } -- X509_NAME* cert_issuer_name = X509_get_issuer_name(cert); -+ auto* cert_issuer_name = X509_get_issuer_name(cert); - if (cert_issuer_name == nullptr) { - return false; - } -- X509_NAME* crl_issuer_name = X509_CRL_get_issuer(crl); -+ auto* crl_issuer_name = X509_CRL_get_issuer(crl); - if (crl_issuer_name == nullptr) { - return false; - } -@@ -317,7 +317,7 @@ absl::StatusOr<std::string> IssuerFromCert(X509* cert) { - if (cert == nullptr) { - return absl::InvalidArgumentError("cert cannot be null"); - } -- X509_NAME* issuer = X509_get_issuer_name(cert); -+ auto* issuer = X509_get_issuer_name(cert); - unsigned char* buf = nullptr; - int len = i2d_X509_NAME(issuer, &buf); - if (len < 0 || buf == nullptr) { -@@ -332,7 +332,7 @@ absl::StatusOr<std::string> AkidFromCertificate(X509* cert) { - if (cert == nullptr) { - return absl::InvalidArgumentError("cert cannot be null."); - } -- ASN1_OCTET_STRING* akid = nullptr; -+ const ASN1_OCTET_STRING* akid = nullptr; - int j = X509_get_ext_by_NID(cert, NID_authority_key_identifier, -1); - // Can't have multiple occurrences - if (j >= 0) { -@@ -357,7 +357,7 @@ absl::StatusOr<std::string> AkidFromCrl(X509_CRL* crl) { - if (crl == nullptr) { - return absl::InvalidArgumentError("Could not get AKID from crl."); - } -- ASN1_OCTET_STRING* akid = nullptr; -+ const ASN1_OCTET_STRING* akid = nullptr; - int j = X509_CRL_get_ext_by_NID(crl, NID_authority_key_identifier, -1); - // Can't have multiple occurrences - if (j >= 0) {
meta-python/recipes-devtools/python/python3-grpcio/0001-abseil-raw_hash_set-include-immintrin.h-instead-of-b.patch new file +36 -0
@@ -0,0 +1,36 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Tue, 24 Jun 2026 00:00:00 +0000 +Subject: [PATCH] abseil: raw_hash_set: include <immintrin.h> instead of <bmi2intrin.h> + +Clang refuses a direct include of <bmi2intrin.h> and errors out with: + + error: "Never use <bmi2intrin.h> directly; include <immintrin.h> instead." + +This is hit whenever __BMI2__ is defined, e.g. when building with +-march=x86-64-v3. Mirror upstream and include the umbrella <immintrin.h> +header guarded by an x86 check, which transitively provides the BMI2 +intrinsics (_bzhi_u32/_bzhi_u64) used in mask(). + +Upstream-Status: Backport [https://github.com/abseil/abseil-cpp/commit/d851fdd768b27c02b3fb786fd0987faddd279ece] + +Signed-off-by: Khem Raj <[email protected]> +--- + third_party/abseil-cpp/absl/container/internal/raw_hash_set.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +--- a/third_party/abseil-cpp/absl/container/internal/raw_hash_set.h ++++ b/third_party/abseil-cpp/absl/container/internal/raw_hash_set.h +@@ -225,9 +225,9 @@ + #include <ranges> // NOLINT(build/c++20) + #endif + +-#ifdef __BMI2__ +-#include <bmi2intrin.h> +-#endif // __BMI2__ ++#if defined(__i386__) || defined(__x86_64__) ++#include <immintrin.h> ++#endif + + namespace absl { + ABSL_NAMESPACE_BEGIN
meta-python/recipes-devtools/python/python3-grpcio/0001-python-enable-unbundled-cross-compilation.patch +2 -4
@@ -12,14 +12,12 @@ Signed-off-by: Peter Marko <[email protected]> setup.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) -diff --git a/setup.py b/setup.py -index 39ca17e..bffa9fb 100644 --- a/setup.py +++ b/setup.py -@@ -341,25 +341,25 @@ if BUILD_WITH_SYSTEM_OPENSSL: +@@ -345,25 +345,25 @@ + CORE_C_FILES = filter( lambda x: "third_party/boringssl" not in x, CORE_C_FILES ) - CORE_C_FILES = filter(lambda x: "src/boringssl" not in x, CORE_C_FILES) - SSL_INCLUDE = (os.path.join("/usr", "include", "openssl"),) + SSL_INCLUDE = ()
meta-python/recipes-devtools/python/python3-grpcio_1.85.1.bb renamed from meta-python/recipes-devtools/python/python3-grpcio_1.84.1.bb +2 -2
@@ -11,10 +11,10 @@ LIC_FILES_CHKSUM = " \ DEPENDS += "c-ares openssl python3-protobuf re2 zlib" SRC_URI += "file://0001-python-enable-unbundled-cross-compilation.patch \ - file://0001-Fix-OpenSSL-4.0-compatibility.patch \ file://abseil-ppc-fixes.patch \ + file://0001-abseil-raw_hash_set-include-immintrin.h-instead-of-b.patch \ " -SRC_URI[sha256sum] = "446e7876b9b991fa124c1d414899fa7cf95f89a3e71237ea0161863dc0b2c09f" +SRC_URI[sha256sum] = "5f530287d5de5f7f66089ead81de44f6787162944dab3922efa65dfdff108a1d" RDEPENDS:${PN} = "python3-protobuf python3-typing-extensions"
PATCH 40/105 python3-grpcio-tools: upgrade 1.84.1 -> 1.85.1
In reply to Khem RajBackport the abseil fix for clang rejecting a direct <bmi2intrin.h> include (needed for x86-64-v3) to the bundled abseil.
Changes:
- Follows grpcio 1.85: Cython unpinned for source builds, OpenSSL 4 support and OpenSSL 1.0.2 support removed in the bundled gRPC core.
- Security: gRPC core 1.85.1 fixes denial of service in Health Watch RPC and HPACK host/:authority handling (no CVE ID published).
AI-Generated: Uses Claude Code
---
...set-include-immintrin.h-instead-of-b.patch | 36 +++++++++++++++++++
...84.1.bb => python3-grpcio-tools_1.85.1.bb} | 3 +-
2 files changed, 38 insertions(+), 1 deletion(-)
create mode 100644 meta-python/recipes-devtools/python/python3-grpcio-tools/0001-abseil-raw_hash_set-include-immintrin.h-instead-of-b.patch
rename meta-python/recipes-devtools/python/{python3-grpcio-tools_1.84.1.bb => python3-grpcio-tools_1.85.1.bb} (77%)meta-python/recipes-devtools/python/python3-grpcio-tools/0001-abseil-raw_hash_set-include-immintrin.h-instead-of-b.patch new file +36 -0
@@ -0,0 +1,36 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Tue, 24 Jun 2026 00:00:00 +0000 +Subject: [PATCH] abseil: raw_hash_set: include <immintrin.h> instead of <bmi2intrin.h> + +Clang refuses a direct include of <bmi2intrin.h> and errors out with: + + error: "Never use <bmi2intrin.h> directly; include <immintrin.h> instead." + +This is hit whenever __BMI2__ is defined, e.g. when building with +-march=x86-64-v3. Mirror upstream and include the umbrella <immintrin.h> +header guarded by an x86 check, which transitively provides the BMI2 +intrinsics (_bzhi_u32/_bzhi_u64) used in mask(). + +Upstream-Status: Backport [https://github.com/abseil/abseil-cpp/commit/d851fdd768b27c02b3fb786fd0987faddd279ece] + +Signed-off-by: Khem Raj <[email protected]> +--- + third_party/abseil-cpp/absl/container/internal/raw_hash_set.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +--- a/third_party/abseil-cpp/absl/container/internal/raw_hash_set.h ++++ b/third_party/abseil-cpp/absl/container/internal/raw_hash_set.h +@@ -225,9 +225,9 @@ + #include <ranges> // NOLINT(build/c++20) + #endif + +-#ifdef __BMI2__ +-#include <bmi2intrin.h> +-#endif // __BMI2__ ++#if defined(__i386__) || defined(__x86_64__) ++#include <immintrin.h> ++#endif + + namespace absl { + ABSL_NAMESPACE_BEGIN
meta-python/recipes-devtools/python/python3-grpcio-tools_1.85.1.bb renamed from meta-python/recipes-devtools/python/python3-grpcio-tools_1.84.1.bb +2 -1
@@ -9,7 +9,8 @@ inherit pypi python_setuptools_build_meta cython DEPENDS += "python3-grpcio python3-wheel-native" -SRC_URI[sha256sum] = "ca8a326df3441127d6709d992774844bb496db30b08f76ed5d1a912089e03f2c" +SRC_URI += "file://0001-abseil-raw_hash_set-include-immintrin.h-instead-of-b.patch" +SRC_URI[sha256sum] = "d6f1ee213a07de9462c90ee5debe4a78dff20306a0fb394a65d48b2f94fe31a1" RDEPENDS:${PN} = "python3-grpcio"
PATCH 41/105 python3-gunicorn: upgrade 27.0.0 -> 27.0.1
In reply to Khem RajAI-Generated: Uses Claude Code
---
.../{python3-gunicorn_27.0.0.bb => python3-gunicorn_27.0.1.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-gunicorn_27.0.0.bb => python3-gunicorn_27.0.1.bb} (93%)meta-python/recipes-devtools/python/python3-gunicorn_27.0.1.bb renamed from meta-python/recipes-devtools/python/python3-gunicorn_27.0.0.bb +1 -1
@@ -3,7 +3,7 @@ SUMMARY = "WSGI HTTP Server for UNIX" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=5dc9171ccd8fcbd7827c850148b3ca98" -SRC_URI[sha256sum] = "88d52e7c60b3af07bc8db431fbb450a94780f2cbe7c420c7cf1891392661c591" +SRC_URI[sha256sum] = "b1514965361c8b7e8107a80aa2a92636878df1ccfac6dd204a676426e04d9e3e" inherit pypi python_setuptools_build_meta ptest
PATCH 42/105 python3-iso3166: upgrade 2.1.1 -> 3.0.0
In reply to Khem RajUpstream builds with uv_build now; inherit python_uv_build and relax its narrow uv_build version bound.
Changes:
- Build backend changed to uv_build, with project metadata moved into pyproject.toml (build-time dependency change; no setuptools).
- Country data: "Nauru" renamed to "Naoero" (effective 2026-08-26).
- Test matrix updated for current Python 3 versions; no code API changes listed.
AI-Generated: Uses Claude Code
---
...oml-Relax-the-uv_build-version-bound.patch | 25 +++++++++++++++++++
...3166_2.1.1.bb => python3-iso3166_3.0.0.bb} | 5 ++--
2 files changed, 28 insertions(+), 2 deletions(-)
create mode 100644 meta-python/recipes-devtools/python/python3-iso3166/0001-pyproject.toml-Relax-the-uv_build-version-bound.patch
rename meta-python/recipes-devtools/python/{python3-iso3166_2.1.1.bb => python3-iso3166_3.0.0.bb} (58%)meta-python/recipes-devtools/python/python3-iso3166/0001-pyproject.toml-Relax-the-uv_build-version-bound.patch new file +25 -0
@@ -0,0 +1,25 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Sun, 15 Nov 2026 23:07:01 -0800 +Subject: [PATCH] pyproject.toml: Relax the uv_build version bound + +uv_build is pinned to a narrow range upstream; build with the uv_build +version that OE ships. + +Upstream-Status: Inappropriate [OE-specific] +Signed-off-by: Khem Raj <[email protected]> +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -45,7 +45,7 @@ + ] + + [build-system] +-requires = ["uv_build>=0.12.5,<0.13.0"] ++requires = ["uv_build>=0.12.5"] + build-backend = "uv_build" + + [tool.uv]
meta-python/recipes-devtools/python/python3-iso3166_3.0.0.bb renamed from meta-python/recipes-devtools/python/python3-iso3166_2.1.1.bb +3 -2
@@ -3,9 +3,10 @@ HOMEPAGE = "https://pypi.org/project/iso3166/" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=5e2f4edc7e7408a82e4a1d05f229b695" -SRC_URI[sha256sum] = "fcd551b8dda66b44e9f9e6d6bbbee3a1145a22447c0a556e5d0fb1ad1e491719" +SRC_URI += "file://0001-pyproject.toml-Relax-the-uv_build-version-bound.patch" +SRC_URI[sha256sum] = "e567b55d169211d4d499c73307350da15df5d38248e60bae559609570c42ef55" -inherit pypi python_setuptools_build_meta ptest-python-pytest +inherit pypi python_uv_build ptest-python-pytest DEPENDS += "python3-wheel-native"
PATCH 43/105 python3-isort: upgrade 8.0.1 -> 9.0.2
In reply to Khem RajThe build requires hatch-mypyc although the mypyc hook is disabled by default; drop it from the build requirements. isort now imports mypy_extensions at runtime; add python3-mypy-extensions to RDEPENDS.
Changes:
- BREAKING (9.0.0): remove logic for deprecated options; add Python 3.15 support including sorting of lazy imports.
- Build: now compiled with mypyc; build requires gain hatch-mypyc (hatchling backend unchanged). 9.0.1 restores "python -m isort" by excluding __main__ from compilation.
- Add separate_packages option and --forced-separate CLI flag; treat private stdlib modules as stdlib.
- Many fixes for comment placement, wrap modes (NOQA, multi_line_output 3/5/10), float_to_top, CRLF handling, reexport sorting and config discovery stopping at Git worktree boundaries.
AI-Generated: Uses Claude Code
---
.../{python3-isort_8.0.1.bb => python3-isort_9.0.2.bb} | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-isort_8.0.1.bb => python3-isort_9.0.2.bb} (65%)meta-python/recipes-devtools/python/python3-isort_9.0.2.bb renamed from meta-python/recipes-devtools/python/python3-isort_8.0.1.bb +7 -1
@@ -4,17 +4,23 @@ LICENSE = "MIT" SECTION = "devel/python" LIC_FILES_CHKSUM = "file://LICENSE;md5=197c46995787b46a2dbf0d519c1754cf" -SRC_URI[sha256sum] = "171ac4ff559cdc060bcfff550bc8404a486fee0caab245679c2abe7cb253c78d" +SRC_URI[sha256sum] = "d2298980ce44350f11d9d24c8150eaef1883431ec203dddbb4e9b5c3ceb54c70" inherit pypi python_hatchling DEPENDS += "python3-hatch-vcs-native python3-hatchling-native" +# The mypyc build hook is disabled by default; don't require its plugin +do_configure:prepend() { + sed -i -e '/^requires = /s/, "hatch-mypyc"//' ${S}/pyproject.toml +} + RDEPENDS:${PN} += " \ python3-compression \ python3-datetime \ python3-difflib \ python3-email \ + python3-mypy-extensions \ python3-numbers \ python3-pprint \ python3-profile \
PATCH 44/105 python3-janus: upgrade 2.0.0 -> 2.1.1
In reply to Khem RajUpstream builds with uv_build now; inherit python_uv_build and relax its narrow uv_build version bound.
Changes:
- Drop support for Python 3.9 and 3.10; add Python 3.11-3.15 support (2.1.0).
- Build backend changed from setuptools to uv_build.
- Bound the PriorityQueue type variable to items supporting rich comparison (2.1.1).
AI-Generated: Uses Claude Code
---
...oml-Relax-the-uv_build-version-bound.patch | 23 +++++++++++++++++++
...-janus_2.0.0.bb => python3-janus_2.1.1.bb} | 5 ++--
2 files changed, 26 insertions(+), 2 deletions(-)
create mode 100644 meta-python/recipes-devtools/python/python3-janus/0001-pyproject.toml-Relax-the-uv_build-version-bound.patch
rename meta-python/recipes-devtools/python/{python3-janus_2.0.0.bb => python3-janus_2.1.1.bb} (64%)meta-python/recipes-devtools/python/python3-janus/0001-pyproject.toml-Relax-the-uv_build-version-bound.patch new file +23 -0
@@ -0,0 +1,23 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Sun, 15 Nov 2026 23:07:01 -0800 +Subject: [PATCH] pyproject.toml: Relax the uv_build version bound + +uv_build is pinned to a narrow range upstream; build with the uv_build +version that OE ships. + +Upstream-Status: Inappropriate [OE-specific] +Signed-off-by: Khem Raj <[email protected]> +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["uv_build>=0.13.8,<0.14"] ++requires = ["uv_build>=0.13"] + build-backend = "uv_build" + + [project]
meta-python/recipes-devtools/python/python3-janus_2.1.1.bb renamed from meta-python/recipes-devtools/python/python3-janus_2.0.0.bb +3 -2
@@ -3,9 +3,10 @@ SECTION = "devel/python" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=23878c357ebb4c8ce1109be365043349" -SRC_URI[sha256sum] = "0970f38e0e725400496c834a368a67ee551dc3b5ad0a257e132f5b46f2e77770" +SRC_URI += "file://0001-pyproject.toml-Relax-the-uv_build-version-bound.patch" +SRC_URI[sha256sum] = "da6197870a8c634fed91698b5fd9725c33b83cb693baabf264320d7773e53659" -inherit pypi python_setuptools_build_meta +inherit pypi python_uv_build DEPENDS += "python3-wheel-native"
PATCH 45/105 python3-javaobj-py3: upgrade 0.4.4 -> 0.6.1
In reply to Khem RajLicense-Update: Line endings only (CRLF to LF).
Changes:
- Add a new "v3" parser/writer implementation with full read and write support (requires Python 3.12+); v1/v2 remain for Python 2.7 and 3.
- Fix reading of LinkedHashMap in v1/v3, arrays referenced more than once in v2, modified UTF-8 handling, and JavaString str/unicode comparison; clearer error when a transformer class is passed.
- Build now configured via pyproject.toml with setuptools>=77; type hints fixed and package declared typed.
AI-Generated: Uses Claude Code
---
...on3-javaobj-py3_0.4.4.bb => python3-javaobj-py3_0.6.1.bb} | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
rename meta-python/recipes-devtools/python/{python3-javaobj-py3_0.4.4.bb => python3-javaobj-py3_0.6.1.bb} (74%)meta-python/recipes-devtools/python/python3-javaobj-py3_0.6.1.bb renamed from meta-python/recipes-devtools/python/python3-javaobj-py3_0.4.4.bb +2 -3
@@ -5,13 +5,12 @@ DESCRIPTION = "python-javaobj is a python library that provides functions\ representation is a standard data interchange format in Java world." HOMEPAGE = "https://github.com/tcalmant/python-javaobj" LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=d273d63619c9aeaf15cdaf76422c4f87" +LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" -SRC_URI[sha256sum] = "e4e3257ef2cf81a3339787a4d5cf924e54c91f095a723f6d2584dae61d4396ed" +SRC_URI[sha256sum] = "088ff086c6aa2912f342754c43b0ca3a504fb869bb5e6f13395131e87744ef3c" inherit pypi setuptools3 -PYPI_PACKAGE_SDIST = "javaobj-py3" BBCLASSEXTEND = "native nativesdk"
PATCH 46/105 python3-jdatetime: upgrade 6.1.0 -> 6.1.1
In reply to Khem RajThe new fold tests look up America/New_York and Asia/Tehran through zoneinfo; add python3-tzdata to the ptest RDEPENDS.
Changes:
- Fixed: preserve datetime fold in datetime conversions.
AI-Generated: Uses Claude Code
---
.../{python3-jdatetime_6.1.0.bb => python3-jdatetime_6.1.1.bb} | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-jdatetime_6.1.0.bb => python3-jdatetime_6.1.1.bb} (92%)meta-python/recipes-devtools/python/python3-jdatetime_6.1.1.bb renamed from meta-python/recipes-devtools/python/python3-jdatetime_6.1.0.bb +2 -1
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c80be45b33471b4a23cf53d06a8172be" # The PyPI package omits some files for testing like tests/__init__.py # so use the GitHub source instead. -SRCREV = "480b637d024555e1523b4652bd2b6c5b5fac33d4" +SRCREV = "417d87bfc229987ce86b61992ae6d211a35c8f70" SRC_URI = " \ git://github.com/slashmili/jdatetime;branch=main;protocol=https;tag=v${PV} \ file://run-ptest \
@@ -25,6 +25,7 @@ RDEPENDS:${PN}-ptest += " \ python3-core \ python3-pickle \ python3-unittest \ + python3-tzdata \ python3-zoneinfo \ python3-unittest-automake-output \ "
PATCH 47/105 python3-jsonrpcclient: upgrade 4.0.3 -> 4.2.1
In reply to Khem Raj4.2.1 is tagged on the release/4.x branch.
Changes:
- 4.1.0 behavior changes: parse()/parse_json() raise InvalidResponse on an empty batch; a response with both result and a non-null error now returns Error (was Ok); a malformed error member raises InvalidResponse; bytes input to parse() raises; notification() sends tuple params as a list. InvalidResponse messages are specific.
- 4.2.0/4.2.1: FutureWarnings announcing 5.0 changes (5.0 will need Python 3.11+, raise TypeError on bad method/params types).
- 4.0.4: PyPI project links fixed (old domain was hijacked).
- Build backend is flit_core (>=3.12,<5); no runtime dependencies.
AI-Generated: Uses Claude Code
---
...-jsonrpcclient_4.0.3.bb => python3-jsonrpcclient_4.2.1.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta-python/recipes-devtools/python/{python3-jsonrpcclient_4.0.3.bb => python3-jsonrpcclient_4.2.1.bb} (84%)meta-python/recipes-devtools/python/python3-jsonrpcclient_4.2.1.bb renamed from meta-python/recipes-devtools/python/python3-jsonrpcclient_4.0.3.bb +2 -2
@@ -3,8 +3,8 @@ HOMEPAGE = "https://github.com/explodinglabs/jsonrpcclient" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=10f3d7679914df805c98fb351172e677" -SRCREV = "e5dd11736925a9a8e463fc9420eab95235f181e3" -SRC_URI = "git://github.com/explodinglabs/jsonrpcclient.git;branch=main;protocol=https" +SRCREV = "0de0775557275f93b660f05d9946f10f3ca66726" +SRC_URI = "git://github.com/explodinglabs/jsonrpcclient.git;branch=release/4.x;protocol=https" inherit python_setuptools_build_meta
PATCH 48/105 python3-kivy: upgrade 2.3.1 -> 2.3.2
In reply to Khem RajDrop the Cython long patch, it is part of this release.
Changes:
- Maintenance release for Python 3.14: CI/wheels, CodeInput finally return fix, asyncio examples, kivy_deps.angle ~=0.5.0 on 3.14+, ffpyplayer restored, Pillow/media dependencies adjusted.
- Build: removed Python 2 "long" usage so it builds with Cython 3.1.x; build-time packaging requirement relaxed to packaging>=24.0,<26.
- KV parser f-strings resolve nested attribute names; SDL2 window creation falls back when GetDpiForWindow returns 0 (Windows).
AI-Generated: Uses Claude Code
---
...n-2-long-from-Cython-files-fixes-bui.patch | 63 -------------------
...n3-kivy_2.3.1.bb => python3-kivy_2.3.2.bb} | 3 +-
2 files changed, 1 insertion(+), 65 deletions(-)
delete mode 100644 meta-python/recipes-devtools/python/python3-kivy/0001-Remove-old-Python-2-long-from-Cython-files-fixes-bui.patch
rename meta-python/recipes-devtools/python/{python3-kivy_2.3.1.bb => python3-kivy_2.3.2.bb} (95%)meta-python/recipes-devtools/python/python3-kivy/0001-Remove-old-Python-2-long-from-Cython-files-fixes-bui.patch deleted +0 -63
@@ -1,63 +0,0 @@ -From 288e3d5ecff1bc5e7de29d9daddb83d697280004 Mon Sep 17 00:00:00 2001 -From: Mirko Galimberti <[email protected]> -Date: Sun, 18 May 2025 09:38:14 +0200 -Subject: [PATCH] Remove old Python 2 long from Cython files, fixes build with - Cython `3.1.x` (#9056) - -Upstream-Status: Backport [https://github.com/kivy/kivy/commit/5a1b27d7d3bdee6cedb55440bfae9c4e66fb3c68] -Signed-off-by: Khem Raj <[email protected]> ---- - kivy/graphics/context_instructions.pyx | 2 +- - kivy/graphics/opengl.pyx | 4 ++-- - kivy/weakproxy.pyx | 3 --- - 3 files changed, 3 insertions(+), 6 deletions(-) - -diff --git a/kivy/graphics/context_instructions.pyx b/kivy/graphics/context_instructions.pyx -index 0d4b8f548..1c23c0e1c 100644 ---- a/kivy/graphics/context_instructions.pyx -+++ b/kivy/graphics/context_instructions.pyx -@@ -86,7 +86,7 @@ cdef tuple rgb_to_hsv(float r, float g, float b): - - cdef tuple hsv_to_rgb(float h, float s, float v): - if s == 0.0: return v, v, v -- cdef long i = long(h * 6.0) -+ cdef long i = <long>(h * 6.0) - cdef float f = (h * <float>6.0) - i - cdef float p = v * (<float>1.0 - s) - cdef float q = v * (<float>1.0 - s * f) -diff --git a/kivy/graphics/opengl.pyx b/kivy/graphics/opengl.pyx -index bcca70842..f535c62a6 100644 ---- a/kivy/graphics/opengl.pyx -+++ b/kivy/graphics/opengl.pyx -@@ -689,7 +689,7 @@ def glDrawElements(GLenum mode, GLsizei count, GLenum type, indices): - cdef void *ptr = NULL - if isinstance(indices, bytes): - ptr = <void *>(<char *>(<bytes>indices)) -- elif isinstance(indices, (long, int)): -+ elif isinstance(indices, int): - ptr = <void *>(<unsigned int>indices) - else: - raise TypeError("Argument 'indices' has incorrect type (expected bytes or int).") -@@ -1539,7 +1539,7 @@ def glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean norma - cdef void *ptr = NULL - if isinstance(data, bytes): - ptr = <void *>(<char *>(<bytes>data)) -- elif isinstance(data, (long, int)): -+ elif isinstance(data, int): - ptr = <void *>(<unsigned int>data) - else: - raise TypeError("Argument 'data' has incorrect type (expected bytes or int).") -diff --git a/kivy/weakproxy.pyx b/kivy/weakproxy.pyx -index cac4fe66b..e8e1c0b77 100644 ---- a/kivy/weakproxy.pyx -+++ b/kivy/weakproxy.pyx -@@ -253,9 +253,6 @@ cdef class WeakProxy(object): - def __int__(self): - return int(self.__ref__()) - -- def __long__(self): -- return long(self.__ref__()) -- - def __float__(self): - return float(self.__ref__()) -
meta-python/recipes-devtools/python/python3-kivy_2.3.2.bb renamed from meta-python/recipes-devtools/python/python3-kivy_2.3.1.bb +1 -2
@@ -12,10 +12,9 @@ inherit setuptools3 pkgconfig features_check cython # Also, if using SDL2 as backend, SDL2 needs to be configured with gles SRC_URI = "git://github.com/kivy/kivy.git;protocol=https;branch=stable \ file://0001-add-support-for-glesv2.patch \ - file://0001-Remove-old-Python-2-long-from-Cython-files-fixes-bui.patch \ " -SRCREV = "20d74dcd30f143abbd1aa94c76bafc5bd934d5bd" +SRCREV = "ec09ee880c666e70de42501f36dbc43e349e3712" PACKAGES += "${PN}-examples"
PATCH 49/105 python3-luma-core: upgrade 2.4.2 -> 2.6.0
In reply to Khem RajLicense-Update: Copyright year bump.
Changes:
- BREAKING (2.5.1): GPIO/SPI/FTDI dependencies are now optional extras (pip install luma.core[gpio]); RPi.GPIO replaced by rpi-lgpio.
- Drop Python 3.7 (2.5.1) and 3.8 (2.6.0); remove Python 2 compat code.
- Add AiP31068 and PCA9633 support; raise UnsupportedPlatform on any RPi.GPIO RuntimeError; skip redundant viewport refreshes.
- cmdline.create_parser() accepts a pre-created parser.
AI-Generated: Uses Claude Code
---
...ython3-luma-core_2.4.2.bb => python3-luma-core_2.6.0.bb} | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
rename meta-python/recipes-devtools/python/{python3-luma-core_2.4.2.bb => python3-luma-core_2.6.0.bb} (66%)meta-python/recipes-devtools/python/python3-luma-core_2.6.0.bb renamed from meta-python/recipes-devtools/python/python3-luma-core_2.4.2.bb +3 -3
@@ -2,16 +2,16 @@ SUMMARY = "A component library to support SBC display drivers" DESCRIPTION = "A component library to support SBC display drivers" HOMEPAGE = "https://github.com/rm-hull/luma.core" LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=2083293a38df91b8d470d3fe30069262" +LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=a22ee4610fe68b60c67e2ea3cc8e2613" inherit pypi python_setuptools_build_meta DEPENDS += "python3-wheel-native" -SRC_URI[sha256sum] = "963c264164d4374f549d57db09599e0ca458cea1bd05e16939897619be4e6dbd" +SRC_URI[sha256sum] = "3ddb673f9699a148d3ccfee2985451b01ddd4b4ea66b65a9664ce36806cf411c" PYPI_PACKAGE = "luma.core" -PYPI_PACKAGE_SDIST = "luma.core" +PYPI_PACKAGE_SDIST = "luma_core" RDEPENDS:${PN} += " \ python3-pillow \
PATCH 50/105 python3-m2crypto: upgrade 0.49.0 -> 0.51.0
In reply to Khem RajRefresh the setup.py patch.
Changes:
- Security (0.51.0): SSL.Checker no longer splits subjectAltName on commas; a URI/email/otherName SAN containing ",DNS:<host>" was accepted as a DNS identity (CVE-2026-109087, as listed upstream). Hostname checks now use X509_check_host()/X509_check_ip_asc().
- Fix regex injection in TLS hostname verification (no CVE) and out-of-bounds reads in BIGNUM conversions.
- BREAKING (0.50.0): TLS 1.0 and 1.1 disabled by default; RC4 emits a DeprecationWarning; legacy ENGINE bindings disabled with OpenSSL 3; OpenSSL providers isolated in private contexts.
- Add AES-GCM (AEAD) and AuthorityKeyIdentifier support; OpenSSL 4.0 and SWIG 4.5 compatibility; many memory-leak/ownership fixes.
AI-Generated: Uses Claude Code
---
.../0001-setup.py-Make-the-cmd-available.patch | 9 ++-------
...on3-m2crypto_0.49.0.bb => python3-m2crypto_0.51.0.bb} | 2 +-
2 files changed, 3 insertions(+), 8 deletions(-)
rename meta-python/recipes-devtools/python/{python3-m2crypto_0.49.0.bb => python3-m2crypto_0.51.0.bb} (95%)meta-python/recipes-devtools/python/python3-m2crypto/0001-setup.py-Make-the-cmd-available.patch +2 -7
@@ -22,14 +22,12 @@ Signed-off-by: Mingli Yu <[email protected]> setup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -diff --git a/setup.py b/setup.py -index 792d7365b6ed..5b8a5d791793 100644 --- a/setup.py +++ b/setup.py -@@ -208,8 +208,10 @@ class _M2CryptoBuildExt(build_ext.build_ext): +@@ -234,8 +234,10 @@ if sys.platform != "win32": # generate src/SWIG/x509_v_flag.h to overcome weaknesses of swig - # https://todo.sr.ht/~mcepl/m2crypto/298 + # https://codefloe.com/mcepl/m2crypto/issues/298 - with open("src/SWIG/x509_v_flag.h", "w", encoding="utf-8") as x509_v_h: - cmd = [shutil.which(os.environ.get("CC", "gcc"))] + with open(
@@ -39,6 +37,3 @@ index 792d7365b6ed..5b8a5d791793 100644 cflags = os.environ.get("CFLAGS") if cflags is not None: cmd += cflags.split() --- -2.34.1 -
meta-python/recipes-devtools/python/python3-m2crypto_0.51.0.bb renamed from meta-python/recipes-devtools/python/python3-m2crypto_0.49.0.bb +1 -1
@@ -4,7 +4,7 @@ HOMEPAGE = "https://gitlab.com/m2crypto/m2crypto" LICENSE = "BSD-2-Clause" LIC_FILES_CHKSUM = "file://LICENSES/BSD-2-Clause.txt;md5=8099b0e569f862ece05740aef06c82a2" -SRC_URI[sha256sum] = "604b9cdd7c1bb9e73e54a189643d56d08bf841691775122962430ee2ca3506fe" +SRC_URI[sha256sum] = "5428f6601086a8f5e41aa70248b3b983443e7badf263551c5104ba2ec0c9d955" SRC_URI += "file://0001-setup.py-Make-the-cmd-available.patch" SRC_URI += "file://0002-_m2crypto.i-add-py2-py3-C-API-compat-macros.patch"
PATCH 51/105 python3-matplotlib: upgrade 3.10.8 -> 3.11.2
In reply to Khem RajMatplotlib now bundles libraqm via meson subprojects; build against the libraqm recipe with -Dsystem-libraqm=true and drop the patch that disabled the subproject downloads (system freetype/qhull/libraqm need no wraps).
Changes:
- Text and font processing overhauled using libraqm/HarfBuzz (complex text layout). libraqm is bundled and fetched as a meson subproject unless -Dsystem-libraqm=true; offline builds need it supplied.
- BREAKING: Python >= 3.11 (was 3.10), NumPy >= 1.25 (was 1.23), Pillow >= 9 (was 8), fonttools >= 4.28.2; build requires meson-python >= 0.13.2 (!= 0.17.*) and setuptools_scm < 10.
- Improvements to 3D Axes, performance, new accessible color sequences and flexible figure management; see upstream API change notes.
- 3.11.1/3.11.2 fix tight layout, 3D axis, PDF/PS font embedding and hexbin clipping, GIF skew, Qt/WebAgg HiDPI and Cairo glyph bugs.
AI-Generated: Uses Claude Code
---
...external-dependency-tarballs-via-mes.patch | 47 -------------------
...3.10.8.bb => python3-matplotlib_3.11.2.bb} | 6 +--
2 files changed, 3 insertions(+), 50 deletions(-)
delete mode 100644 meta-python/recipes-devtools/python/python3-matplotlib/0001-Do-not-download-external-dependency-tarballs-via-mes.patch
rename meta-python/recipes-devtools/python/{python3-matplotlib_3.10.8.bb => python3-matplotlib_3.11.2.bb} (84%)meta-python/recipes-devtools/python/python3-matplotlib/0001-Do-not-download-external-dependency-tarballs-via-mes.patch deleted +0 -47
@@ -1,47 +0,0 @@ -From a6b0bc129de493f57bf79005c48a8d4ca0df68c2 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Wed, 9 Apr 2025 17:34:55 -0700 -Subject: [PATCH] Do not download external dependency tarballs via meson - -They are fetched by bitbake fetcher already - -Upstream-Status: Inappropriate [ OE-Specific ] - -Signed-off-by: Khem Raj <[email protected]> ---- - subprojects/freetype-2.6.1.wrap | 7 +------ - subprojects/qhull.wrap | 9 ++------- - 2 files changed, 3 insertions(+), 13 deletions(-) - -diff --git a/subprojects/freetype-2.6.1.wrap b/subprojects/freetype-2.6.1.wrap -index 763362b..74ecb13 100644 ---- a/subprojects/freetype-2.6.1.wrap -+++ b/subprojects/freetype-2.6.1.wrap -@@ -1,10 +1,5 @@ - [wrap-file] --source_url = https://download.savannah.gnu.org/releases/freetype/freetype-old/freetype-2.6.1.tar.gz --source_fallback_url = https://downloads.sourceforge.net/project/freetype/freetype2/2.6.1/freetype-2.6.1.tar.gz --source_filename = freetype-2.6.1.tar.gz --source_hash = 0a3c7dfbda6da1e8fce29232e8e96d987ababbbf71ebc8c75659e4132c367014 -- --patch_directory = freetype-2.6.1-meson -+directory = freetype-2.6.1 - - [provide] - freetype-2.6.1 = freetype_dep -diff --git a/subprojects/qhull.wrap b/subprojects/qhull.wrap -index c52b07d..30b6904 100644 ---- a/subprojects/qhull.wrap -+++ b/subprojects/qhull.wrap -@@ -1,9 +1,4 @@ - [wrap-file] --# Also bump the cache key in `.circleci/config.yml`. --# Also update the docs in `docs/devel/dependencies.rst`. --directory = qhull-8.0.2 --source_url = https://github.com/qhull/qhull/archive/v8.0.2/qhull-8.0.2.tar.gz --source_filename = qhull-8.0.2.tgz --source_hash = 8774e9a12c70b0180b95d6b0b563c5aa4bea8d5960c15e18ae3b6d2521d64f8b -+directory = qhull-2020.2 - --patch_directory = qhull-8.0.2 -+patch_directory = qhull-2020.2
meta-python/recipes-devtools/python/python3-matplotlib_3.11.2.bb renamed from meta-python/recipes-devtools/python/python3-matplotlib_3.10.8.bb +3 -3
@@ -14,19 +14,19 @@ DEPENDS = "\ python3-setuptools-scm-native \ freetype \ libpng \ + libraqm \ python3-pybind11 \ qhull \ " SRC_URI += "file://run-ptest \ - file://0001-Do-not-download-external-dependency-tarballs-via-mes.patch \ file://0001-Change-types-for-width-height-to-match-definitions-i.patch \ " -SRC_URI[sha256sum] = "2299372c19d56bcd35cf05a2738308758d32b9eaed2371898d8f5bd33f084aa3" +SRC_URI[sha256sum] = "cec596316640f2b394b8f0daa0ea61a8eae82d017b620b9f202befb972a59ea4" inherit pypi pkgconfig python3targetconfig meson ptest-python-pytest -EXTRA_OEMESON += "-Dsystem-freetype=true -Dsystem-qhull=true" +EXTRA_OEMESON += "-Dsystem-freetype=true -Dsystem-libraqm=true -Dsystem-qhull=true" # LTO with clang needs lld LDFLAGS:append:toolchain-clang = " -fuse-ld=lld"
PATCH 52/105 python3-opentelemetry-semantic-conventions: upgrade 0.66b1 -> 0.66b2
In reply to Khem RajChanges:
- Release 0.66b2 of the opentelemetry-python repo; no change specific to the semantic-conventions package is listed upstream.
- Repo-wide: metric cardinality limits (default 2000) in the SDK; traceparent header extraction limited to 512 characters.
AI-Generated: Uses Claude Code
---
....bb => python3-opentelemetry-semantic-conventions_0.66b2.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-opentelemetry-semantic-conventions_0.66b1.bb => python3-opentelemetry-semantic-conventions_0.66b2.bb} (81%)meta-python/recipes-devtools/python/python3-opentelemetry-semantic-conventions_0.66b2.bb renamed from meta-python/recipes-devtools/python/python3-opentelemetry-semantic-conventions_0.66b1.bb +1 -1
@@ -5,7 +5,7 @@ observability framework for cloud native software." LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" -SRC_URI[sha256sum] = "497ca63bf383723411e8eaf60c8779e9877633c936bb641080adab59d0eb6ec8" +SRC_URI[sha256sum] = "7da5f1a5dc4383eb66711d4d3d3e71824d9403ac1559fea021cc103c1a4c4976" inherit pypi python_hatchling
PATCH 53/105 python3-pandas: upgrade 3.0.6 -> 3.1.1
In reply to Khem RajRefresh the numpy include dir patch; meson.options exists upstream now.
Changes:
- BREAKING: NumPy >= 2.0.2 and python-dateutil >= 2.9.0 now required; C++20 is required to build from source; optional dependency minimums raised (matplotlib 3.10.5, lxml 6.0.0, Jinja2 3.1.6, numba 0.61.2...).
- Add DataFrame.select (with pandas.col expressions); new read_csv options; Index.values/Index.array return read-only arrays; Timestamp and to_datetime return datetime.timezone.utc; stricter Timedelta string parsing; infer_freq QS anchor reporting changed.
- Deprecate xlrd/pyxlsb engines in read_excel (use calamine), DataFrame.join lsuffix/rsuffix, mode.chained_assignment, and integers passed to Period.
- Building no longer needs MSVC on Windows; CRLF checkout fixes.
- 3.1.1 is a regression-fix release.
AI-Generated: Uses Claude Code
---
...ion-to-specify-numpy-header-location.patch | 20 ++++++++-----------
...andas_3.0.6.bb => python3-pandas_3.1.1.bb} | 2 +-
2 files changed, 9 insertions(+), 13 deletions(-)
rename meta-python/recipes-devtools/python/{python3-pandas_3.0.6.bb => python3-pandas_3.1.1.bb} (94%)meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch +8 -12
@@ -21,23 +21,22 @@ Upstream-Status: Submitted [https://github.com/pandas-dev/pandas/pull/61095] Signed-off-by: Gyorgy Sarvari <[email protected]> Signed-off-by: Leon Anavi <[email protected]> --- - meson.options | 1 + - pandas/meson.build | 12 +++++++++--- + meson.options | 1 + + pandas/meson.build | 12 +++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) - create mode 100644 meson.options diff --git a/meson.options b/meson.options -new file mode 100644 -index 0000000..3d3a18d ---- /dev/null +--- a/meson.options +++ b/meson.options -@@ -0,0 +1 @@ +@@ -4,3 +4,4 @@ + value: false, + description: 'Enable UBSan checks beyond the default `undefined` set on the hand-written C/C++ sources. Cython-generated code is excluded because its codegen would drown the results in noise. Only meaningful together with -Db_sanitize=undefined.', + ) +option('numpy_inc_dir', type : 'string', description : 'The absolute path to the numpy headers') diff --git a/pandas/meson.build b/pandas/meson.build -index 840ac25..2c3423e 100644 --- a/pandas/meson.build +++ b/pandas/meson.build -@@ -4,17 +4,23 @@ incdir_numpy = run_command( +@@ -4,17 +4,23 @@ '-c', ''' import os
@@ -64,6 +63,3 @@ index 840ac25..2c3423e 100644 check: true, ).stdout().strip() --- -2.47.3 -
meta-python/recipes-devtools/python/python3-pandas_3.1.1.bb renamed from meta-python/recipes-devtools/python/python3-pandas_3.0.6.bb +1 -1
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=e98642e1210ade884e5254ab18d55b7d" SRC_URI:append:class-target = " file://0001-BLD-add-option-to-specify-numpy-header-location.patch " -SRC_URI[sha256sum] = "66b07ef7315a31bfe1089cd3d71a7de781c9dca986762d0b4fe7c0ef17465d10" +SRC_URI[sha256sum] = "05fed3e3b7c99b226f160e29d7d6cb7ef39638c758cbfe42b3f24ba34f04b859" CVE_PRODUCT = "pandas"
PATCH 54/105 python3-dateutil: upgrade 2.9.0 -> 4.0.0
In reply to Khem RajUpstream dropped six and builds with hatchling; drop the six patch, inherit python_hatchling and add the new tzdata runtime dependency.
Changes:
- 3.0.0: new runtime dependency on tzdata; the bundled zoneinfo database is no longer shipped and dateutil.zoneinfo is deprecated.
- 3.0.0: tz.tzfile rewritten (v2/v3 tzfile and slim binaries, times past 2038); nonexistent times now follow PEP 495, so offsets differ.
- 4.0.0: requires Python 3.11+; six dependency removed; build backend switched to Hatchling.
- 4.0.0: isoparse now rejects non-exact digit fields (breaking for sloppy input); fix cached rrule/rruleset hang, relativedelta yearday=366, tzutc/tzoffset unpickling; rrulestr ignores X- params.
AI-Generated: Uses Claude Code
---
.../0001-drop-the-six-dependency.patch | 751 ------------------
...til_2.9.0.bb => python3-dateutil_4.0.0.bb} | 11 +-
2 files changed, 4 insertions(+), 758 deletions(-)
delete mode 100644 meta-python/recipes-devtools/python/python3-dateutil/0001-drop-the-six-dependency.patch
rename meta-python/recipes-devtools/python/{python3-dateutil_2.9.0.bb => python3-dateutil_4.0.0.bb} (67%)meta-python/recipes-devtools/python/python3-dateutil/0001-drop-the-six-dependency.patch deleted +0 -751
@@ -1,751 +0,0 @@ -From 81e23b3bffdb1ec451b2ed02bc377b1be53b2b5f Mon Sep 17 00:00:00 2001 -From: Markus Volk <[email protected]> -Date: Mon, 21 Sep 2026 12:30:09 +0200 -Subject: [PATCH] drop the six dependency - -six is a Python 2 compatibility shim and dateutil no longer needs it on -Python 3: the metaclass decorators, the string and integer type aliases, -raise_from and the six.moves imports of _thread, range and winreg all -have direct equivalents in the standard library. - -Upstream-Status: Pending - -AI-Generated: Uses Claude Code (Claude Opus 5) ---- - pyproject.toml | 1 - - setup.cfg | 1 - - src/dateutil/parser/_parser.py | 14 ++++++-------- - src/dateutil/parser/isoparser.py | 5 ++--- - src/dateutil/relativedelta.py | 3 +-- - src/dateutil/rrule.py | 41 ++++++++++++++++++++--------------------- - src/dateutil/tz/_common.py | 15 +-------------- - src/dateutil/tz/_factories.py | 2 +- - src/dateutil/tz/tz.py | 19 +++++++------------ - src/dateutil/tz/win.py | 7 +++---- - tests/property/test_tz_prop.py | 6 +----- - tests/test_imports.py | 9 ++------- - tests/test_isoparser.py | 16 +++++----------- - tests/test_parser.py | 13 +++---------- - tests/test_rrule.py | 38 -------------------------------------- - tests/test_tz.py | 6 ------ - updatezinfo.py | 4 ++-- - 17 files changed, 54 insertions(+), 146 deletions(-) - -diff --git a/pyproject.toml b/pyproject.toml -index 67ad619..12da1f4 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -57,7 +57,6 @@ known_first_party = ["dateutil"] - known_third_party=[ - "pytest", - "hypothesis", -- "six", - "freezegun", - "mock", - ] -diff --git a/setup.cfg b/setup.cfg -index 4f91e34..84f19f3 100644 ---- a/setup.cfg -+++ b/setup.cfg -@@ -39,7 +39,6 @@ classifiers = - [options] - zip_safe = True - setup_requires = setuptools_scm --install_requires = six >= 1.5 - package_dir = - =src - python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.* -diff --git a/src/dateutil/parser/_parser.py b/src/dateutil/parser/_parser.py -index 37d1663..41d3d9f 100644 ---- a/src/dateutil/parser/_parser.py -+++ b/src/dateutil/parser/_parser.py -@@ -39,8 +39,6 @@ import warnings - from calendar import monthrange - from io import StringIO - --import six --from six import integer_types, text_type - - from decimal import Decimal - -@@ -63,7 +61,7 @@ class _timelex(object): - if isinstance(instream, (bytes, bytearray)): - instream = instream.decode() - -- if isinstance(instream, text_type): -+ if isinstance(instream, str): - instream = StringIO(instream) - elif getattr(instream, 'read', None) is None: - raise TypeError('Parser must be a string or character stream, not ' -@@ -648,7 +646,7 @@ class parser(object): - try: - ret = self._build_naive(res, default) - except ValueError as e: -- six.raise_from(ParserError(str(e) + ": %s", timestr), e) -+ raise ParserError(str(e) + ": %s", timestr) from e - - if not ignoretz: - ret = self._build_tzaware(ret, res, tzinfos) -@@ -878,7 +876,7 @@ class parser(object): - try: - value = self._to_decimal(value_repr) - except Exception as e: -- six.raise_from(ValueError('Unknown numeric token'), e) -+ raise ValueError('Unknown numeric token') from e - - len_li = len(value_repr) - -@@ -1147,7 +1145,7 @@ class parser(object): - raise ValueError("Converted decimal value is infinite or NaN") - except Exception as e: - msg = "Could not convert %s to decimal" % val -- six.raise_from(ValueError(msg), e) -+ raise ValueError(msg) from e - else: - return decimal_value - -@@ -1165,9 +1163,9 @@ class parser(object): - # eg tzinfos = {'BRST' : None} - if isinstance(tzdata, datetime.tzinfo) or tzdata is None: - tzinfo = tzdata -- elif isinstance(tzdata, text_type): -+ elif isinstance(tzdata, str): - tzinfo = tz.tzstr(tzdata) -- elif isinstance(tzdata, integer_types): -+ elif isinstance(tzdata, int): - tzinfo = tz.tzoffset(tzname, tzdata) - else: - raise TypeError("Offset must be tzinfo subclass, tz string, " -diff --git a/src/dateutil/parser/isoparser.py b/src/dateutil/parser/isoparser.py -index 7060087..d296948 100644 ---- a/src/dateutil/parser/isoparser.py -+++ b/src/dateutil/parser/isoparser.py -@@ -14,7 +14,6 @@ from dateutil import tz - from functools import wraps - - import re --import six - - __all__ = ["isoparse", "isoparser"] - -@@ -26,13 +25,13 @@ def _takes_ascii(f): - str_in = getattr(str_in, 'read', lambda: str_in)() - - # If it's unicode, turn it into bytes, since ISO-8601 only covers ASCII -- if isinstance(str_in, six.text_type): -+ if isinstance(str_in, str): - # ASCII is the same in UTF-8 - try: - str_in = str_in.encode('ascii') - except UnicodeEncodeError as e: - msg = 'ISO-8601 strings should contain only ASCII characters' -- six.raise_from(ValueError(msg), e) -+ raise ValueError(msg) from e - - return f(self, str_in, *args, **kwargs) - -diff --git a/src/dateutil/relativedelta.py b/src/dateutil/relativedelta.py -index cd323a5..8283d7e 100644 ---- a/src/dateutil/relativedelta.py -+++ b/src/dateutil/relativedelta.py -@@ -5,7 +5,6 @@ import calendar - import operator - from math import copysign - --from six import integer_types - from warnings import warn - - from ._common import weekday -@@ -200,7 +199,7 @@ class relativedelta(object): - "This is not a well-defined condition and will raise " + - "errors in future versions.", DeprecationWarning) - -- if isinstance(weekday, integer_types): -+ if isinstance(weekday, int): - self.weekday = weekdays[weekday] - else: - self.weekday = weekday -diff --git a/src/dateutil/rrule.py b/src/dateutil/rrule.py -index 571a0d2..d4ebac8 100644 ---- a/src/dateutil/rrule.py -+++ b/src/dateutil/rrule.py -@@ -15,9 +15,8 @@ from functools import wraps - # For warning about deprecation of until and count - from warnings import warn - --from six import advance_iterator, integer_types - --from six.moves import _thread, range -+import _thread - - from ._common import weekday as weekdaybase - -@@ -134,7 +133,7 @@ class rrulebase(object): - break - try: - for j in range(10): -- cache.append(advance_iterator(gen)) -+ cache.append(next(gen)) - except StopIteration: - self._cache_gen = gen = None - self._cache_complete = True -@@ -161,7 +160,7 @@ class rrulebase(object): - gen = iter(self) - try: - for i in range(item+1): -- res = advance_iterator(gen) -+ res = next(gen) - except StopIteration: - raise IndexError - return res -@@ -479,14 +478,14 @@ class rrule(rrulebase): - - if wkst is None: - self._wkst = calendar.firstweekday() -- elif isinstance(wkst, integer_types): -+ elif isinstance(wkst, int): - self._wkst = wkst - else: - self._wkst = wkst.weekday - - if bysetpos is None: - self._bysetpos = None -- elif isinstance(bysetpos, integer_types): -+ elif isinstance(bysetpos, int): - if bysetpos == 0 or not (-366 <= bysetpos <= 366): - raise ValueError("bysetpos must be between 1 and 366, " - "or between -366 and -1") -@@ -520,7 +519,7 @@ class rrule(rrulebase): - if bymonth is None: - self._bymonth = None - else: -- if isinstance(bymonth, integer_types): -+ if isinstance(bymonth, int): - bymonth = (bymonth,) - - self._bymonth = tuple(sorted(set(bymonth))) -@@ -532,7 +531,7 @@ class rrule(rrulebase): - if byyearday is None: - self._byyearday = None - else: -- if isinstance(byyearday, integer_types): -+ if isinstance(byyearday, int): - byyearday = (byyearday,) - - self._byyearday = tuple(sorted(set(byyearday))) -@@ -542,7 +541,7 @@ class rrule(rrulebase): - if byeaster is not None: - if not easter: - from dateutil import easter -- if isinstance(byeaster, integer_types): -+ if isinstance(byeaster, int): - self._byeaster = (byeaster,) - else: - self._byeaster = tuple(sorted(byeaster)) -@@ -556,7 +555,7 @@ class rrule(rrulebase): - self._bymonthday = () - self._bynmonthday = () - else: -- if isinstance(bymonthday, integer_types): -+ if isinstance(bymonthday, int): - bymonthday = (bymonthday,) - - bymonthday = set(bymonthday) # Ensure it's unique -@@ -573,7 +572,7 @@ class rrule(rrulebase): - if byweekno is None: - self._byweekno = None - else: -- if isinstance(byweekno, integer_types): -+ if isinstance(byweekno, int): - byweekno = (byweekno,) - - self._byweekno = tuple(sorted(set(byweekno))) -@@ -588,13 +587,13 @@ class rrule(rrulebase): - # If it's one of the valid non-sequence types, convert to a - # single-element sequence before the iterator that builds the - # byweekday set. -- if isinstance(byweekday, integer_types) or hasattr(byweekday, "n"): -+ if isinstance(byweekday, int) or hasattr(byweekday, "n"): - byweekday = (byweekday,) - - self._byweekday = set() - self._bynweekday = set() - for wday in byweekday: -- if isinstance(wday, integer_types): -+ if isinstance(wday, int): - self._byweekday.add(wday) - elif not wday.n or freq > MONTHLY: - self._byweekday.add(wday.weekday) -@@ -629,7 +628,7 @@ class rrule(rrulebase): - else: - self._byhour = None - else: -- if isinstance(byhour, integer_types): -+ if isinstance(byhour, int): - byhour = (byhour,) - - if freq == HOURLY: -@@ -649,7 +648,7 @@ class rrule(rrulebase): - else: - self._byminute = None - else: -- if isinstance(byminute, integer_types): -+ if isinstance(byminute, int): - byminute = (byminute,) - - if freq == MINUTELY: -@@ -669,7 +668,7 @@ class rrule(rrulebase): - else: - self._bysecond = None - else: -- if isinstance(bysecond, integer_types): -+ if isinstance(bysecond, int): - bysecond = (bysecond,) - - self._bysecond = set(bysecond) -@@ -1062,7 +1061,7 @@ class rrule(rrulebase): - cset = set() - - # Support a single byxxx value. -- if isinstance(byxxx, integer_types): -+ if isinstance(byxxx, int): - byxxx = (byxxx, ) - - for num in byxxx: -@@ -1315,7 +1314,7 @@ class rruleset(rrulebase): - class _genitem(object): - def __init__(self, genlist, gen): - try: -- self.dt = advance_iterator(gen) -+ self.dt = next(gen) - genlist.append(self) - except StopIteration: - pass -@@ -1324,7 +1323,7 @@ class rruleset(rrulebase): - - def __next__(self): - try: -- self.dt = advance_iterator(self.gen) -+ self.dt = next(self.gen) - except StopIteration: - if self.genlist[0] is self: - heapq.heappop(self.genlist) -@@ -1400,14 +1399,14 @@ class rruleset(rrulebase): - if not lastdt or lastdt != ritem.dt: - while exlist and exlist[0] < ritem: - exitem = exlist[0] -- advance_iterator(exitem) -+ next(exitem) - if exlist and exlist[0] is exitem: - heapq.heapreplace(exlist, exitem) - if not exlist or ritem != exlist[0]: - total += 1 - yield ritem.dt - lastdt = ritem.dt -- advance_iterator(ritem) -+ next(ritem) - if rlist and rlist[0] is ritem: - heapq.heapreplace(rlist, ritem) - self._len = total -diff --git a/src/dateutil/tz/_common.py b/src/dateutil/tz/_common.py -index e6ac118..d70f8a4 100644 ---- a/src/dateutil/tz/_common.py -+++ b/src/dateutil/tz/_common.py -@@ -1,5 +1,3 @@ --from six import PY2 -- - from functools import wraps - - from datetime import datetime, timedelta, tzinfo -@@ -16,18 +14,7 @@ def tzname_in_python2(namefunc): - tzname() API changed in Python 3. It used to return bytes, but was changed - to unicode strings - """ -- if PY2: -- @wraps(namefunc) -- def adjust_encoding(*args, **kwargs): -- name = namefunc(*args, **kwargs) -- if name is not None: -- name = name.encode() -- -- return name -- -- return adjust_encoding -- else: -- return namefunc -+ return namefunc - - - # The following is adapted from Alexander Belopolsky's tz library -diff --git a/src/dateutil/tz/_factories.py b/src/dateutil/tz/_factories.py -index f8a6589..97a28d2 100644 ---- a/src/dateutil/tz/_factories.py -+++ b/src/dateutil/tz/_factories.py -@@ -2,7 +2,7 @@ from datetime import timedelta - import weakref - from collections import OrderedDict - --from six.moves import _thread -+import _thread - - - class _TzSingleton(type): -diff --git a/src/dateutil/tz/tz.py b/src/dateutil/tz/tz.py -index 6175914..69b8763 100644 ---- a/src/dateutil/tz/tz.py -+++ b/src/dateutil/tz/tz.py -@@ -16,9 +16,7 @@ import bisect - import weakref - from collections import OrderedDict - --import six --from six import string_types --from six.moves import _thread -+import _thread - from ._common import tzname_in_python2, _tzinfo - from ._common import tzrangebase, enfold - from ._common import _validate_fromutc_inputs -@@ -38,8 +36,7 @@ EPOCH = datetime.datetime(1970, 1, 1, 0, 0) - EPOCHORDINAL = EPOCH.toordinal() - - [email protected]_metaclass(_TzSingleton) --class tzutc(datetime.tzinfo): -+class tzutc(datetime.tzinfo, metaclass=_TzSingleton): - """ - This is a tzinfo object that represents the UTC time zone. - -@@ -129,8 +126,7 @@ class tzutc(datetime.tzinfo): - UTC = tzutc() - - [email protected]_metaclass(_TzOffsetFactory) --class tzoffset(datetime.tzinfo): -+class tzoffset(datetime.tzinfo, metaclass=_TzOffsetFactory): - """ - A simple class for representing a fixed offset from UTC. - -@@ -459,7 +455,7 @@ class tzfile(_tzinfo): - super(tzfile, self).__init__() - - file_opened_here = False -- if isinstance(fileobj, string_types): -+ if isinstance(fileobj, str): - self._filename = fileobj - fileobj = open(fileobj, 'rb') - file_opened_here = True -@@ -1033,8 +1029,7 @@ class tzrange(tzrangebase): - return self._dst_base_offset_ - - [email protected]_metaclass(_TzStrFactory) --class tzstr(tzrange): -+class tzstr(tzrange, metaclass=_TzStrFactory): - """ - ``tzstr`` objects are time zone objects specified by a time-zone string as - it would be passed to a ``TZ`` variable on POSIX-style systems (see -@@ -1265,7 +1260,7 @@ class tzical(object): - global rrule - from dateutil import rrule - -- if isinstance(fileobj, string_types): -+ if isinstance(fileobj, str): - self._s = fileobj - # ical should be encoded in UTF-8 with CRLF - fileobj = open(fileobj, 'r') -@@ -1621,7 +1616,7 @@ def __get_gettz(): - except TypeError as e: - if isinstance(name, bytes): - new_msg = "gettz argument should be str, not bytes" -- six.raise_from(TypeError(new_msg), e) -+ raise TypeError(new_msg) from e - else: - raise - if os.path.isabs(name): -diff --git a/src/dateutil/tz/win.py b/src/dateutil/tz/win.py -index cde07ba..7fdd15d 100644 ---- a/src/dateutil/tz/win.py -+++ b/src/dateutil/tz/win.py -@@ -10,8 +10,7 @@ Attempting to import this module on a non-Windows platform will raise an - import datetime - import struct - --from six.moves import winreg --from six import text_type -+import winreg - - try: - import ctypes -@@ -216,7 +215,7 @@ class tzwin(tzwinbase): - self._name = name - - with winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE) as handle: -- tzkeyname = text_type("{kn}\\{name}").format(kn=TZKEYNAME, name=name) -+ tzkeyname = str("{kn}\\{name}").format(kn=TZKEYNAME, name=name) - with winreg.OpenKey(handle, tzkeyname) as tzkey: - keydict = valuestodict(tzkey) - -@@ -282,7 +281,7 @@ class tzwinlocal(tzwinbase): - self._dst_abbr = keydict["DaylightName"] - - try: -- tzkeyname = text_type('{kn}\\{sn}').format(kn=TZKEYNAME, -+ tzkeyname = str('{kn}\\{sn}').format(kn=TZKEYNAME, - sn=self._std_abbr) - with winreg.OpenKey(handle, tzkeyname) as tzkey: - _keydict = valuestodict(tzkey) -diff --git a/tests/property/test_tz_prop.py b/tests/property/test_tz_prop.py -index ec6d271..d5806b6 100644 ---- a/tests/property/test_tz_prop.py -+++ b/tests/property/test_tz_prop.py -@@ -1,7 +1,6 @@ - from datetime import datetime, timedelta - - import pytest --import six - from hypothesis import assume, given - from hypothesis import strategies as st - -@@ -25,10 +24,7 @@ def test_gettz_returns_local(gettz_arg, dt): - return - - dt_act = dt.astimezone(tz.gettz(gettz_arg)) -- if six.PY2: -- dt_exp = dt.astimezone(tz.tzlocal()) -- else: -- dt_exp = dt.astimezone() -+ dt_exp = dt.astimezone() - - assert dt_act == dt_exp - assert dt_act.tzname() == dt_exp.tzname() -diff --git a/tests/test_imports.py b/tests/test_imports.py -index 7d0749e..caad793 100644 ---- a/tests/test_imports.py -+++ b/tests/test_imports.py -@@ -1,7 +1,6 @@ - import sys - import unittest - import pytest --import six - - MODULE_TYPE = type(sys) - -@@ -10,12 +9,8 @@ MODULE_TYPE = type(sys) - # But since we expect lazy imports tests to fail for Python < 3.7 we'll ignore those - # warnings with this filter. - --if six.PY2: -- filter_import_warning = pytest.mark.filterwarnings("ignore::RuntimeWarning") --else: -- -- def filter_import_warning(f): -- return f -+def filter_import_warning(f): -+ return f - - - @pytest.fixture(scope="function") -diff --git a/tests/test_isoparser.py b/tests/test_isoparser.py -index c33881f..874070c 100644 ---- a/tests/test_isoparser.py -+++ b/tests/test_isoparser.py -@@ -9,7 +9,6 @@ from dateutil.tz import UTC - from dateutil.parser import isoparser, isoparse - - import pytest --import six - - - def _generate_tzoffsets(limited): -@@ -297,7 +296,7 @@ def test_isoparser_invalid_sep(sep): - - - # This only fails on Python 3 [email protected](not six.PY2, reason="Fails on Python 3 only") [email protected](reason="Fails on Python 3 only") - def test_isoparser_byte_sep(): - dt = datetime(2017, 12, 6, 12, 30, 45) - dt_str = dt.isoformat(sep=str('T')) -@@ -347,9 +346,7 @@ def __make_date_examples(): - date(2016, 2, 1) - ] - -- if not six.PY2: -- # strftime does not support dates before 1900 in Python 2 -- dates_no_day.append(date(1000, 11, 1)) -+ dates_no_day.append(date(1000, 11, 1)) - - # Only one supported format for dates with no day - o = zip(dates_no_day, it.repeat('%Y-%m')) -@@ -371,7 +368,7 @@ def __make_date_examples(): - @pytest.mark.parametrize('as_bytes', [True, False]) - def test_parse_isodate(d, dt_fmt, as_bytes): - d_str = d.strftime(dt_fmt) -- if isinstance(d_str, six.text_type) and as_bytes: -+ if isinstance(d_str, str) and as_bytes: - d_str = d_str.encode('ascii') - elif isinstance(d_str, bytes) and not as_bytes: - d_str = d_str.decode('ascii') -@@ -400,10 +397,7 @@ def test_parse_isodate_error_text(): - isoparser().parse_isodate('2014-0423') - - # ensure the error message does not contain b' prefixes -- if six.PY2: -- expected_error = "String contains unknown ISO components: u'2014-0423'" -- else: -- expected_error = "String contains unknown ISO components: '2014-0423'" -+ expected_error = "String contains unknown ISO components: '2014-0423'" - assert expected_error == str(excinfo.value) - - -@@ -458,7 +452,7 @@ def __make_time_examples(): - @pytest.mark.parametrize('as_bytes', [True, False]) - def test_isotime(time_val, time_fmt, as_bytes): - tstr = time_val.strftime(time_fmt) -- if isinstance(tstr, six.text_type) and as_bytes: -+ if isinstance(tstr, str) and as_bytes: - tstr = tstr.encode('ascii') - elif isinstance(tstr, bytes) and not as_bytes: - tstr = tstr.decode('ascii') -diff --git a/tests/test_parser.py b/tests/test_parser.py -index 08a34da..c66850e 100644 ---- a/tests/test_parser.py -+++ b/tests/test_parser.py -@@ -14,7 +14,6 @@ from dateutil.parser import UnknownTimezoneWarning - - from ._common import TZEnvContext - --from six import assertRaisesRegex, PY2 - from io import StringIO - - import pytest -@@ -462,12 +461,6 @@ class ParserTest(unittest.TestCase): - datetime(2003, 9, 25, 10, 36, 28, - tzinfo=self.brsttz)) - -- def testDateCommandFormatWithLong(self): -- if PY2: -- self.assertEqual(parse("Thu Sep 25 10:36:28 BRST 2003", -- tzinfos={"BRST": long(-10800)}), -- datetime(2003, 9, 25, 10, 36, 28, -- tzinfo=self.brsttz)) - - def testISOFormatStrip2(self): - self.assertEqual(parse("2003-09-25T10:49:41+03:00"), -@@ -570,11 +563,11 @@ class ParserTest(unittest.TestCase): - parse('shouldfail') - - def testCorrectErrorOnFuzzyWithTokens(self): -- assertRaisesRegex(self, ParserError, 'Unknown string format', -+ self.assertRaisesRegex(ParserError, 'Unknown string format', - parse, '04/04/32/423', fuzzy_with_tokens=True) -- assertRaisesRegex(self, ParserError, 'Unknown string format', -+ self.assertRaisesRegex(ParserError, 'Unknown string format', - parse, '04/04/04 +32423', fuzzy_with_tokens=True) -- assertRaisesRegex(self, ParserError, 'Unknown string format', -+ self.assertRaisesRegex(ParserError, 'Unknown string format', - parse, '04/04/0d4', fuzzy_with_tokens=True) - - def testIncreasingCTime(self): -diff --git a/tests/test_rrule.py b/tests/test_rrule.py -index 52673ec..f50b24e 100644 ---- a/tests/test_rrule.py -+++ b/tests/test_rrule.py -@@ -3,7 +3,6 @@ from __future__ import unicode_literals - - from datetime import datetime, date - import unittest --from six import PY2 - - from dateutil import tz - from dateutil.rrule import ( -@@ -2282,26 +2281,6 @@ class RRuleTest(unittest.TestCase): - datetime(2010, 3, 22, 13, 1), - datetime(2010, 3, 22, 14, 1)]) - -- def testLongIntegers(self): -- if PY2: # There are no longs in python3 -- self.assertEqual(list(rrule(MINUTELY, -- count=long(2), -- interval=long(2), -- bymonth=long(2), -- byweekday=long(3), -- byhour=long(6), -- byminute=long(6), -- bysecond=long(6), -- dtstart=datetime(1997, 9, 2, 9, 0))), -- [datetime(1998, 2, 5, 6, 6, 6), -- datetime(1998, 2, 12, 6, 6, 6)]) -- self.assertEqual(list(rrule(YEARLY, -- count=long(2), -- bymonthday=long(5), -- byweekno=long(2), -- dtstart=datetime(1997, 9, 2, 9, 0))), -- [datetime(1998, 1, 5, 9, 0), -- datetime(2004, 1, 5, 9, 0)]) - - def testHourlyBadRRule(self): - """ -@@ -4577,23 +4556,6 @@ class RRuleTest(unittest.TestCase): - wkst=SU, - dtstart=datetime(1997, 9, 2, 9, 0))) - -- def testToStrLongIntegers(self): -- if PY2: # There are no longs in python3 -- self._rrulestr_reverse_test(rrule(MINUTELY, -- count=long(2), -- interval=long(2), -- bymonth=long(2), -- byweekday=long(3), -- byhour=long(6), -- byminute=long(6), -- bysecond=long(6), -- dtstart=datetime(1997, 9, 2, 9, 0))) -- -- self._rrulestr_reverse_test(rrule(YEARLY, -- count=long(2), -- bymonthday=long(5), -- byweekno=long(2), -- dtstart=datetime(1997, 9, 2, 9, 0))) - - def testReplaceIfSet(self): - rr = rrule(YEARLY, -diff --git a/tests/test_tz.py b/tests/test_tz.py -index e5e4772..41c17ff 100644 ---- a/tests/test_tz.py -+++ b/tests/test_tz.py -@@ -7,7 +7,6 @@ from ._common import ComparesEqual - from datetime import datetime, timedelta - from datetime import time as dt_time - from datetime import tzinfo --from six import PY2 - from io import BytesIO, StringIO - import unittest - -@@ -1114,11 +1113,6 @@ def test_gettz_badzone_unicode(): - b"America/New_York", - ".*should be str, not bytes.*", - id="bytes on Python 3", -- marks=[ -- pytest.mark.skipif( -- PY2, reason="bytes arguments accepted in Python 2" -- ) -- ], - ), - pytest.param( - object(), -diff --git a/updatezinfo.py b/updatezinfo.py -index bba53d5..f77dfa1 100644 ---- a/updatezinfo.py -+++ b/updatezinfo.py -@@ -4,8 +4,8 @@ import hashlib - import json - import io - --from six.moves.urllib import request --from six.moves.urllib import error as urllib_error -+from urllib import request -+from urllib import error as urllib_error - - try: - import dateutil
meta-python/recipes-devtools/python/python3-dateutil_4.0.0.bb renamed from meta-python/recipes-devtools/python/python3-dateutil_2.9.0.bb +4 -7
@@ -4,25 +4,22 @@ HOMEPAGE = "https://dateutil.readthedocs.org" LICENSE = "Apache-2.0 AND BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=e3155c7bdc71f66e02678411d2abf996" -SRC_URI += "file://0001-drop-the-six-dependency.patch" -SRC_URI[sha256sum] = "78e73e19c63f5b20ffa567001531680d939dc042bf7850431877645523c66709" +SRC_URI[sha256sum] = "d7295ff14fdc0f92f662100bfb6c551d160ca090f2939f1ec5b9794265c03f06" PYPI_PACKAGE = "python-dateutil" -PYPI_PACKAGE_SDIST = "python-dateutil" -inherit pypi python_setuptools_build_meta +inherit pypi python_hatchling -DEPENDS += "python3-wheel-native" +DEPENDS += "python3-hatch-fancy-pypi-readme-native python3-hatch-vcs-native" PACKAGES =+ "${PN}-zoneinfo" FILES:${PN}-zoneinfo = "${PYTHON_SITEPACKAGES_DIR}/dateutil/zoneinfo" -DEPENDS += "python3-setuptools-scm-native" - RDEPENDS:${PN} = "\ python3-datetime \ python3-numbers \ python3-stringold \ + python3-tzdata \ " BBCLASSEXTEND = "native nativesdk"
PATCH 55/105 python3-pendulum: upgrade 3.2.0 -> 3.3.0
In reply to Khem RajRegenerate the crates. Deselect test_instance_with_aware_datetime_any_tzinfo: dateutil 4 tzfile objects carry a zoneinfo-style "key", so pendulum now keeps the "Europe/Paris" name the test expects to be "+02:00".
Changes:
- BREAKING: drop support for Python 3.9; add Python 3.15 and PEP 703 free-threaded Python support.
- parse() now raises ParserError for an empty string; Timezone and FixedTimezone are hashable; time-machine requirement updated to v3.
- Fix diff_for_humans crash for the zh locale, weekday modifiers after global calendar layout changes, and DateTime pickling with a copied /etc/localtime; replace deprecated utcnow()/utcfromtimestamp().
- Rust extension bumped to PyO3 0.29; add Gujarati locale, fix Japanese, Ukrainian and Hindi locales.
AI-Generated: Uses Claude Code
---
.../python/python3-pendulum-crates.inc | 70 +++++++------------
...lum_3.2.0.bb => python3-pendulum_3.3.0.bb} | 6 +-
2 files changed, 31 insertions(+), 45 deletions(-)
rename meta-python/recipes-devtools/python/{python3-pendulum_3.2.0.bb => python3-pendulum_3.3.0.bb} (77%)meta-python/recipes-devtools/python/python3-pendulum-crates.inc +26 -44
@@ -2,51 +2,33 @@ # from rust/Cargo.lock SRC_URI += " \ - crate://crates.io/autocfg/1.5.0 \ - crate://crates.io/cc/1.2.55 \ - crate://crates.io/find-msvc-tools/0.1.9 \ crate://crates.io/heck/0.5.0 \ - crate://crates.io/indoc/2.0.7 \ - crate://crates.io/libc/0.2.180 \ - crate://crates.io/memoffset/0.9.1 \ - crate://crates.io/once_cell/1.21.3 \ - crate://crates.io/portable-atomic/1.13.0 \ - crate://crates.io/proc-macro2/1.0.106 \ - crate://crates.io/pyo3/0.27.2 \ - crate://crates.io/pyo3-build-config/0.27.2 \ - crate://crates.io/pyo3-ffi/0.27.2 \ - crate://crates.io/pyo3-macros/0.27.2 \ - crate://crates.io/pyo3-macros-backend/0.27.2 \ - crate://crates.io/python3-dll-a/0.2.14 \ - crate://crates.io/quote/1.0.44 \ - crate://crates.io/rustversion/1.0.22 \ - crate://crates.io/shlex/1.3.0 \ - crate://crates.io/syn/2.0.114 \ - crate://crates.io/target-lexicon/0.13.4 \ - crate://crates.io/unicode-ident/1.0.22 \ - crate://crates.io/unindent/0.2.4 \ + crate://crates.io/libc/0.2.190 \ + crate://crates.io/once_cell/1.21.4 \ + crate://crates.io/portable-atomic/1.15.0 \ + crate://crates.io/proc-macro2/1.0.107 \ + crate://crates.io/pyo3/0.29.3 \ + crate://crates.io/pyo3-build-config/0.29.3 \ + crate://crates.io/pyo3-ffi/0.29.3 \ + crate://crates.io/pyo3-macros/0.29.3 \ + crate://crates.io/pyo3-macros-backend/0.29.3 \ + crate://crates.io/quote/1.0.47 \ + crate://crates.io/syn/2.0.119 \ + crate://crates.io/target-lexicon/0.13.5 \ + crate://crates.io/unicode-ident/1.0.26 \ " -SRC_URI[autocfg-1.5.0.sha256sum] = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" -SRC_URI[cc-1.2.55.sha256sum] = "47b26a0954ae34af09b50f0de26458fa95369a0d478d8236d3f93082b219bd29" -SRC_URI[find-msvc-tools-0.1.9.sha256sum] = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" SRC_URI[heck-0.5.0.sha256sum] = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" -SRC_URI[indoc-2.0.7.sha256sum] = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706" -SRC_URI[libc-0.2.180.sha256sum] = "bcc35a38544a891a5f7c865aca548a982ccb3b8650a5b06d0fd33a10283c56fc" -SRC_URI[memoffset-0.9.1.sha256sum] = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" -SRC_URI[once_cell-1.21.3.sha256sum] = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" -SRC_URI[portable-atomic-1.13.0.sha256sum] = "f89776e4d69bb58bc6993e99ffa1d11f228b839984854c7daeb5d37f87cbe950" -SRC_URI[proc-macro2-1.0.106.sha256sum] = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" -SRC_URI[pyo3-0.27.2.sha256sum] = "ab53c047fcd1a1d2a8820fe84f05d6be69e9526be40cb03b73f86b6b03e6d87d" -SRC_URI[pyo3-build-config-0.27.2.sha256sum] = "b455933107de8642b4487ed26d912c2d899dec6114884214a0b3bb3be9261ea6" -SRC_URI[pyo3-ffi-0.27.2.sha256sum] = "1c85c9cbfaddf651b1221594209aed57e9e5cff63c4d11d1feead529b872a089" -SRC_URI[pyo3-macros-0.27.2.sha256sum] = "0a5b10c9bf9888125d917fb4d2ca2d25c8df94c7ab5a52e13313a07e050a3b02" -SRC_URI[pyo3-macros-backend-0.27.2.sha256sum] = "03b51720d314836e53327f5871d4c0cfb4fb37cc2c4a11cc71907a86342c40f9" -SRC_URI[python3-dll-a-0.2.14.sha256sum] = "d381ef313ae70b4da5f95f8a4de773c6aa5cd28f73adec4b4a31df70b66780d8" -SRC_URI[quote-1.0.44.sha256sum] = "21b2ebcf727b7760c461f091f9f0f539b77b8e87f2fd88131e7f1b433b3cece4" -SRC_URI[rustversion-1.0.22.sha256sum] = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" -SRC_URI[shlex-1.3.0.sha256sum] = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" -SRC_URI[syn-2.0.114.sha256sum] = "d4d107df263a3013ef9b1879b0df87d706ff80f65a86ea879bd9c31f9b307c2a" -SRC_URI[target-lexicon-0.13.4.sha256sum] = "b1dd07eb858a2067e2f3c7155d54e929265c264e6f37efe3ee7a8d1b5a1dd0ba" -SRC_URI[unicode-ident-1.0.22.sha256sum] = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5" -SRC_URI[unindent-0.2.4.sha256sum] = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3" +SRC_URI[libc-0.2.190.sha256sum] = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78" +SRC_URI[once_cell-1.21.4.sha256sum] = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" +SRC_URI[portable-atomic-1.15.0.sha256sum] = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85" +SRC_URI[proc-macro2-1.0.107.sha256sum] = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +SRC_URI[pyo3-0.29.3.sha256sum] = "700d18fa267b73b9b521fd7e13580e2f446916f176cacee1ab63fcc8191f1655" +SRC_URI[pyo3-build-config-0.29.3.sha256sum] = "7b3fc0c4d08f6bb10e71fe39dfb9e2f59c6eb6854e22ec8092f50c69a4499adb" +SRC_URI[pyo3-ffi-0.29.3.sha256sum] = "dfc0b8e19df29aad7086cf977bb0c2a2f143e30567eb113e9cf72b62ca698330" +SRC_URI[pyo3-macros-0.29.3.sha256sum] = "6100e8a4b5eba53afaa5ed078364851a0b2499c553a44c31026b929049b49dc6" +SRC_URI[pyo3-macros-backend-0.29.3.sha256sum] = "6143877a16e82b5a727b7127ff4cd86858a24a28d745d72f43e6f227c7b1bdb3" +SRC_URI[quote-1.0.47.sha256sum] = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +SRC_URI[syn-2.0.119.sha256sum] = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +SRC_URI[target-lexicon-0.13.5.sha256sum] = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca" +SRC_URI[unicode-ident-1.0.26.sha256sum] = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954"
meta-python/recipes-devtools/python/python3-pendulum_3.3.0.bb renamed from meta-python/recipes-devtools/python/python3-pendulum_3.2.0.bb +5 -1
@@ -13,7 +13,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=869e1c364438f234f09673c4039ed114" DEPENDS = "python3-maturin-native" -SRCREV = "aea611d7a1c15ed0da56505c3f370fe4446ba733" +SRCREV = "e06dacedc4cdea90fa1286b3965d180ab94cf251" PYPI_SRC_URI = "git://github.com/python-pendulum/pendulum;protocol=https;branch=master;tag=${PV};destsuffix=pendulum-${PV}" SRC_URI += "file://0001-rust-Cargo.toml-inhibit-strip.patch"
@@ -25,6 +25,10 @@ inherit pypi python_maturin cargo-update-recipe-crates ptest-python-pytest do_install_ptest:append() { install -d ${D}${PTEST_PATH}/tests cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ + # dateutil 4 tzfile objects carry a zoneinfo-style "key", so pendulum now + # keeps the "Europe/Paris" name instead of the "+02:00" offset the test expects + sed -i -e "/--automake/ s|\$| --deselect tests/test_main.py::test_instance_with_aware_datetime_any_tzinfo|" \ + ${D}${PTEST_PATH}/run-ptest } RDEPENDS:${PN} += "python3-dateutil python3-tzdata"
PATCH 56/105 python3-periphery: upgrade 2.4.2 -> 2.5.0
In reply to Khem Raj2.5.0 is only published as a wheel on PyPI; fetch the tagged release from GitHub instead.
Changes:
- I2C and SPI transfer() can read in place; add SPI transfer_advanced() for multiple messages with deselect and delay options.
- Add MMIO read64()/write64(), GPIO event_clock and debounce_us properties, and LED trigger/triggers properties.
- Fix blocking Serial poll() with timeout=None.
- 2.4.3 was a re-release with a fixed wheel.
AI-Generated: Uses Claude Code
---
.../{python3-periphery_2.4.2.bb => python3-periphery_2.5.0.bb} | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-periphery_2.4.2.bb => python3-periphery_2.5.0.bb} (67%)meta-python/recipes-devtools/python/python3-periphery_2.5.0.bb renamed from meta-python/recipes-devtools/python/python3-periphery_2.4.2.bb +2 -1
@@ -4,7 +4,8 @@ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=bf8adf497db13d58fece90db6850816c" -SRC_URI[sha256sum] = "9b334a31832ba64f74aa72700ee5fd6452d79d1d1fa6a0b48333bdb716d91575" +SRCREV = "e82b08df1cd0f438d8a88d7b82b58dc8afade531" +PYPI_SRC_URI = "git://github.com/vsergeev/python-periphery;protocol=https;branch=master;tag=v${PV};destsuffix=${PYPI_PACKAGE_SDIST}-${PV}" inherit pypi setuptools3
PATCH 57/105 python3-pikepdf: upgrade 10.18.0 -> 10.18.2
In reply to Khem RajChanges:
- 10.18.1: assigning None into a page list now raises TypeError instead of being silently dropped with nanobind older than 2.13.
- Build now requires nanobind 2.5.0 or newer.
- 10.18.2: fix Windows crashes when locking several Pdf objects at once (duplicate internal C++ class names); extension module is now built with LTO (about 14% smaller, disable with
-C cmake.define.PIKEPDF_LTO=OFF).
AI-Generated: Uses Claude Code
---
.../{python3-pikepdf_10.18.0.bb => python3-pikepdf_10.18.2.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-pikepdf_10.18.0.bb => python3-pikepdf_10.18.2.bb} (96%)meta-python/recipes-devtools/python/python3-pikepdf_10.18.2.bb renamed from meta-python/recipes-devtools/python/python3-pikepdf_10.18.0.bb +1 -1
@@ -4,7 +4,7 @@ HOMEPAGE = "https://github.com/pikepdf/pikepdf" LICENSE = "MPL-2.0" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=9741c346eef56131163e13b9db1241b3" -SRC_URI[sha256sum] = "cb555ebff93482e8a6eb55881488b469bbb2b5675161c1b93a0510a8642d98d0" +SRC_URI[sha256sum] = "b32ee8b0ffe606059dbf3386ebe1dae6e2601098277e22e8c75c2ee982436b43" SRC_URI += "file://0001-pyproject.toml-Do-not-strip.patch"
PATCH 58/105 python3-pkcs11: upgrade 0.7.0 -> 0.10.1
In reply to Khem RajUpstream dropped setup.py; inherit python_setuptools_build_meta.
License-Update: The license text moved from README.rst to a LICENSE file (same MIT text).
Changes:
- 0.9.0: internal restructuring to allow loading and unloading multiple PKCS#11 libraries; better search/encrypt/sign operation and cancellation handling; batch search and attribute fetching.
- Support user-supplied attribute mappings (AttributeMapper), AES-GCM and AES-CTR, CKR_PIN_LEN_RANGE mapping, fixed X.509 EC public key extraction. No public API breaks except for users extending the shim classes in the types module.
- 0.9.1-0.9.5: GOSTR attribute types, CK_SESSION_HANDLE exposed read-only, per-flag fallback when a token mishandles multi-attribute fetches.
- 0.10.0-0.10.1: Python 3.14 and 3.15 wheels.
AI-Generated: Uses Claude Code
---
.../{python3-pkcs11_0.7.0.bb => python3-pkcs11_0.10.1.bb} | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
rename meta-python/recipes-devtools/python/{python3-pkcs11_0.7.0.bb => python3-pkcs11_0.10.1.bb} (65%)meta-python/recipes-devtools/python/python3-pkcs11_0.10.1.bb renamed from meta-python/recipes-devtools/python/python3-pkcs11_0.7.0.bb +3 -4
@@ -3,14 +3,13 @@ DESCRIPTION = "A high level, “more Pythonic” interface to the PKCS#11 (Crypt HOMEPAGE = "https://pypi.org/project/python-pkcs11/" SECTION = "devel/python" LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://README.rst;beginline=337;endline=358;md5=f68bda54505b4002e6ec86e08125ef79" +LIC_FILES_CHKSUM = "file://LICENSE;md5=f68bda54505b4002e6ec86e08125ef79" -SRC_URI[sha256sum] = "9737e0c24cabb8bc9d48bf8c57c3df2a70f8cdd96b70c50290803286f9e46bf7" +SRC_URI[sha256sum] = "e0d7ccede3b3145a678d7c8c59b3c64dcebeb77c9146ad3394a4b1309c4ab2a2" PYPI_PACKAGE = "python-pkcs11" -PYPI_PACKAGE_SDIST = "python-pkcs11" -inherit pypi setuptools3 cython +inherit pypi python_setuptools_build_meta cython BBCLASSEXTEND = "native"
PATCH 59/105 python3-platformdirs: upgrade 4.13.5 -> 4.14.5
In reply to Khem RajAdd hatch-fancy-pypi-readme to DEPENDS, now required by the build. Drop the strerror test patch, it is part of this release.
Changes:
- 4.14.0: new keyword-only ensure_exists for media directory functions such as user_documents_path.
- Many Unix/macOS hardening fixes for XDG_RUNTIME_DIR handling (reject symlinks, wrong owner or mode, replaceable parent, races), relative HOME treated as unset, os.pathsep in appname/version raises ValueError under multipath=True, linear-time user-dirs.dirs parsing.
- 4.14.2-4.14.5: dedupe equivalent XDG directory spellings, preserve trailing whitespace in absolute XDG values, fix "//runtime-<uid>" temporary runtime dir fallback.
AI-Generated: Uses Claude Code
---
...e-host-strerror-in-warning-tests-630.patch | 43 -------------------
...13.5.bb => python3-platformdirs_4.14.5.bb} | 7 ++-
2 files changed, 3 insertions(+), 47 deletions(-)
delete mode 100644 meta-python/recipes-devtools/python/python3-platformdirs/0001-test-unix-use-host-strerror-in-warning-tests-630.patch
rename meta-python/recipes-devtools/python/{python3-platformdirs_4.13.5.bb => python3-platformdirs_4.14.5.bb} (70%)meta-python/recipes-devtools/python/python3-platformdirs/0001-test-unix-use-host-strerror-in-warning-tests-630.patch deleted +0 -43
@@ -1,43 +0,0 @@ -From c243545c7ee2561ed0b5475c1b43f626d1284111 Mon Sep 17 00:00:00 2001 -From: Yusuf Efe <[email protected]> -Date: Wed, 28 Oct 2026 08:45:21 +0300 -Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20test(unix):=20use=20host=20strerror?= - =?UTF-8?q?=20in=20warning=20tests=20(#630)?= -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Co-authored-by: Bernát Gábor <[email protected]> - -Upstream-Status: Backport [https://github.com/tox-dev/platformdirs/commit/c243545c7ee2561ed0b5475c1b43f626d1284111] -Signed-off-by: Khem Raj <[email protected]> ---- - tests/test_unix.py | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) - -diff --git a/tests/test_unix.py b/tests/test_unix.py -index e68f2b8..1afb622 100644 ---- a/tests/test_unix.py -+++ b/tests/test_unix.py -@@ -1,6 +1,7 @@ - from __future__ import annotations - - import contextlib -+import errno - import importlib - import inspect - import os -@@ -401,8 +402,8 @@ _PROBLEMS: typing.Final = { - "mode-500": "has mode 0500, not 0700", - } - _UNREACHABLE: typing.Final = { -- "file": "Not a directory", -- "symlink-loop": "Too many levels of symbolic links", -+ "file": os.strerror(errno.ENOTDIR), -+ "symlink-loop": os.strerror(errno.ELOOP), - } - _DEFAULT_PREFIXES: typing.Final = { - "linux": "run/user", --- -2.43.0 -
meta-python/recipes-devtools/python/python3-platformdirs_4.14.5.bb renamed from meta-python/recipes-devtools/python/python3-platformdirs_4.13.5.bb +3 -4
@@ -3,15 +3,14 @@ HOMEPAGE = "https://github.com/platformdirs/platformdirs" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=ea4f5a41454746a9ed111e3d8723d17a" -SRC_URI[sha256sum] = "05831adf87d392760f4b5c3a0a95579ab5a10b18b9b9bd43680dcb47544788a0" +SRC_URI[sha256sum] = "32e9921db7385aa8169bee4fe9501923e5715ba9fb7ea3b9c69b0d8e0639f7a1" inherit pypi python_hatchling ptest-python-pytest -SRC_URI += "file://run-ptest \ - file://0001-test-unix-use-host-strerror-in-warning-tests-630.patch \ - " +SRC_URI += "file://run-ptest" DEPENDS += " \ + python3-hatch-fancy-pypi-readme-native \ python3-hatch-vcs-native \ "
PATCH 60/105 python3-pocketsphinx: upgrade 5.0.4 -> 5.1.1
In reply to Khem RajChanges:
- Security fixes (5.1.1): potential buffer overflows in language and acoustic model loading corrected; JSGF memory leaks fixed. No CVE IDs are listed upstream.
- 5.1.0: fixes for heap-buffer-overflow in ps_mllr_read, stack-buffer overflow in WAV chunk ID logging, NULL dereference in ngram_model_read; thread-local RNG; phone support raised to 256.
- CLI enhancements (alignment help, pocketsphinx_lm_convert fix), external timestamp support in the endpointer; removed pygtkcompat use in livedemo.py.
AI-Generated: Uses Claude Code
---
...hon3-pocketsphinx_5.0.4.bb => python3-pocketsphinx_5.1.1.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-pocketsphinx_5.0.4.bb => python3-pocketsphinx_5.1.1.bb} (90%)meta-python/recipes-devtools/python/python3-pocketsphinx_5.1.1.bb renamed from meta-python/recipes-devtools/python/python3-pocketsphinx_5.0.4.bb +1 -1
@@ -6,7 +6,7 @@ LICENSE = "BSD-2-Clause OR BSD-3-Clause OR MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=c4d720cdc9c6953091f65e8b01524bb4" SRC_URI += "file://0001-cython-Use-cythyon3-in-cmake-check.patch" -SRC_URI[sha256sum] = "17d2971e998490def9554b6ba41886708422af5b4ae888723b1b077aab0fe8d4" +SRC_URI[sha256sum] = "675778b309a22dfc9b7d37f7621976bba491d2a5f8c59696bd77fd6d07271355" inherit cmake pkgconfig pypi python3native cython
PATCH 61/105 python3-portalocker: upgrade 3.2.0 -> 4.4.2
In reply to Khem RajUpstream builds with uv_build now; inherit python_uv_build. Add python3-typing-extensions to the ptest RDEPENDS, ship README.md for test_readme.py, drop the redis lock tests which now need fakeredis (not packaged), and deselect test_redislock_stub_import_and_raise_in_process which reads portalocker/__init__.py from the source tree.
Changes:
- Breaking (4.0.0): Python 3.10 or newer required; build backend switched to uv_build (4.4.2 now requires uv_build>=0.11,<1).
- pywin32 is no longer installed by default on Windows; POSIX lock exception str() output changed; Lock resolves paths with abspath.
- Added PidFileLock; fixed TemporaryFileLock/PidFileLock unlock-then- unlink race that could let two processes hold one lock.
- Large set of RedisLock fixes (loss surfacing, fencing tokens, fork safety); stricter typing of Lock file handles (4.3.0).
- 4.4.0: passing a bool as timeout/check_interval is deprecated (TypeError in 5.0); 4.4.1: open_atomic anchors relative paths.
AI-Generated: Uses Claude Code
---
.../python3-portalocker/python3-portalocker/run-ptest | 3 ++-
...portalocker_3.2.0.bb => python3-portalocker_4.4.2.bb} | 9 +++++++--
2 files changed, 9 insertions(+), 3 deletions(-)
rename meta-python/recipes-extended/python3-portalocker/{python3-portalocker_3.2.0.bb => python3-portalocker_4.4.2.bb} (63%)meta-python/recipes-extended/python3-portalocker/python3-portalocker/run-ptest +2 -1
@@ -1,3 +1,4 @@ #!/bin/sh -pytest --automake +# reads portalocker/__init__.py from the source tree, which is not installed +pytest --automake --deselect portalocker_tests/test_optional_redis.py::test_redislock_stub_import_and_raise_in_process
meta-python/recipes-extended/python3-portalocker/python3-portalocker_4.4.2.bb renamed from meta-python/recipes-extended/python3-portalocker/python3-portalocker_3.2.0.bb +7 -2
@@ -4,11 +4,11 @@ LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=152634da660a374ca18c0734ed07c63c" -SRC_URI[sha256sum] = "1f3002956a54a8c3730586c5c77bf18fae4149e07eaf1c29fc3faf4d5a3f89ac" +SRC_URI[sha256sum] = "7ac85bb2aa3c7873bf2ac72586fc6154afa4671ac786994a16617a6b7ccb3e5e" DEPENDS += "python3-setuptools-scm-native" -inherit pypi python_setuptools_build_meta ptest +inherit pypi python_uv_build ptest SRC_URI += " \ file://run-ptest \
@@ -18,6 +18,7 @@ RDEPENDS:${PN}-ptest += " \ python3-multiprocessing \ python3-pytest \ python3-redis \ + python3-typing-extensions \ python3-unittest-automake-output \ redis \ "
@@ -26,6 +27,10 @@ do_install_ptest() { install -d ${D}${PTEST_PATH}/portalocker_tests cp -rf ${S}/portalocker_tests/* ${D}${PTEST_PATH}/portalocker_tests/ rm -rf ${D}${PTEST_PATH}/portalocker_tests/test_combined.py + # the redis lock tests need fakeredis, which isn't packaged + rm -f ${D}${PTEST_PATH}/portalocker_tests/test_redis.py ${D}${PTEST_PATH}/portalocker_tests/test_redis_random_sleep.py + # test_readme.py runs the examples from README.md + install -m 0644 ${S}/README.md ${D}${PTEST_PATH}/ } RDEPENDS:${PN} += " \
PATCH 62/105 python3-py7zr: upgrade 1.1.3 -> 1.1.4
In reply to Khem RajChanges:
- Security: arbitrary file write above the extraction directory via a symlink chain (incomplete fix of CVE-2026-23879, GHSA-jwx8-hv8g- gjjq); containment now decided on the real path and member names with ".." components are rejected.
- Security: memory exhaustion when opening a crafted archive header (GHSA-6pr6-cqpq-x889); extraction hang on a crafted COPY stream (GHSA-v999-q5cj-95jg).
- Fixes: PasswordRequired raised when writing with a crypto filter and no password; extraction workers capped at os.cpu_count(); archiveinfo() on empty archives; non-seekable WriterFactory handles; Bad7zFile on truncated headers; dry_run honored.
AI-Generated: Uses Claude Code
---
.../python/{python3-py7zr_1.1.3.bb => python3-py7zr_1.1.4.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-py7zr_1.1.3.bb => python3-py7zr_1.1.4.bb} (95%)meta-python/recipes-devtools/python/python3-py7zr_1.1.4.bb renamed from meta-python/recipes-devtools/python/python3-py7zr_1.1.3.bb +1 -1
@@ -5,7 +5,7 @@ SECTION = "devel/python" LIC_FILES_CHKSUM = "file://LICENSE;md5=4fbd65380cdd255951079008b364516c" SRC_URI = "git://github.com/miurahr/py7zr.git;branch=master;protocol=https" -SRCREV = "e278bc05cc937ecd1ee62bc6a058db3a21e66614" +SRCREV = "c717d21171bdc66b6370040dc95a6ce9036f4d40" CVE_PRODUCT = "py7zr"
PATCH 63/105 python3-pyais: upgrade 3.2.3 -> 3.3.1
In reply to Khem RajChanges:
- 3.3.1: malformed input now raises InvalidNMEAMessageException instead of arbitrary Python errors, so one bad line can no longer terminate UDPReceiver, TCPConnection or IterMessages. Stricter NMEA
validation: non-ASCII bytes, fill bits 0-5, fragment count/number ranges, tag block checksums.
- BREAKING-ish: multi-fragment messages are only assembled when fragments arrive in order starting at fragment 1; orphaned and out-of-order fragments are dropped.
- Fixed encode_dict() TypeError for truncated type 6, 8, 24 messages and encoding of non-byte-aligned or empty variable-length fields.
- 3.3.0/3.2.x: more type 6/8 application messages (DAC 1, DAC 367), faster decoding (also on PyPy), fixed messages spanning recv() calls, encoding CLI --talker split into --talker-id/--sentence-type.
AI-Generated: Uses Claude Code
---
.../python/{python3-pyais_3.2.3.bb => python3-pyais_3.3.1.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-pyais_3.2.3.bb => python3-pyais_3.3.1.bb} (93%)meta-python/recipes-devtools/python/python3-pyais_3.3.1.bb renamed from meta-python/recipes-devtools/python/python3-pyais_3.2.3.bb +1 -1
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=79d9e278b76e3e5b3358cd70b328173c" SRC_URI = "git://github.com/M0r13n/pyais;protocol=https;branch=main;tag=v${PV}" -SRCREV = "b44fdc6e0fd4ddb9e0afadab9c8ef87f475aa091" +SRCREV = "0d62ef7071f327824618d804141f31fee3e01e29" inherit python_setuptools_build_meta ptest-python-pytest
PATCH 64/105 python3-pycocotools: upgrade 2.0.8 -> 2.0.11
In reply to Khem RajDrop the numpy 1.x patch; numpy in OE is 2.x and upstream requires numpy>=2.0.0.
Changes:
- Support latest numpy (2.3+) and build abi3 wheels; Python 3.14 support; free-threaded 3.13t support dropped (2.0.11).
- matplotlib is no longer a required dependency by default.
- COCO.loadRes also copies the info dict to results; default value added for info.
- Musl wheel builds removed.
AI-Generated: Uses Claude Code
---
...01-downgrade-numpy-version-to-1.26.4.patch | 26 -------------------
...2.0.8.bb => python3-pycocotools_2.0.11.bb} | 3 +--
2 files changed, 1 insertion(+), 28 deletions(-)
delete mode 100644 meta-python/recipes-devtools/python/python3-pycocotools/0001-downgrade-numpy-version-to-1.26.4.patch
rename meta-python/recipes-devtools/python/{python3-pycocotools_2.0.8.bb => python3-pycocotools_2.0.11.bb} (76%)meta-python/recipes-devtools/python/python3-pycocotools/0001-downgrade-numpy-version-to-1.26.4.patch deleted +0 -26
@@ -1,26 +0,0 @@ -From 7222a8b9b6e05b89116ca14644aa8db79eecd3c6 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Sat, 24 Aug 2024 00:19:23 -0700 -Subject: [PATCH] downgrade numpy version to 1.26.4+ - -We can drop it when OE-core upgrades numpy to 2.x - -Upstream-Status: Inappropriate [OE workaround] -Signed-off-by: Khem Raj <[email protected]> ---- - pyproject.toml | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/pyproject.toml b/pyproject.toml -index 1bfbd91..cbee520 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -1,7 +1,7 @@ - [build-system] - requires = [ - "cython>=0.27.3", -- "numpy>=2.0.0rc1", -+ "numpy>=1.26.4", - "setuptools>=43.0.0", - "wheel", - ]
meta-python/recipes-devtools/python/python3-pycocotools_2.0.11.bb renamed from meta-python/recipes-devtools/python/python3-pycocotools_2.0.8.bb +1 -2
@@ -5,9 +5,8 @@ LIC_FILES_CHKSUM = "file://pycocotools/coco.py;beginline=45;endline=45;md5=12cb5 inherit pypi python_setuptools_build_meta cython -SRC_URI += "file://0001-downgrade-numpy-version-to-1.26.4.patch" -SRC_URI[sha256sum] = "8f2bcedb786ba26c367a3680f9c4eb5b2ad9dccb2b34eaeb205e0a021e1dfb8d" +SRC_URI[sha256sum] = "34254d76da85576fcaf5c1f3aa9aae16b8cb15418334ba4283b800796bd1993d" DEPENDS = "python3-numpy-native virtual/crypt python3-wheel-native" RDEPENDS:${PN} = "python3-matplotlib python3-pillow python3-profile"
PATCH 65/105 python3-pycurl: upgrade 7.48.0 -> 7.49.0
In reply to Khem RajLicense-Update: FSF address replaced by a URL in COPYING-LGPL.
Changes:
- Fix use-after-free when a mime part's content is replaced; object teardown made exception-safe (cleanup moved to tp_finalize for Curl, CurlMulti, CurlMime, CurlShare).
- Add SSH_HOSTKEYFUNCTION and other missing libcurl SSH constants; setopt accepts CurlShare subclasses.
- Build change: custom setup.py command line options removed in favor of their environment variable equivalents; wheels no longer install docs/examples; dev dependencies moved to PEP 735 groups.
AI-Generated: Uses Claude Code
---
.../{python3-pycurl_7.48.0.bb => python3-pycurl_7.49.0.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta-python/recipes-devtools/python/{python3-pycurl_7.48.0.bb => python3-pycurl_7.49.0.bb} (85%)meta-python/recipes-devtools/python/python3-pycurl_7.49.0.bb renamed from meta-python/recipes-devtools/python/python3-pycurl_7.48.0.bb +2 -2
@@ -8,11 +8,11 @@ SECTION = "devel/python" HOMEPAGE = "http://pycurl.io/" LICENSE = "LGPL-2.1-only OR MIT" -LIC_FILES_CHKSUM = "file://COPYING-LGPL;md5=4fbd65380cdd255951079008b364516c \ +LIC_FILES_CHKSUM = "file://COPYING-LGPL;md5=4bf661c1e3793e55c8d1051bc5e0ae21 \ file://COPYING-MIT;md5=be42e1b1e58c8d59c2901fd747bfc55d \ " -SRC_URI[sha256sum] = "b70961a76c412cd34f9cc2c9558e63f89fb37045c59eee396c585b52973be280" +SRC_URI[sha256sum] = "d4327da9dea72768f942f831bbaa5a64adca4d7c89f3141da7a833d3c600ab90" SRC_URI += " file://run-ptest"
PATCH 66/105 python3-pydantic-core: upgrade 2.50.1 -> 2.50.4
In reply to Khem RajRefresh the radium patch and regenerate the crates.
Changes:
- Security (pydantic 2.14.2, no CVE IDs yet): GHSA-qpmf-fgh3-ff25, validation bypass of extra data keys in JSON model validation; GHSA-3r8g-cqwr-jr29, bypass of aliased fields in TypedDict and dataclasses with extra=allow.
- Behavior change: JSON validation by iteration now handles field lookup and extra data like Python validation; keys matching only an unused alias or field name are treated as extra (extra=forbid now raises).
- Fixes: GC tracking issues, infinite recursion with PydanticUseDefault, recursion guard for validate_strings(), disallow non-string extra keys, deeply nested data wrongly reported as cyclic.
- Build: PyO3 bumped to 0.30.1, jiter 0.18.0, speedate 0.18.0; many serialization/validation performance improvements.
AI-Generated: Uses Claude Code
---
.../python/python3-pydantic-core-crates.inc | 56 ++++++++++---------
...toml-Update-bitvec-to-use-radium-1.x.patch | 16 ++----
...0.1.bb => python3-pydantic-core_2.50.4.bb} | 2 +-
3 files changed, 37 insertions(+), 37 deletions(-)
rename meta-python/recipes-devtools/python/{python3-pydantic-core_2.50.1.bb => python3-pydantic-core_2.50.4.bb} (95%)meta-python/recipes-devtools/python/python3-pydantic-core-crates.inc +30 -26
@@ -4,6 +4,7 @@ SRC_URI += " \ crate://crates.io/ahash/0.8.12 \ crate://crates.io/aho-corasick/1.1.3 \ + crate://crates.io/arrayvec/0.7.8 \ crate://crates.io/autocfg/1.3.0 \ crate://crates.io/base64/0.23.1 \ crate://crates.io/bitflags/2.9.1 \
@@ -12,6 +13,7 @@ SRC_URI += " \ crate://crates.io/cfg-if/1.0.0 \ crate://crates.io/displaydoc/0.2.5 \ crate://crates.io/enum_dispatch/0.3.13 \ + crate://crates.io/equivalent/1.0.3 \ crate://crates.io/foldhash/0.2.0 \ crate://crates.io/form_urlencoded/1.2.2 \ crate://crates.io/funty/2.0.0 \
@@ -31,12 +33,13 @@ SRC_URI += " \ crate://crates.io/icu_provider_macros/1.5.0 \ crate://crates.io/idna/1.1.0 \ crate://crates.io/idna_adapter/1.2.0 \ + crate://crates.io/indexmap/2.14.0 \ crate://crates.io/itoa/1.0.11 \ - crate://crates.io/jiter/0.16.0 \ + crate://crates.io/jiter/0.18.0 \ crate://crates.io/js-sys/0.3.77 \ - crate://crates.io/lexical-parse-float/1.0.5 \ - crate://crates.io/lexical-parse-integer/1.0.5 \ - crate://crates.io/lexical-util/1.0.6 \ + crate://crates.io/lexical-parse-float/1.0.6 \ + crate://crates.io/lexical-parse-integer/1.0.6 \ + crate://crates.io/lexical-util/1.0.7 \ crate://crates.io/libc/0.2.185 \ crate://crates.io/litemap/0.7.3 \ crate://crates.io/log/0.4.27 \
@@ -49,11 +52,11 @@ SRC_URI += " \ crate://crates.io/percent-encoding/2.3.2 \ crate://crates.io/portable-atomic/1.6.0 \ crate://crates.io/proc-macro2/1.0.107 \ - crate://crates.io/pyo3/0.29.2 \ - crate://crates.io/pyo3-build-config/0.29.2 \ - crate://crates.io/pyo3-ffi/0.29.2 \ - crate://crates.io/pyo3-macros/0.29.2 \ - crate://crates.io/pyo3-macros-backend/0.29.2 \ + crate://crates.io/pyo3/0.30.1 \ + crate://crates.io/pyo3-build-config/0.30.1 \ + crate://crates.io/pyo3-ffi/0.30.1 \ + crate://crates.io/pyo3-macros/0.30.1 \ + crate://crates.io/pyo3-macros-backend/0.30.1 \ crate://crates.io/quote/1.0.44 \ crate://crates.io/r-efi/5.2.0 \ crate://crates.io/radium/1.1.0 \
@@ -65,11 +68,10 @@ SRC_URI += " \ crate://crates.io/serde_derive/1.0.229 \ crate://crates.io/serde_json/1.0.151 \ crate://crates.io/smallvec/1.16.2 \ - crate://crates.io/speedate/0.17.0 \ + crate://crates.io/speedate/0.18.0 \ crate://crates.io/stable_deref_trait/1.2.0 \ - crate://crates.io/static_assertions/1.1.0 \ - crate://crates.io/strum/0.27.2 \ - crate://crates.io/strum_macros/0.27.2 \ + crate://crates.io/strum/0.28.0 \ + crate://crates.io/strum_macros/0.28.0 \ crate://crates.io/syn/2.0.82 \ crate://crates.io/syn/3.0.6 \ crate://crates.io/synstructure/0.13.1 \
@@ -105,6 +107,7 @@ SRC_URI += " \ SRC_URI[ahash-0.8.12.sha256sum] = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" SRC_URI[aho-corasick-1.1.3.sha256sum] = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" +SRC_URI[arrayvec-0.7.8.sha256sum] = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56" SRC_URI[autocfg-1.3.0.sha256sum] = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" SRC_URI[base64-0.23.1.sha256sum] = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5" SRC_URI[bitflags-2.9.1.sha256sum] = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967"
@@ -113,6 +116,7 @@ SRC_URI[bumpalo-3.19.0.sha256sum] = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a6 SRC_URI[cfg-if-1.0.0.sha256sum] = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" SRC_URI[displaydoc-0.2.5.sha256sum] = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" SRC_URI[enum_dispatch-0.3.13.sha256sum] = "aa18ce2bc66555b3218614519ac839ddb759a7d6720732f979ef8d13be147ecd" +SRC_URI[equivalent-1.0.3.sha256sum] = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826" SRC_URI[foldhash-0.2.0.sha256sum] = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" SRC_URI[form_urlencoded-1.2.2.sha256sum] = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" SRC_URI[funty-2.0.0.sha256sum] = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c"
@@ -132,12 +136,13 @@ SRC_URI[icu_provider-1.5.0.sha256sum] = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42 SRC_URI[icu_provider_macros-1.5.0.sha256sum] = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" SRC_URI[idna-1.1.0.sha256sum] = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" SRC_URI[idna_adapter-1.2.0.sha256sum] = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71" +SRC_URI[indexmap-2.14.0.sha256sum] = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9" SRC_URI[itoa-1.0.11.sha256sum] = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" -SRC_URI[jiter-0.16.0.sha256sum] = "820ddcacd75c9782308d3fa594f3885630ea3f49adba78a8a29abdfe4b81630c" +SRC_URI[jiter-0.18.0.sha256sum] = "49e31424b61d85292bd805dbf643c3ccc44f5f3871fb751209b889ee70585029" SRC_URI[js-sys-0.3.77.sha256sum] = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f" -SRC_URI[lexical-parse-float-1.0.5.sha256sum] = "de6f9cb01fb0b08060209a057c048fcbab8717b4c1ecd2eac66ebfe39a65b0f2" -SRC_URI[lexical-parse-integer-1.0.5.sha256sum] = "72207aae22fc0a121ba7b6d479e42cbfea549af1479c3f3a4f12c70dd66df12e" -SRC_URI[lexical-util-1.0.6.sha256sum] = "5a82e24bf537fd24c177ffbbdc6ebcc8d54732c35b50a3f28cc3f4e4c949a0b3" +SRC_URI[lexical-parse-float-1.0.6.sha256sum] = "52a9f232fbd6f550bc0137dcb5f99ab674071ac2d690ac69704593cb4abbea56" +SRC_URI[lexical-parse-integer-1.0.6.sha256sum] = "9a7a039f8fb9c19c996cd7b2fcce303c1b2874fe1aca544edc85c4a5f8489b34" +SRC_URI[lexical-util-1.0.7.sha256sum] = "2604dd126bb14f13fb5d1bd6a66155079cb9fa655b37f875b3a742c705dbed17" SRC_URI[libc-0.2.185.sha256sum] = "52ff2c0fe9bc6cb6b14a0592c2ff4fa9ceb83eea9db979b0487cd054946a2b8f" SRC_URI[litemap-0.7.3.sha256sum] = "643cb0b8d4fcc284004d5fd0d67ccf61dfffadb7f75e1e71bc420f4688a3a704" SRC_URI[log-0.4.27.sha256sum] = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94"
@@ -150,11 +155,11 @@ SRC_URI[once_cell-1.21.3.sha256sum] = "42f5e15c9953c5e4ccceeb2e7382a716482c34515 SRC_URI[percent-encoding-2.3.2.sha256sum] = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" SRC_URI[portable-atomic-1.6.0.sha256sum] = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0" SRC_URI[proc-macro2-1.0.107.sha256sum] = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" -SRC_URI[pyo3-0.29.2.sha256sum] = "4688ddedf473e32662b9b067670129a8afb8c18e351482c70d62ba4a88171e8b" -SRC_URI[pyo3-build-config-0.29.2.sha256sum] = "f41027e41b4bd03f6e60f9f417fe24a6341a6bb744edd62b6f709f2a52ea30e9" -SRC_URI[pyo3-ffi-0.29.2.sha256sum] = "e591a95526fead067432c3b3a33fc74770b87b1e04e73671090d9c2055a2b327" -SRC_URI[pyo3-macros-0.29.2.sha256sum] = "73225868fc1cd84eef2c3c230ddb91273bf1de46aeb8a4248da76d32a0924a1c" -SRC_URI[pyo3-macros-backend-0.29.2.sha256sum] = "571575aa3749fa6216757dd47d2a3e7ef360f329a40f0666a9fbd14889024952" +SRC_URI[pyo3-0.30.1.sha256sum] = "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4" +SRC_URI[pyo3-build-config-0.30.1.sha256sum] = "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700" +SRC_URI[pyo3-ffi-0.30.1.sha256sum] = "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4" +SRC_URI[pyo3-macros-0.30.1.sha256sum] = "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60" +SRC_URI[pyo3-macros-backend-0.30.1.sha256sum] = "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b" SRC_URI[quote-1.0.44.sha256sum] = "21b2ebcf727b7760c461f091f9f0f539b77b8e87f2fd88131e7f1b433b3cece4" SRC_URI[r-efi-5.2.0.sha256sum] = "74765f6d916ee2faa39bc8e68e4f3ed8949b48cccdac59983d287a7cb71ce9c5" SRC_URI[radium-1.1.0.sha256sum] = "db0b76288902db304c864a12046b73d2d895cc34a4bb8137baaeebe9978a072c"
@@ -166,11 +171,10 @@ SRC_URI[serde_core-1.0.229.sha256sum] = "67dca2c9c51e58a4791a4b1ed58308b39c64224 SRC_URI[serde_derive-1.0.229.sha256sum] = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" SRC_URI[serde_json-1.0.151.sha256sum] = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14" SRC_URI[smallvec-1.16.2.sha256sum] = "f9395f0f0eee849a9b707b2f06bb92a6a422090e2123bb2ef8e87a0e61892a8e" -SRC_URI[speedate-0.17.0.sha256sum] = "aba069c070b5e213f2a094deb7e5ed50ecb092be36102a4f4042e8d2056d060e" +SRC_URI[speedate-0.18.0.sha256sum] = "da8f8c5f7f7ea2811a17f99bca4fec7f9ef0b0734713a5cbfc9baee203eba8eb" SRC_URI[stable_deref_trait-1.2.0.sha256sum] = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" -SRC_URI[static_assertions-1.1.0.sha256sum] = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" -SRC_URI[strum-0.27.2.sha256sum] = "af23d6f6c1a224baef9d3f61e287d2761385a5b88fdab4eb4c6f11aeb54c4bcf" -SRC_URI[strum_macros-0.27.2.sha256sum] = "7695ce3845ea4b33927c055a39dc438a45b059f7c1b3d91d38d10355fb8cbca7" +SRC_URI[strum-0.28.0.sha256sum] = "9628de9b8791db39ceda2b119bbe13134770b56c138ec1d3af810d045c04f9bd" +SRC_URI[strum_macros-0.28.0.sha256sum] = "ab85eea0270ee17587ed4156089e10b9e6880ee688791d45a905f5b1ca36f664" SRC_URI[syn-2.0.82.sha256sum] = "83540f837a8afc019423a8edb95b52a8effe46957ee402287f4292fae35be021" SRC_URI[syn-3.0.6.sha256sum] = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee" SRC_URI[synstructure-0.13.1.sha256sum] = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971"
meta-python/recipes-devtools/python/python3-pydantic-core/0001-cargo.toml-Update-bitvec-to-use-radium-1.x.patch +6 -10
@@ -8,15 +8,13 @@ Upstream-Status: Submitted [https://github.com/ferrilab/bitvec/pull/220] Signed-off-by: Khem Raj <[email protected]> Signed-off-by: Leon Anavi <[email protected]> --- - Cargo.lock | 10 +++++++--- - Cargo.toml | 2 ++ + Cargo.lock | 10 +++++++--- + Cargo.toml | 2 ++ 2 files changed, 9 insertions(+), 3 deletions(-) -diff --git a/Cargo.lock b/Cargo.lock -index 094919f..c33228f 100644 --- a/Cargo.lock +++ b/Cargo.lock -@@ -49,7 +49,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" +@@ -55,7 +55,7 @@ source = "registry+https://github.com/ru checksum = "1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c" dependencies = [ "funty",
@@ -25,7 +23,7 @@ index 094919f..c33228f 100644 "tap", "wyz", ] -@@ -449,6 +449,7 @@ dependencies = [ +@@ -467,6 +467,7 @@ dependencies = [ "percent-encoding", "pyo3", "pyo3-build-config",
@@ -33,7 +31,7 @@ index 094919f..c33228f 100644 "regex", "serde", "serde_json", -@@ -538,9 +539,12 @@ checksum = "74765f6d916ee2faa39bc8e68e4f3ed8949b48cccdac59983d287a7cb71ce9c5" +@@ -556,9 +557,12 @@ checksum = "74765f6d916ee2faa39bc8e68e4f [[package]] name = "radium"
@@ -48,8 +46,6 @@ index 094919f..c33228f 100644 [[package]] name = "regex" -diff --git a/Cargo.toml b/Cargo.toml -index 0d1d5a4..d3da0ac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,6 +25,8 @@ include = [
@@ -60,4 +56,4 @@ index 0d1d5a4..d3da0ac 100644 +radium = "1" # TODO it would be very nice to remove the "py-clone" feature as it can panic, # but needs a bit of work to make sure it's not used in the codebase - pyo3 = { version = "0.29.2", features = ["num-bigint", "py-clone", "smallvec"] } + pyo3 = { version = "0.30.1", features = ["num-bigint", "py-clone", "smallvec"] }
meta-python/recipes-devtools/python/python3-pydantic-core_2.50.4.bb renamed from meta-python/recipes-devtools/python/python3-pydantic-core_2.50.1.bb +1 -1
@@ -13,7 +13,7 @@ require ${BPN}-crates.inc SRC_URI += "file://0001-Upgrade-radium-to-1.0.patch;patchdir=${UNPACKDIR}/cargo_home/bitbake/bitvec-1.0.1/" SRC_URI += "file://atomic.patch;patchdir=${UNPACKDIR}/cargo_home/bitbake/radium-1.1.0/" SRC_URI += "file://0001-cargo.toml-Update-bitvec-to-use-radium-1.x.patch" -SRC_URI[sha256sum] = "e50d7b94baac6c7d09927fa5ca5800a0c7ee5015c7fcff65beb3a1931b5a6e09" +SRC_URI[sha256sum] = "aead3b74b68396bf0feab5d57e050b730ded7df55853c1e048a87e00aaf033c6" DEPENDS = "python3-maturin-native python3-typing-extensions"
PATCH 67/105 python3-pydantic: upgrade 2.14.1 -> 2.14.3
In reply to Khem RajUpgrade together with python3-pydantic-core 2.50.4.
Changes:
- 2.14.2 security: validation bypass of extra data keys in JSON model validation (GHSA-qpmf-fgh3-ff25) and of aliased fields in TypedDict and dataclasses with extra=allow (GHSA-3r8g-cqwr-jr29). No CVE ID is listed in the advisories.
- Behavior change: JSON validation now does field lookup like Python validation; keys matching only an unused alias or field name are treated as extra data (ValidationError with extra='forbid').
- 2.14.3: non-string extra keys disallowed during validation.
- Packaging: PyO3 0.30.1, jiter 0.18.0, speedate 0.18.0; PyPy 8.0 and GraalPy 3.13 wheels (GraalPy 3.11 wheels were broken in 2.14.2).
- Many fixes (generics, pickling, deepcopy, recursion guards) and serialization/schema generation performance improvements.
AI-Generated: Uses Claude Code
---
.../{python3-pydantic_2.14.1.bb => python3-pydantic_2.14.3.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-pydantic_2.14.1.bb => python3-pydantic_2.14.3.bb} (98%)meta-python/recipes-devtools/python/python3-pydantic_2.14.3.bb renamed from meta-python/recipes-devtools/python/python3-pydantic_2.14.1.bb +1 -1
@@ -11,7 +11,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=09280955509d1c4ca14bae02f21d49a6" inherit python_hatchling ptest-python-pytest -SRCREV = "b2212c787fb5c73386dc770681ec49cd09da8e73" +SRCREV = "ea492e04654ab7f7a1f9287ea912419452ead4dd" SRC_URI = "git://github.com/pydantic/pydantic;protocol=https;branch=v${@oe.utils.trim_version('${PV}', 2)}-fixes;tag=v${PV}" DEPENDS += "python3-hatch-fancy-pypi-readme-native"
PATCH 68/105 python3-pyee: upgrade 16.0.0 -> 16.1.0
In reply to Khem RajUpstream moved from setuptools to hatchling; inherit python_hatchling.
Changes:
- 16.1.0: build backend switched from setuptools to hatchling.
- Modernized type annotations; the exported Handler TypeVar was removed.
- 16.0.2: Python 3.15 support; Trio nursery/context cleanup fixes.
- 16.0.1: AsyncIOEventEmitter emits falsey errors; pyee.cls decorators only use handlers of the decorated class.
AI-Generated: Uses Claude Code
---
.../python/{python3-pyee_16.0.0.bb => python3-pyee_16.1.0.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta-python/recipes-devtools/python/{python3-pyee_16.0.0.bb => python3-pyee_16.1.0.bb} (67%)meta-python/recipes-devtools/python/python3-pyee_16.1.0.bb renamed from meta-python/recipes-devtools/python/python3-pyee_16.0.0.bb +2 -2
@@ -3,9 +3,9 @@ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=b2b1cc8797dff32cec5d783148fceab5" DEPENDS = "python3-setuptools-scm-native" -SRC_URI[sha256sum] = "34de6fbc4d8f0880bb997efd0eb642ba01f02688e740cbd3aa3bee9db4b1c5ec" +SRC_URI[sha256sum] = "fe092d3a2a66f0f6a277fb227b078d3d849318da9a9d5d2f6576143236e84e48" -inherit pypi python_setuptools_build_meta ptest-python-pytest +inherit pypi python_hatchling ptest-python-pytest DEPENDS += "python3-wheel-native"
PATCH 69/105 python3-pykickstart: upgrade 3.69 -> 3.78
In reply to Khem RajChanges:
- Added Stratis storage support (autopart, manual partitioning commands) and RHEL 11 handler; Fedora 46 support.
- New --type option for the %certificate section; bootc command gained bootloader and composefs arguments.
- Removed commands for newer releases: vnc, nvdimm and module removed in F45; RHEL 11 handlers updated for removed commands.
- Fixed handling of files with special characters; spec no longer depends on pytest-cov/pytest-xdist on RHEL.
AI-Generated: Uses Claude Code
---
...{python3-pykickstart_3.69.bb => python3-pykickstart_3.78.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-extended/python-pykickstart/{python3-pykickstart_3.69.bb => python3-pykickstart_3.78.bb} (96%)meta-python/recipes-extended/python-pykickstart/python3-pykickstart_3.78.bb renamed from meta-python/recipes-extended/python-pykickstart/python3-pykickstart_3.69.bb +1 -1
@@ -32,7 +32,7 @@ SRC_URI = "git://github.com/rhinstaller/pykickstart.git;protocol=https;branch=ma file://0004-load.py-retry-to-invoke-request-with-timeout.patch \ file://run-ptest \ " -SRCREV = "601ec2d2f254909f56e2ee961d2056e0d5bc4a97" +SRCREV = "bca9c4b34ce2f00b582ddab2b8c948a8d45f3376" UPSTREAM_CHECK_GITTAGREGEX = "r(?P<pver>\d+(\.\d+)+(-\d+)*)"
PATCH 70/105 python3-pylint: upgrade 4.1.3 -> 4.1.4
In reply to Khem RajChanges:
- Bug-fix release; astroid requirement unchanged (>=4.3.4,<=4.4).
- False positives fixed: using-constant-test (unknown decorators), dict-init-mutate, unreachable (sys.exit in lambda), used-before- assignment (class bodies), undefined-variable (walrus in multi-line comprehension), method-hidden, bad-dunder-name (__prepare__, __mro_entries__, __buffer__, __release_buffer__, __replace__).
- Pyreverse reports a clear error for an unknown --class; fixed a crash when linting packages under an implicit namespace package.
AI-Generated: Uses Claude Code
---
.../python/{python3-pylint_4.1.3.bb => python3-pylint_4.1.4.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-pylint_4.1.3.bb => python3-pylint_4.1.4.bb} (97%)meta-python/recipes-devtools/python/python3-pylint_4.1.4.bb renamed from meta-python/recipes-devtools/python/python3-pylint_4.1.3.bb +1 -1
@@ -3,7 +3,7 @@ HOMEPAGE = "https://www.pylint.org/" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://LICENSE;md5=c107cf754550e65755c42985a5d4e9c9" -SRCREV = "e75de10c69103381c875601f638d4b977ff0fcaf" +SRCREV = "edc8e376ba4affd43bc07571bdf3a90efc281ba7" SRC_URI += "git://github.com/pylint-dev/pylint;branch=main;protocol=https;tag=v${PV} \ file://0001-Adjust-test-expectations-for-ptest.patch \ file://run-ptest \
PATCH 71/105 python3-pymetno: upgrade 0.13.0 -> 0.14.0
In reply to Khem RajChanges:
- Locationforecast fetching now respects MET cache deadlines (Expires, Last-Modified, minimum 3 h fetch interval) with conditional requests and bounded retry/backoff, as required by the MET API.
- New typed exceptions: MetNoError, MetNoHttpError, MetNoPayloadError, MetNoTimeoutError, MetNoTransportError; fetch now returns strict success status and handles deprecated MET responses.
- Forecast values, timestamps and ordering are validated; cached current weather advances in time. Dependencies unchanged.
AI-Generated: Uses Claude Code
---
.../{python3-pymetno_0.13.0.bb => python3-pymetno_0.14.0.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-pymetno_0.13.0.bb => python3-pymetno_0.14.0.bb} (88%)meta-python/recipes-devtools/python/python3-pymetno_0.14.0.bb renamed from meta-python/recipes-devtools/python/python3-pymetno_0.13.0.bb +1 -1
@@ -4,7 +4,7 @@ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=5d503272f52c35147ec960cb56a03bf4" SRC_URI = "git://github.com/Danielhiversen/pyMetno.git;protocol=https;branch=master" -SRCREV = "921812ddad3f147489916c3c7ab7fb7a80d8c646" +SRCREV = "205f93adf2f29fe0354bc4fca432e3d3ee67f1c2" inherit setuptools3
PATCH 72/105 python3-pymongo: upgrade 4.19.0 -> 4.20.0
In reply to Khem RajChanges:
- Breaking: removed beta QueryType.PREFIXPREVIEW, SUFFIXPREVIEW and SUBSTRINGPREVIEW (use PREFIX/SUFFIX/SUBSTRING, needs MongoDB 9.0+ and pymongocrypt 1.21.0+); removed the text_opts parameter and TextOpts class (use string_opts/StringOpts).
- Client handshake metadata reports a detected coding agent.
- Fix C and pure-Python BSON decoders disagreeing on UUID subtype binaries with non-16-byte payload.
- Fix MongoClient(maxPoolSize=0, minPoolSize>0) raising ValueError.
- ObjectId now rejects 24-char strings containing whitespace.
- Disable TLS session reuse on Python 3.11 (CPython memory leak).
AI-Generated: Uses Claude Code
---
.../{python3-pymongo_4.19.0.bb => python3-pymongo_4.20.0.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-pymongo_4.19.0.bb => python3-pymongo_4.20.0.bb} (92%)meta-python/recipes-devtools/python/python3-pymongo_4.20.0.bb renamed from meta-python/recipes-devtools/python/python3-pymongo_4.19.0.bb +1 -1
@@ -8,7 +8,7 @@ HOMEPAGE = "https://github.com/mongodb/mongo-python-driver" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" -SRC_URI[sha256sum] = "3c510dd3c5d9b392d3b33bb5d2a594758acfe8f026fca654253f947ce0af9d40" +SRC_URI[sha256sum] = "f773b0aec28687587cdeda490463a82debc4566a4a3620dcc8dada9d2c0a1acd" CVE_PRODUCT = "mongodb:python_driver mongodb:pymongo"
PATCH 73/105 python3-pyproject-api: upgrade 1.12.0 -> 1.12.5
In reply to Khem RajAdd hatch-fancy-pypi-readme to DEPENDS, now required by the build.
Changes:
- 1.12.5: ensure_empty_dir replaces a symlink instead of following it (a link to a directory no longer has its target emptied); propagate filesystem errors when clearing nested metadata directories.
- 1.12.3: clear stale files from reused .dist-info directories.
- 1.12.2: backend fixes (trailing space in PYTHONPATH, BackendFailed pickling, non-representable stdout paths, stop backend process on interrupt).
AI-Generated: Uses Claude Code
---
...pyproject-api_1.12.0.bb => python3-pyproject-api_1.12.5.bb} | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-pyproject-api_1.12.0.bb => python3-pyproject-api_1.12.5.bb} (79%)meta-python/recipes-devtools/python/python3-pyproject-api_1.12.5.bb renamed from meta-python/recipes-devtools/python/python3-pyproject-api_1.12.0.bb +2 -1
@@ -6,12 +6,13 @@ HOMEPAGE = "https://pyproject-api.readthedocs.io" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=11610a9d8fd95649cf8159be12b98cb7" -SRC_URI[sha256sum] = "2e83226079dc446a8e2357def7622c01c733284e39afc8e332d9f722fe0c2beb" +SRC_URI[sha256sum] = "0795693708f631af4c665ab02a315edc0fb97471f1d52e4a6179ed60504e96bb" BBCLASSEXTEND = "native nativesdk" inherit pypi python_hatchling DEPENDS += "\ + python3-hatch-fancy-pypi-readme-native \ python3-hatch-vcs-native \ "
PATCH 74/105 python3-pytest-env: upgrade 1.8.1 -> 1.8.5
In reply to Khem RajAdd hatch-fancy-pypi-readme to DEPENDS, now required by the build.
Changes:
- 1.8.4: honor an empty native TOML environment section over INI "env" settings.
- 1.8.2: package metadata and PyPI link fixes.
- 1.8.3 and 1.8.5: no functional changes noted upstream.
AI-Generated: Uses Claude Code
---
...ython3-pytest-env_1.8.1.bb => python3-pytest-env_1.8.5.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta-python/recipes-devtools/python/{python3-pytest-env_1.8.1.bb => python3-pytest-env_1.8.5.bb} (72%)meta-python/recipes-devtools/python/python3-pytest-env_1.8.5.bb renamed from meta-python/recipes-devtools/python/python3-pytest-env_1.8.1.bb +2 -2
@@ -4,8 +4,8 @@ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=b70ef84b3d8d608b13b0287ed49df651" RECIPE_MAINTAINER = "Tom Geelen <[email protected]>" -DEPENDS = "python3-hatch-vcs-native python3-hatchling-native" -SRC_URI[sha256sum] = "996f86ad78b6c7b5335e0d493f9e9ecd3e421174e056742856f91da439e1cbd9" +DEPENDS = "python3-hatch-fancy-pypi-readme-native python3-hatch-vcs-native python3-hatchling-native" +SRC_URI[sha256sum] = "992c37efdc1bde2f0783975080ac4cdcea85f36df9d6fe3a835edd01a7e06584" inherit pypi python_hatchling ptest-python-pytest
PATCH 75/105 python3-pytest-lazy-fixtures: upgrade 1.1.4 -> 1.4.1
In reply to Khem RajUpstream moved from poetry-core to hatchling; inherit python_hatchling.
Changes:
- 1.4.0: add support for implicit lazy fixture injection.
- 1.3.0: add pytest-deadfixtures support.
- Fixes: nested fixtures collection, collect_fixtures, replacing the same object, fixture classes, NameError on Python 3.14 for TYPE_CHECKING-only annotations.
- Project migrated to uv (1.2.0).
AI-Generated: Uses Claude Code
---
...ixtures_1.1.4.bb => python3-pytest-lazy-fixtures_1.4.1.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta-python/recipes-devtools/python/{python3-pytest-lazy-fixtures_1.1.4.bb => python3-pytest-lazy-fixtures_1.4.1.bb} (82%)meta-python/recipes-devtools/python/python3-pytest-lazy-fixtures_1.4.1.bb renamed from meta-python/recipes-devtools/python/python3-pytest-lazy-fixtures_1.1.4.bb +2 -2
@@ -12,8 +12,8 @@ HOMEPAGE = "https://github.com/dev-petrov/pytest-lazy-fixtures" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=4475e66fcfabe27395e6764c8f69c876" -SRC_URI[sha256sum] = "c494b52d798890033d64b28687a4d52807c8b0f606d56316e139df0cbe116c57" +SRC_URI[sha256sum] = "8684abfd4914ea01f1e2f7b24524739344421d8f3f12286fb3100fb5681e1181" -inherit pypi python_poetry_core +inherit pypi python_hatchling RDEPENDS:${PN} = "python3-pytest"
PATCH 76/105 python3-pytest-localserver: upgrade 0.8.1 -> 0.10.0.post0
In reply to Khem RajChanges:
- 0.9.0: expose the server certificate; request data stored explicitly.
- 0.9.0.post0: minimum pytest raised to 4.6, maximum raised to 9.
- 0.10.0: drop Python 3.6, add Python 3.14, license metadata per PEP 639, PyTest command removed from setup.py.
- 0.10.0.post0: Python 3.15 and recent PyPy support; no functional changes.
AI-Generated: Uses Claude Code
---
...ver_0.8.1.bb => python3-pytest-localserver_0.10.0.post0.bb} | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
rename meta-python/recipes-devtools/python/{python3-pytest-localserver_0.8.1.bb => python3-pytest-localserver_0.10.0.post0.bb} (76%)meta-python/recipes-devtools/python/python3-pytest-localserver_0.10.0.post0.bb renamed from meta-python/recipes-devtools/python/python3-pytest-localserver_0.8.1.bb +1 -2
@@ -7,9 +7,8 @@ DEPENDS += "python3-setuptools-scm-native" inherit pypi python_setuptools_build_meta ptest-python-pytest -PYPI_PACKAGE_SDIST = "pytest-localserver" -SRC_URI[sha256sum] = "66569c34fef31a5750b16effd1cd1288a7a90b59155d005e7f916accd3dee4f1" +SRC_URI[sha256sum] = "06c21a66609d862b42bd9cb816334820e696ea8f77cacddfe159127d48649851" RDEPENDS:${PN}-ptest += " \ python3-requests \
PATCH 77/105 python3-python-dotenv: upgrade 1.2.1 -> 1.2.4
In reply to Khem RajDrop the root skip patch; upstream skips the permission test as root now and removed the other test.
Changes:
- Breaking (1.2.2): set_key/unset_key and the CLI set/unset no longer follow symlinks unless follow_symlinks=True; the original file mode is preserved instead of being reset to 0600. Python 3.9 dropped.
- 1.2.2: Python 3.14 (incl. free-threaded) support; dotenv run forwards flags to the command.
- 1.2.3: strip leading UTF-8 BOM; set_key escapes backslashes; friendly error for dotenv run without a command.
- 1.2.4: dotenv get no longer exits 1 for empty values; fix parsing of empty unquoted value followed by comment; dotenv run --no-override expansion precedence fixed.
AI-Generated: Uses Claude Code
---
...y-skip-two-test-when-running-as-root.patch | 39 -------------------
....2.1.bb => python3-python-dotenv_1.2.4.bb} | 3 +-
2 files changed, 1 insertion(+), 41 deletions(-)
delete mode 100644 meta-python/recipes-devtools/python/python3-python-dotenv/0001-test_main.py-skip-two-test-when-running-as-root.patch
rename meta-python/recipes-devtools/python/{python3-python-dotenv_1.2.1.bb => python3-python-dotenv_1.2.4.bb} (79%)meta-python/recipes-devtools/python/python3-python-dotenv/0001-test_main.py-skip-two-test-when-running-as-root.patch deleted +0 -39
@@ -1,39 +0,0 @@ -From 68e4f05ece6b20e8a7d914d047185483373db759 Mon Sep 17 00:00:00 2001 -From: Jan Vermaete <[email protected]> -Date: Mon, 10 Nov 2025 18:04:27 +0100 -Subject: [PATCH 1/1] test_main.py: skip two test when running as root - -Upstream-Status: Inappropriate [oe-specific] - -The patch will only work for Linux and not for Windows. -And it's not common to run the tests of a Python module as root in the -not Yocto world. - -Signed-off-by: Jan Vermaete <[email protected]> ---- - tests/test_main.py | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/tests/test_main.py b/tests/test_main.py -index 4496111..182bc33 100644 ---- a/tests/test_main.py -+++ b/tests/test_main.py -@@ -61,6 +61,7 @@ def test_set_key_encoding(dotenv_path): - assert dotenv_path.read_text(encoding=encoding) == "a='é'\n" - - [email protected](os.geteuid() == 0, reason="Skipping becuase user is root") - def test_set_key_permission_error(dotenv_path): - dotenv_path.chmod(0o000) - -@@ -167,6 +168,7 @@ def test_unset_encoding(dotenv_path): - assert dotenv_path.read_text(encoding=encoding) == "" - - [email protected](os.geteuid() == 0, reason="Skipping becuase user is root") - def test_set_key_unauthorized_file(dotenv_path): - dotenv_path.chmod(0o000) - --- -2.47.3 -
meta-python/recipes-devtools/python/python3-python-dotenv_1.2.4.bb renamed from meta-python/recipes-devtools/python/python3-python-dotenv_1.2.1.bb +1 -2
@@ -4,9 +4,8 @@ LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=e914cdb773ae44a732b392532d88f072" RECIPE_MAINTAINER = "Tom Geelen <[email protected]>" -SRC_URI[sha256sum] = "42667e897e16ab0d66954af0e60a9caa94f0fd4ecf3aaf6d2d260eec1aa36ad6" +SRC_URI[sha256sum] = "f0d53e69935a851c0dcc78f3ab7aaccd8cabef0b92382b576b824212902873c0" -SRC_URI += "file://0001-test_main.py-skip-two-test-when-running-as-root.patch" inherit pypi python_setuptools_build_meta ptest-python-pytest
PATCH 78/105 python3-pytun: upgrade 2.4.1 -> 2.4.2
In reply to Khem Raj2.4.2 is only published as wheels on PyPI; fetch the tagged release from GitHub instead.
Changes:
- 2.4.2: CI/wheel build updates only (cp312, cp314, cp315 builds, cibuildwheel smoke test, removed older Python builds); typo fix. No functional changes.
AI-Generated: Uses Claude Code
---
.../{python3-pytun_2.4.1.bb => python3-pytun_2.4.2.bb} | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
rename meta-python/recipes-connectivity/python3-pytun/{python3-pytun_2.4.1.bb => python3-pytun_2.4.2.bb} (55%)meta-python/recipes-connectivity/python3-pytun/python3-pytun_2.4.2.bb renamed from meta-python/recipes-connectivity/python3-pytun/python3-pytun_2.4.1.bb +2 -1
@@ -2,7 +2,8 @@ SUMMARY = "Python TUN/TAP tunnel module" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=13f7629e8e4989b66b4a913ab05a91de" -SRC_URI[sha256sum] = "20b53ea7a09dfe173c00ec0a00eea508b05e959f5dc4b4bb698aa52252192f8f" +SRCREV = "7bb880635689a751429ff8f219e39b0b712485bf" +PYPI_SRC_URI = "git://github.com/montag451/pytun;protocol=https;branch=master;tag=v${PV};destsuffix=${PYPI_PACKAGE_SDIST}-${PV}" PYPI_PACKAGE = "python-pytun" PYPI_PACKAGE_SDIST = "python-pytun"
PATCH 79/105 python3-pyudev: upgrade 0.24.4 -> 0.24.5
In reply to Khem RajDrop the setup.py version hack; upstream dropped setup.py.
Changes:
- Breaking: require at least Python 3.10; Python 2 leftovers and PyQt4 support removed.
- Project metadata now exclusively in pyproject.toml.
- Use the returned error code for udev_monitor functions.
- Docs: clarify binary nature of sysfs attributes.
AI-Generated: Uses Claude Code
---
.../{python3-pyudev_0.24.4.bb => python3-pyudev_0.24.5.bb} | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
rename meta-python/recipes-devtools/python/{python3-pyudev_0.24.4.bb => python3-pyudev_0.24.5.bb} (57%)meta-python/recipes-devtools/python/python3-pyudev_0.24.5.bb renamed from meta-python/recipes-devtools/python/python3-pyudev_0.24.4.bb +1 -6
@@ -3,15 +3,10 @@ SUMMARY = "A libudev binding" LICENSE = "LGPL-2.1-or-later" LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343" -SRC_URI[sha256sum] = "e788bb983700b1a84efc2e88862b0a51af2a995d5b86bc9997546505cf7b36bc" +SRC_URI[sha256sum] = "4e7faaec419b81a902d057568101819f448972c0cf448bb9c22203e4fc6a8eb9" inherit pypi python_setuptools_build_meta -do_configure:prepend() { - sed -i "/import pyudev/d" ${S}/setup.py - sed -i "s/str(pyudev.__version__)/'${PV}'/g" ${S}/setup.py -} - RDEPENDS:${PN} = "\ python3-ctypes \ python3-misc \
PATCH 80/105 python3-pyzmq: upgrade 27.2.0 -> 27.3.0
In reply to Khem RajChanges:
- Fix default compiler flags for bundled libsodium/libzmq in wheels on mac and linux, greatly improving CURVE performance.
- More type coverage.
- Wheel changes: PyPy 3.12 wheels added, i686 wheels target manylinux_2_28, PyPy wheels target pp80.
AI-Generated: Uses Claude Code
---
.../python/{python3-pyzmq_27.2.0.bb => python3-pyzmq_27.3.0.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-pyzmq_27.2.0.bb => python3-pyzmq_27.3.0.bb} (96%)meta-python/recipes-devtools/python/python3-pyzmq_27.3.0.bb renamed from meta-python/recipes-devtools/python/python3-pyzmq_27.2.0.bb +1 -1
@@ -31,7 +31,7 @@ SRC_URI:append = " \ file://0001-test_log-wait-for-subscriptions-instead-of-sleeping.patch \ file://run-ptest \ " -SRC_URI[sha256sum] = "54d4259d1bfae24ecdb5ca79f7acc2eac6c286a02d6a0ae617797cb45f0726d3" +SRC_URI[sha256sum] = "bbedb3d1d99babc625f1dd9d7438acefd442b36b75073fd6bc1ef7c0a4b96d56" inherit pypi pkgconfig python_setuptools_build_meta ptest cython
PATCH 81/105 python3-rapidjson: upgrade 1.19 -> 1.26
In reply to Khem RajChanges:
- Breaking (1.24): drop Python < 3.10; Python 3.15 wheels.
- Robustness fixes: error handling after PyList_SetItem/PyList_Append, crash serializing a list modified on the fly, RawJSON constructor memory leak, MM_COERCE_KEYS_TO_STRINGS with sort_keys=True.
- 1.26: reject JSON input truncated at an embedded NUL (also in Validator), validate number_mode, reject oversized datetime/UUID/ parse mode values, normalize Decimal NaN variants, Windows ARM64 build.
- Bundled rapidjson updated to current upstream master (1.21).
AI-Generated: Uses Claude Code
---
.../{python3-rapidjson_1.19.bb => python3-rapidjson_1.26.bb} | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
rename meta-python/recipes-devtools/python/{python3-rapidjson_1.19.bb => python3-rapidjson_1.26.bb} (90%)meta-python/recipes-devtools/python/python3-rapidjson_1.26.bb renamed from meta-python/recipes-devtools/python/python3-rapidjson_1.19.bb +1 -2
@@ -4,13 +4,12 @@ HOMEPAGE = "https://github.com/python-rapidjson/python-rapidjson" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=6fe0b2465366662d7cfa6793ccbab563" -SRC_URI[sha256sum] = "81e7260f6297cad564389b700783c0a33de71310b9eb01fd013faec5e7ed4eff" +SRC_URI[sha256sum] = "db95af0b5ed5f89d4f91480477a0ea8c7646283e489dd9046e28503e85e08f98" # Inheriting ptest provides functionality for packaging and installing runtime tests for this recipe inherit setuptools3 pypi ptest-python-pytest PYPI_PACKAGE = "python-rapidjson" -PYPI_PACKAGE_SDIST = "python-rapidjson" SETUPTOOLS_BUILD_ARGS += " --rj-include-dir=${RECIPE_SYSROOT}${includedir}"
PATCH 82/105 python3-rich-toolkit: upgrade 0.20.3 -> 0.20.6
In reply to Khem Rajgetchar uses the tty module; add python3-terminal to RDEPENDS.
AI-Generated: Uses Claude Code
---
...3-rich-toolkit_0.20.3.bb => python3-rich-toolkit_0.20.6.bb} | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-rich-toolkit_0.20.3.bb => python3-rich-toolkit_0.20.6.bb} (80%)meta-python/recipes-devtools/python/python3-rich-toolkit_0.20.6.bb renamed from meta-python/recipes-devtools/python/python3-rich-toolkit_0.20.3.bb +2 -1
@@ -3,13 +3,14 @@ HOMEPAGE = "https://github.com/patrick91/rich-toolkit" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://pyproject.toml;md5=29c91c89ee62891477a1476375143bef;beginline=6;endline=6" -SRC_URI[sha256sum] = "223dd2cfba325ed55e94933b9e53f3aca13e9fdf76622bd564c18109a2273c1b" +SRC_URI[sha256sum] = "04768f19438df877c6279e6e668ab0d88b5fff5c7ef3ac302838d97f7b03472e" inherit pypi python_hatchling ptest-python-pytest RDEPENDS:${PN} = "\ python3-click \ python3-rich \ + python3-terminal \ python3-typing-extensions \ python3-inline-snapshot \ "
PATCH 83/105 python3-rlp: upgrade 4.1.0 -> 5.0.0
In reply to Khem RajUpstream dropped setup.py; build with python_setuptools_build_meta, setuptools-scm and wheel instead of pip.
Changes:
- Packaging moved to pyproject.toml with setuptools>=75 and setuptools_scm[toml]>=8 build requirements; requires Python 3.10+.
- Runtime dependency is eth-utils>=2; optional rust-backend extra (rusty-rlp>=0.2.1). Test/doc dependencies moved to dependency groups.
- Lowered pin on wheel; project template and newsfragments removed.
- Upstream release notes are minimal; major bump is mostly project management changes.
AI-Generated: Uses Claude Code
---
.../python/{python3-rlp_4.1.0.bb => python3-rlp_5.0.0.bb} | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
rename meta-python/recipes-devtools/python/{python3-rlp_4.1.0.bb => python3-rlp_5.0.0.bb} (62%)meta-python/recipes-devtools/python/python3-rlp_5.0.0.bb renamed from meta-python/recipes-devtools/python/python3-rlp_4.1.0.bb +3 -3
@@ -4,11 +4,11 @@ SECTION = "devel/python" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=00854fa80a84236706b11f47f23e61e7" -SRC_URI[sha256sum] = "be07564270a96f3e225e2c107db263de96b5bc1f27722d2855bd3459a08e95a9" +SRC_URI[sha256sum] = "ae8ac791160c160e270f9c7df76e68f4d42bb86a13726d807b9357c312d0bac4" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta -DEPENDS += "python3-pip-native" +DEPENDS += "python3-setuptools-scm-native python3-wheel-native" RDEPENDS:${PN} += " \ python3-eth-utils \
PATCH 84/105 python3-scikit-build-core: upgrade 1.0.3 -> 1.1.2
In reply to Khem RajRefresh patches; also rename the new ctypes template ${module} directory.
Changes:
- Breaking (1.1.0): drop Python 3.8.
- 1.1.0: package-declared config-settings table (tool.scikit-build.config-setting), cmake.fresh, if.not overrides, scikit-build settings list, sdist.resolve-symlinks = "error".
- Fixes: free-threaded Python_FIND_ABI handling, cmake discovery (prefer cmake over cmake3), sdist ignore rules no longer cross submodule boundaries, deterministic editable __path__ order.
- 1.1.1-1.1.2: write sources directly to wheels (faster), ctypes backend for scikit-build init, {build_dir} key for editable.rebuild-dir.
AI-Generated: Uses Claude Code
---
...e-from-PATH-instead-of-CMAKE_BIN_DIR.patch | 9 +---
...-builder.py-Check-PYTHON_INCLUDE_DIR.patch | 22 ++++-----
...c-scikit_build_core-Don-t-use-module.patch | 46 +++++++++++--------
....bb => python3-scikit-build-core_1.1.2.bb} | 2 +-
4 files changed, 39 insertions(+), 40 deletions(-)
rename meta-python/recipes-devtools/python/{python3-scikit-build-core_1.0.3.bb => python3-scikit-build-core_1.1.2.bb} (83%)meta-python/recipes-devtools/python/python3-scikit-build-core/0001-Find-cmake-from-PATH-instead-of-CMAKE_BIN_DIR.patch +2 -7
@@ -21,11 +21,9 @@ Upstream-Status: Inappropriate [oe specific] src/scikit_build_core/program_search.py | 10 ---------- 1 file changed, 10 deletions(-) -diff --git a/src/scikit_build_core/program_search.py b/src/scikit_build_core/program_search.py -index 7995c14..f82cad3 100644 --- a/src/scikit_build_core/program_search.py +++ b/src/scikit_build_core/program_search.py -@@ -90,16 +90,6 @@ class Program(NamedTuple): +@@ -119,16 +119,6 @@ def _get_cmake_path(*, module: bool = True) -> Generator[Path, None, None]:
@@ -39,9 +37,6 @@ index 7995c14..f82cad3 100644 - - yield Path(CMAKE_BIN_DIR) / "cmake" - - candidates = ("cmake3", "cmake") + candidates = ("cmake", "cmake3") for candidate in candidates: cmake_path = shutil.which(candidate) --- -2.51.1 -
meta-python/recipes-devtools/python/python3-scikit-build-core/0001-builder.py-Check-PYTHON_INCLUDE_DIR.patch +9 -13
@@ -11,22 +11,18 @@ Upstream-Status: Inappropriate [oe specific] Suggested-by: Stephan Kulow <[email protected]> Signed-off-by: Leon Anavi <[email protected]> --- - src/scikit_build_core/builder/builder.py | 2 +- + src/scikit_build_core/builder/builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scikit_build_core/builder/builder.py b/src/scikit_build_core/builder/builder.py -index 4be0cca..0fc54f4 100644 --- a/src/scikit_build_core/builder/builder.py +++ b/src/scikit_build_core/builder/builder.py -@@ -395,7 +395,7 @@ class Builder: - python_sabi_library = get_python_library(self.config.env, abi3t=True) - elif sabi == _SabiMode.ABI3: - python_sabi_library = get_python_library(self.config.env, abi3=True) -- python_include_dir = get_python_include_dir() -+ python_include_dir = os.getenv("PYTHON_INCLUDE_DIR") or get_python_include_dir() - numpy_include_dir = get_numpy_include_dir() +@@ -402,7 +402,7 @@ + python_sabi_library = get_python_library(self.config.env, abi3t=True) + elif sabi == _SabiMode.ABI3: + python_sabi_library = get_python_library(self.config.env, abi3=True) +- python_include_dir = get_python_include_dir() ++ python_include_dir = os.getenv("PYTHON_INCLUDE_DIR") or get_python_include_dir() + numpy_include_dir = get_numpy_include_dir() - # Warning for CPython 3.13.4 Windows bug --- -2.47.3 - + # Classic Find Python
meta-python/recipes-devtools/python/python3-scikit-build-core/0001-src-scikit_build_core-Don-t-use-module.patch +27 -19
73 lines not on this page · raw message
meta-python/recipes-devtools/python/python3-scikit-build-core_1.1.2.bb renamed from meta-python/recipes-devtools/python/python3-scikit-build-core_1.0.3.bb +1 -1
@@ -11,6 +11,6 @@ SRC_URI += " \ file://0001-Find-cmake-from-PATH-instead-of-CMAKE_BIN_DIR.patch \ file://0001-src-scikit_build_core-Don-t-use-module.patch \ " -SRC_URI[sha256sum] = "a4d7a05978ee37975c37743510c8991e2debce7ef83afb0a07c0c576fd4f16e8" +SRC_URI[sha256sum] = "7893709119c5ab1be75cd10442383132c9433b9f104dacef5185949efbea7974" BBCLASSEXTEND = "native nativesdk"
PATCH 85/105 python3-semver: upgrade 3.1.1 -> 3.1.2
In reply to Khem RajChanges:
- 3.1.2: deprecate cross-type Version equality; skip prerelease comparison in Version.compare when the result is known.
AI-Generated: Uses Claude Code
---
.../python/{python3-semver_3.1.1.bb => python3-semver_3.1.2.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-semver_3.1.1.bb => python3-semver_3.1.2.bb} (82%)meta-python/recipes-devtools/python/python3-semver_3.1.2.bb renamed from meta-python/recipes-devtools/python/python3-semver_3.1.1.bb +1 -1
@@ -4,7 +4,7 @@ BUGTRACKER = "https://github.com/python-semver/python-semver" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3ce011bad2c5218ddd4973952a6db93a" -SRC_URI[sha256sum] = "149b26cabada6f63212f97e94505d21578cb1d280cf714827f328d5e70765fea" +SRC_URI[sha256sum] = "bea193552413194252d33ff26ce0962b76669bd1c6fb17e8e203ac37f072feaf" inherit pypi python_setuptools_build_meta ptest-python-pytest
PATCH 86/105 python3-send2trash: upgrade 2.1.0 -> 2.2.0
In reply to Khem RajDrop tests/test_plat_mac.py from the ptest; it runs send2trash/mac/__init__.py from the source tree, which isn't installed.
License-Update: Line endings only.
Changes:
- Security: fix path traversal on file restoration due to incorrect path when trashing (CVE-2026-55788, GHSA-fgv9-r74r-hqmx).
- Handle unavailable macOS version during backend selection.
- Resolve symlinked home directories when choosing the trash device.
- Improve legacy Windows error diagnostics; more Python 2 cleanup.
AI-Generated: Uses Claude Code
--- .../send2trash/python3-send2trash_2.1.0.bb | 14 -------------- .../send2trash/python3-send2trash_2.2.0.bb | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 14 deletions(-) delete mode 100644 meta-python/recipes-extended/send2trash/python3-send2trash_2.1.0.bb create mode 100644 meta-python/recipes-extended/send2trash/python3-send2trash_2.2.0.bb
meta-python/recipes-extended/send2trash/python3-send2trash_2.1.0.bb deleted +0 -14
@@ -1,14 +0,0 @@ -SUMMARY = "Send file to trash natively under Mac OS X, Windows and Linux" -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=a02659c2d5f4cc626e4dcf6504b865eb" - -inherit pypi python_setuptools_build_meta ptest-python-pytest - -SRC_URI += "file://run-ptest" -SRC_URI[sha256sum] = "1c72b39f09457db3c05ce1d19158c2cbef4c32b8bedd02c155e49282b7ea7459" - - -RDEPENDS:${PN} += "\ - python3-io \ - python3-datetime \ -"
meta-python/recipes-extended/send2trash/python3-send2trash_2.2.0.bb new file +19 -0
@@ -0,0 +1,19 @@ +SUMMARY = "Send file to trash natively under Mac OS X, Windows and Linux" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=05faa35ba1ca10b723f19d286c9d5237" + +inherit pypi python_setuptools_build_meta ptest-python-pytest + +SRC_URI += "file://run-ptest" +SRC_URI[sha256sum] = "e0ac412073f7984288908d9d8b8d13c82be69a615bb513d948fa2f053447970a" + +# the macOS backend selection tests run send2trash/mac/__init__.py from the +# source tree, which isn't installed +do_install_ptest:append() { + rm -f ${D}${PTEST_PATH}/tests/test_plat_mac.py +} + +RDEPENDS:${PN} += "\ + python3-io \ + python3-datetime \ +"
PATCH 87/105 python3-setuptools-git-versioning: upgrade 3.2.1 -> 3.2.2
In reply to Khem RajChanges:
- 3.2.2: fix {timestamp}, {timestamp:} and {timestamp:%s} substitutions failing on Windows (unix timestamp computed directly).
AI-Generated: Uses Claude Code
---
...ning_3.2.1.bb => python3-setuptools-git-versioning_3.2.2.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-setuptools-git-versioning_3.2.1.bb => python3-setuptools-git-versioning_3.2.2.bb} (86%)meta-python/recipes-devtools/python/python3-setuptools-git-versioning_3.2.2.bb renamed from meta-python/recipes-devtools/python/python3-setuptools-git-versioning_3.2.1.bb +1 -1
@@ -3,7 +3,7 @@ HOMEPAGE = "https://setuptools-git-versioning.readthedocs.io" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=92e79e3a844e66731724600f3ac9c0d8" -SRC_URI[sha256sum] = "8cccd352642ed6435da35b8edaf56a2f764f061ef2edaf3ae6602806acc7105f" +SRC_URI[sha256sum] = "c5b38f3242027cdc53c9eb6c4c8410496afdd2895eb0507115d44dbb98af48e5" inherit pypi python_setuptools_build_meta
PATCH 88/105 python3-soupsieve: upgrade 4.1 -> 4.1.1
In reply to Khem RajAI-Generated: Uses Claude Code
---
...{python3-soupsieve_4.1.bb => python3-soupsieve_4.1.1.bb} | 6 ++++++
1 file changed, 6 insertions(+)
rename meta-python/recipes-devtools/python/{python3-soupsieve_4.1.bb => python3-soupsieve_4.1.1.bb} (53%)meta-python/recipes-devtools/python/python3-soupsieve_4.1.1.bb renamed from meta-python/recipes-devtools/python/python3-soupsieve_4.1.bb +6 -0
@@ -4,7 +4,13 @@ HOMEPAGE = "https://github.com/facelessuser/soupsieve" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE.md;md5=74851a2f1e5c07496dcb452af6a6bf54" +<<<<<<<< HEAD:meta-python/recipes-devtools/python/python3-soupsieve_4.1.bb SRC_URI[sha256sum] = "ca9abf7126667010d8f6e9b39bfc1bc3b23c8aed9bcb0f54a754dde969bb8aab" +|||||||| parent of 695f7967e7 (python3-soupsieve: upgrade 4.0.1 -> 4.1.1):meta-python/recipes-devtools/python/python3-soupsieve_4.0.1.bb +SRC_URI[sha256sum] = "7621e3c5f6b371ed2c5eabaac5de300ac3d66d05e6d7f34783e31b63c4f90c75" +======== +SRC_URI[sha256sum] = "b296bd2d2f65b1a78149f3d7bf6736a147d2c9e2dfbde0e4404639d748a02e03" +>>>>>>>> 695f7967e7 (python3-soupsieve: upgrade 4.0.1 -> 4.1.1):meta-python/recipes-devtools/python/python3-soupsieve_4.1.1.bb inherit pypi python_hatchling ptest-python-pytest
PATCH 89/105 python3-sqlparse: upgrade 0.6.0 -> 0.6.1
In reply to Khem RajChanges:
- 0.6.1 is the final release: the project is no longer maintained, no further security fixes are planned.
- Security: dollar signs are escaped in the "php" output format to prevent PHP code injection (CVE-2026-112307).
- Security: fixed quadratic CPU use in format() on statements with many unclosed quotes (DoS).
- Fixed IndexError/ValueError in format() on some malformed input; sqlformat no longer empties --in-place/--outfile on failure.
AI-Generated: Uses Claude Code
---
.../{python3-sqlparse_0.6.0.bb => python3-sqlparse_0.6.1.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-sqlparse_0.6.0.bb => python3-sqlparse_0.6.1.bb} (83%)meta-python/recipes-devtools/python/python3-sqlparse_0.6.1.bb renamed from meta-python/recipes-devtools/python/python3-sqlparse_0.6.0.bb +1 -1
@@ -4,7 +4,7 @@ SECTION = "devel/python" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=2b136f573f5386001ea3b7b9016222fc" -SRC_URI[sha256sum] = "113c35c75365ab9cc9c7231d68c6428fb11c085fc8e9eb1ad659b7ddbf6cd2b9" +SRC_URI[sha256sum] = "ca722573f848ff2d30e40ea30f53a104b7dea7635ea9285891263eb2c58fb6e7" CVE_PRODUCT = "sqlparse"
PATCH 90/105 python3-strenum: upgrade 0.4.15 -> 0.5.0
In reply to Khem RajDrop the versioneer patch; upstream now uses setuptools-scm.
Changes:
- Packaging modernized: vendored versioneer replaced by setuptools- scm (build now needs setuptools>=64 and setuptools-scm>=8), setup.py replaced by pyproject.toml, package moved to src/ layout. Version needs git tags or SETUPTOOLS_SCM_PRETEND_VERSION.
- Requires Python >=3.8; classifiers now cover 3.8 to 3.14.
- Added missing type annotations; fixed installing type stubs.
AI-Generated: Uses Claude Code
--- ...ioneer-for-python-3.12-compatibility.patch | 37 ------------------- .../python/python3-strenum_0.4.15.bb | 14 ------- .../python/python3-strenum_0.5.0.bb | 10 +++++ 3 files changed, 10 insertions(+), 51 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-strenum/0001-patch-versioneer-for-python-3.12-compatibility.patch delete mode 100644 meta-python/recipes-devtools/python/python3-strenum_0.4.15.bb create mode 100644 meta-python/recipes-devtools/python/python3-strenum_0.5.0.bb
meta-python/recipes-devtools/python/python3-strenum/0001-patch-versioneer-for-python-3.12-compatibility.patch deleted +0 -37
@@ -1,37 +0,0 @@ -From 3a71c9bc3747201e5bebe0e80b98ac6219209875 Mon Sep 17 00:00:00 2001 -From: alperak <[email protected]> -Date: Thu, 8 Feb 2024 14:09:32 +0300 -Subject: [PATCH] Patch versioneer for Python 3.12 compatibility - -AttributeError: 'ConfigParser' object has no attribute 'readfp'. Did you mean: 'read'? -AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'? - -readfp and SafeConfigParser has been deprecated since Python 3.2 and removed in Python 3.12 (due October 2023). Use read_file and ConfigParser instead. - -https://docs.python.org/3/whatsnew/3.12.html#configparser - -Upstream-Status: Submitted [https://github.com/irgeek/StrEnum/pull/34] -Signed-off-by: alperak <[email protected]> ---- - versioneer.py | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/versioneer.py b/versioneer.py -index 64fea1c..3aa5da3 100644 ---- a/versioneer.py -+++ b/versioneer.py -@@ -339,9 +339,9 @@ def get_config_from_root(root): - # configparser.NoOptionError (if it lacks "VCS="). See the docstring at - # the top of versioneer.py for instructions on writing your setup.cfg . - setup_cfg = os.path.join(root, "setup.cfg") -- parser = configparser.SafeConfigParser() -+ parser = configparser.ConfigParser() - with open(setup_cfg, "r") as f: -- parser.readfp(f) -+ parser.read_file(f) - VCS = parser.get("versioneer", "VCS") # mandatory - - def get(parser, name): --- -2.25.1 -
meta-python/recipes-devtools/python/python3-strenum_0.4.15.bb deleted +0 -14
@@ -1,14 +0,0 @@ -SUMMARY = "An Enum that inherits from str" -HOMEPAGE = "https://github.com/irgeek/StrEnum" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=ba0eb3de1df70bde0ed48488cfd81269" - -SRC_URI += "file://0001-patch-versioneer-for-python-3.12-compatibility.patch" - -DEPENDS = "python3-pytest-runner-native" - -SRC_URI[sha256sum] = "878fb5ab705442070e4dd1929bb5e2249511c0bcf2b0eeacf3bcd80875c82eff" - -PYPI_PACKAGE_SDIST = "StrEnum" - -inherit pypi python_setuptools_build_meta
meta-python/recipes-devtools/python/python3-strenum_0.5.0.bb new file +10 -0
@@ -0,0 +1,10 @@ +SUMMARY = "An Enum that inherits from str" +HOMEPAGE = "https://github.com/irgeek/StrEnum" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=ba0eb3de1df70bde0ed48488cfd81269" + +DEPENDS = "python3-setuptools-scm-native" + +SRC_URI[sha256sum] = "9c50a5ce647c0a625ac25c1b719039e745466b6a04bd001aee6376381d8cdce7" + +inherit pypi python_setuptools_build_meta
PATCH 91/105 python3-tenacity: upgrade 9.1.4 -> 9.2.1
In reply to Khem RajUpstream moved to hatchling with hatch-vcs; inherit python_hatchling. Refresh the ptest skip patch.
Changes:
- 9.2.0 never reached PyPI (bad package description); 9.2.1 is the first release including both.
- New: name parameter for Retrying (log output), enabled parameter to disable retrying, async context manager support in AttemptManager, min parameter and timedelta support in wait_exponential_jitter (its "initial" argument is deprecated in favour of "multiplier").
- Fixes: Retrying and strategies are picklable, no hang on cyclic exception __cause__ chains, wait_chain([]) raises ValueError, ordinal suffix for numbers ending in 11-13, falsy wait values, enabled=False respected in iterators, many typing fixes.
- Tornado floor for the optional integration raised to >=6.0.
AI-Generated: Uses Claude Code
---
...st-skip-a-test-that-does-not-pass-on-qemu.patch | 14 +++++---------
...tenacity_9.1.4.bb => python3-tenacity_9.2.1.bb} | 6 +++---
2 files changed, 8 insertions(+), 12 deletions(-)
rename meta-python/recipes-devtools/python/{python3-tenacity_9.1.4.bb => python3-tenacity_9.2.1.bb} (64%)meta-python/recipes-devtools/python/python3-tenacity/0001-ptest-skip-a-test-that-does-not-pass-on-qemu.patch +5 -9
@@ -7,21 +7,17 @@ Upstream-Status: Inappropriate [oe specific] Signed-off-by: Jan Vermaete <[email protected]> --- - tests/test_asyncio.py | 1 + + tests/test_asyncio.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_asyncio.py b/tests/test_asyncio.py -index 0b74476..2da0784 100644 --- a/tests/test_asyncio.py +++ b/tests/test_asyncio.py -@@ -192,6 +192,7 @@ class TestContextManager(unittest.TestCase): - else: - raise Exception +@@ -365,6 +365,7 @@ + await retrying(_test) + self.assertEqual(2, retrying.statistics["attempt_number"]) + @unittest.skip("Failing in ptest with qemu") @asynctest - async def test_sleeps(self): + async def test_sleeps(self) -> None: start = current_time_ms() --- -2.43.0 -
meta-python/recipes-devtools/python/python3-tenacity_9.2.1.bb renamed from meta-python/recipes-devtools/python/python3-tenacity_9.1.4.bb +3 -3
@@ -3,13 +3,13 @@ HOMEPAGE = "https://github.com/jd/tenacity" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=175792518e4ac015ab6696d16c4f607e" -SRC_URI[sha256sum] = "adb31d4c263f2bd041081ab33b498309a57c77f9acf2db65aadf0898179cf93a" +SRC_URI[sha256sum] = "a606b5c808d0cded4a359d5b9932d867ff2a6a6b64d37350260fd01bbdf83839" SRC_URI:append = " file://0001-ptest-skip-a-test-that-does-not-pass-on-qemu.patch" -DEPENDS += "python3-setuptools-scm-native" +DEPENDS += "python3-hatch-vcs-native" -inherit pypi python_setuptools_build_meta ptest-python-pytest +inherit pypi python_hatchling ptest-python-pytest RDEPENDS:${PN}-ptest += "\
PATCH 92/105 python3-time-machine: upgrade 3.2.0 -> 3.6.0
In reply to Khem RajThe fuzz tests need hypothesis; add it to the ptest RDEPENDS.
Changes:
- Dropped Python 3.10 support (3.6.0); added Python 3.15 support and wheels, including isolated subinterpreters (3.3.0, 3.4.0).
- Mock datetime.date.today() directly; new escape_hatch functions for date.today()/datetime.today() (3.3.0).
- Destinations are computed in integer nanoseconds, fixing small rounding errors; today() is exact for far-future dates.
- travel() accepts None as destination, meaning the current time.
- Fixed a reference leak in utcnow() under -W error, traveller state leaks on setUpClass/tearDownClass errors, and -mno-omit-leaf-frame- pointer breaking source builds on non-x86/ARM64 (e.g. PowerPC).
- Migration CLI for freezegun/pytest-freezer users greatly extended.
AI-Generated: Uses Claude Code
---
...on3-time-machine_3.2.0.bb => python3-time-machine_3.6.0.bb} | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-time-machine_3.2.0.bb => python3-time-machine_3.6.0.bb} (96%)meta-python/recipes-devtools/python/python3-time-machine_3.6.0.bb renamed from meta-python/recipes-devtools/python/python3-time-machine_3.2.0.bb +2 -1
@@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/adamchainz/time-machine" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=fb9b93a440d3ef2fb6eeebfa59384c53" -SRCREV = "1b7ac45defb26c72076dc202aba46967c8c28fa9" +SRCREV = "7434cabf2b539f5cb0ecfcb1e05864424acb3ee1" PYPI_SRC_URI = "git://github.com/adamchainz/time-machine;protocol=https;branch=main;tag=${PV};destsuffix=time_machine-${PV}" inherit pypi python_setuptools_build_meta ptest-python-pytest
@@ -37,6 +37,7 @@ RDEPENDS:${PN}-ptest += "\ python3-dateutil \ python3-dateutil-zoneinfo \ python3-freezegun \ + python3-hypothesis \ python3-tokenize-rt \ tzdata \ "
PATCH 93/105 python3-tox: upgrade 4.67.1 -> 4.67.13
In reply to Khem RajAdd hatch-fancy-pypi-readme to DEPENDS, now required by the build.
Changes:
- Bug-fix series (4.67.2 to 4.67.13), no new dependencies noted.
- Package staging and work dir permissions hardened: owner-only staging directories, works under umask 0002, stale group/world- writable .tox is made private and emptied (needed on shared CI).
- Hardening of inputs: requirement/constraint files limited to 10 MiB, PEP 723 metadata parsed strictly, inline script dependencies validated, symlink/junction meta_dir refused, args_are_paths no longer turns file names starting with "-" into options.
- Fixed set_env quoting with trailing backslashes, glob patterns when tox_root contains [, * or ?, factor names like py-django-4-2, --config-settings in requirement files, --runner choices.
AI-Generated: Uses Claude Code
---
.../python/{python3-tox_4.67.1.bb => python3-tox_4.67.13.bb} | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-tox_4.67.1.bb => python3-tox_4.67.13.bb} (89%)meta-python/recipes-devtools/python/python3-tox_4.67.13.bb renamed from meta-python/recipes-devtools/python/python3-tox_4.67.1.bb +2 -1
@@ -6,12 +6,13 @@ HOMEPAGE = "https://tox.readthedocs.org/" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=11610a9d8fd95649cf8159be12b98cb7" -SRC_URI[sha256sum] = "a68602f64421b199016127364ee47347b958391d19c2b2e53fe95673a8fe98e9" +SRC_URI[sha256sum] = "9f70b44ca2e31d91d8fe2e2917f505554950adc3961c0ee70bb42db16d903f62" BBCLASSEXTEND = "native nativesdk" inherit pypi python_hatchling DEPENDS += "\ + python3-hatch-fancy-pypi-readme-native \ python3-hatch-vcs-native \ python3-docutils-native \ "
PATCH 94/105 python3-typer: upgrade 0.28.0 -> 0.29.1
In reply to Khem RajTyper now depends on pydantic. Also drop tests/test_docs_cleanup.py from the ptest, it imports typer's unshipped release scripts.
Changes:
- 0.29.0: Typer now uses Pydantic internally to validate command-line parameters. NEW DEPENDENCY: pydantic >=2.5.3 is required.
- BREAKING: click_type removed from typer.Option()/Argument(); some defaults validated more strictly (e.g. (None, None, None) tuple default now fails); datetime parsing follows Pydantic rules; callback parameter objects no longer expose Click's .type, .make_metavar(), .human_readable_name, .type_cast_value().
- Terminal control characters are escaped in Pydantic validation errors.
- 0.29.1: added Python 3.15 and 3.15t support.
AI-Generated: Uses Claude Code
---
.../{python3-typer_0.28.0.bb => python3-typer_0.29.1.bb} | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
rename meta-python/recipes-devtools/python/{python3-typer_0.28.0.bb => python3-typer_0.29.1.bb} (80%)meta-python/recipes-devtools/python/python3-typer_0.29.1.bb renamed from meta-python/recipes-devtools/python/python3-typer_0.28.0.bb +4 -3
@@ -7,7 +7,7 @@ HOMEPAGE = "https://github.com/fastapi/typer" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=173d405eb704b1499218013178722617" -SRC_URI[sha256sum] = "69ab84ef79fd601cff071bbd2566d855ecadfd93adbc4b3360b9924359bdd857" +SRC_URI[sha256sum] = "ab6eb3880bf67ce96147734717f9ec333c06f66e361f3ea947d0be43da39f242" inherit pypi python_pdm ptest
@@ -22,6 +22,7 @@ RDEPENDS:${PN} += "\ python3-difflib \ python3-io \ python3-math \ + python3-pydantic \ python3-rich \ python3-shell \ python3-shellingham \
@@ -45,6 +46,6 @@ RDEPENDS:${PN}-ptest += "\ do_install_ptest() { install -d ${D}${PTEST_PATH}/tests cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ - # references the unshipped top-level 'scripts' package used by typer's release tooling - rm -f ${D}${PTEST_PATH}/tests/test_prepare_release.py + # reference the unshipped top-level 'scripts' package used by typer's release tooling + rm -f ${D}${PTEST_PATH}/tests/test_prepare_release.py ${D}${PTEST_PATH}/tests/test_docs_cleanup.py }
PATCH 95/105 python3-types-psutil: upgrade 7.2.2.20260518 -> 7.2.2.20261111
In reply to Khem RajChanges:
- Typing stubs only: corrected terminal() and nice() return types, typed memory map and heap namedtuple fields, overloads for Process.memory_maps(), added __all__.
- Dropped Python 3.9 support for the stub package.
AI-Generated: Uses Claude Code
---
...7.2.2.20260518.bb => python3-types-psutil_7.2.2.20261111.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-types-psutil_7.2.2.20260518.bb => python3-types-psutil_7.2.2.20261111.bb} (76%)meta-python/recipes-devtools/python/python3-types-psutil_7.2.2.20261111.bb renamed from meta-python/recipes-devtools/python/python3-types-psutil_7.2.2.20260518.bb +1 -1
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=ec038232ab86edd7354b091c54e190e2" inherit pypi python_setuptools_build_meta -SRC_URI[sha256sum] = "9f825f631463a5b4d26f19f63aebc9ec25f01140d655026f3ad8a67841f9b331" +SRC_URI[sha256sum] = "d677119c44fb80cc9be41d8ac731f08bf89974bb1daa49b6688665a9d7224f42" BBCLASSEXTEND = "native"
PATCH 96/105 python3-types-python-dateutil: upgrade 2.9.0.20241003 -> 2.9.0.20261104
In reply to Khem RajUpstream dropped setup.py; inherit python_setuptools_build_meta.
License-Update: PKG-INFO line 6 is now "License-Expression: Apache-2.0" (metadata 2.4).
Changes:
- Typing stubs only: stubs completed (parser, rrule/rrulestr, gettz cache control, relativedelta fixes, UnknownTimezoneWarning).
- parser.parse(fuzzy_with_tokens=True) now returns a tuple; ISO parsers accept bytearray; datetime stubs generic over tzinfo.
- Added __slots__ and missing parameter annotations.
AI-Generated: Uses Claude Code
--- .../python3-types-python-dateutil_2.9.0.20241003.bb | 10 ---------- .../python3-types-python-dateutil_2.9.0.20261104.bb | 9 +++++++++ 2 files changed, 9 insertions(+), 10 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-types-python-dateutil_2.9.0.20241003.bb create mode 100644 meta-python/recipes-devtools/python/python3-types-python-dateutil_2.9.0.20261104.bb
meta-python/recipes-devtools/python/python3-types-python-dateutil_2.9.0.20241003.bb deleted +0 -10
@@ -1,10 +0,0 @@ -SUMMARY = "Typing stubs for python-dateutil" -HOMEPAGE = "https://github.com/python/typeshed" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=6;endline=6;md5=c2d9643b4523fdf462545aeb1356ad23" - -SRC_URI[sha256sum] = "58cb85449b2a56d6684e41aeefb4c4280631246a0da1a719bdbe6f3fb0317446" - -inherit pypi setuptools3 - -PYPI_PACKAGE_SDIST = "types-python-dateutil"
meta-python/recipes-devtools/python/python3-types-python-dateutil_2.9.0.20261104.bb new file +9 -0
@@ -0,0 +1,9 @@ +SUMMARY = "Typing stubs for python-dateutil" +HOMEPAGE = "https://github.com/python/typeshed" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=6;endline=6;md5=320eb2c24b8d2e890b6800000ce9352c" + +SRC_URI[sha256sum] = "5d0495702a5f7343741f5d842c531bcd1c941da8b4a85307d52ef43ba80252db" + +inherit pypi python_setuptools_build_meta +
PATCH 97/105 python3-types-setuptools: upgrade 75.5.0.20241120 -> 84.2.0.20261104
In reply to Khem RajUpstream dropped setup.py; inherit python_setuptools_build_meta.
License-Update: PKG-INFO line 6 is now "License-Expression: Apache-2.0" (metadata 2.4).
Changes:
- Typing stubs only; tracks setuptools 75.5 -> 84.2 (stubs updated for 75.8, 77, 79, 80, 81, 82, 83 and 84).
- Removed the setuptools/pkg_resources stubs (setuptools ships its own typing now); removed a problematic private compat module.
- Added install_data to the distutils stubs; added missing defaults.
AI-Generated: Uses Claude Code
--- .../python3-types-setuptools_75.5.0.20241120.bb | 12 ------------ .../python3-types-setuptools_84.2.0.20261104.bb | 11 +++++++++++ 2 files changed, 11 insertions(+), 12 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-types-setuptools_75.5.0.20241120.bb create mode 100644 meta-python/recipes-devtools/python/python3-types-setuptools_84.2.0.20261104.bb
meta-python/recipes-devtools/python/python3-types-setuptools_75.5.0.20241120.bb deleted +0 -12
@@ -1,12 +0,0 @@ -SUMMARY = "Typing stubs for setuptools" -HOMEPAGE = "https://github.com/python/typeshed" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=6;endline=6;md5=c2d9643b4523fdf462545aeb1356ad23" - -inherit pypi setuptools3 - -PYPI_PACKAGE_SDIST = "types-setuptools" - -SRC_URI[sha256sum] = "d3c7e95b0598bf87fede29b3b57b19f5cdcd62a85b9298a7b30f8343f6f21c4f" - -BBCLASSEXTEND = "native"
meta-python/recipes-devtools/python/python3-types-setuptools_84.2.0.20261104.bb new file +11 -0
@@ -0,0 +1,11 @@ +SUMMARY = "Typing stubs for setuptools" +HOMEPAGE = "https://github.com/python/typeshed" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=6;endline=6;md5=320eb2c24b8d2e890b6800000ce9352c" + +inherit pypi python_setuptools_build_meta + + +SRC_URI[sha256sum] = "1ec758bbeddf88d52f963fe663beabc2117b6aae73cf3d2902d7dd0df81bd76e" + +BBCLASSEXTEND = "native"
PATCH 98/105 python3-u-msgpack-python: upgrade 2.8.0 -> 2.9.0
In reply to Khem RajLicense-Update: Copyright year bump.
Changes:
- New max_depth option for unpacking functions to cap array/map nesting depth.
- A RecursionError on deeply nested input is now caught and re-raised as the new MaximumDepthException (subclass of UnpackException), which hardens unpacking of untrusted data.
- Improved type stubs (py.typed added); documentation typo fixes.
AI-Generated: Uses Claude Code
---
...ack-python_2.8.0.bb => python3-u-msgpack-python_2.9.0.bb} | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
rename meta-python/recipes-devtools/python/{python3-u-msgpack-python_2.8.0.bb => python3-u-msgpack-python_2.9.0.bb} (62%)meta-python/recipes-devtools/python/python3-u-msgpack-python_2.9.0.bb renamed from meta-python/recipes-devtools/python/python3-u-msgpack-python_2.8.0.bb +2 -3
@@ -1,13 +1,12 @@ DESCRIPTION = "A portable, lightweight MessagePack serializer and deserializer written in pure Python." LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=17df11353545c53a2df0ce7655859306" +LIC_FILES_CHKSUM = "file://LICENSE;md5=ace2615eae557604711137d1c751d524" -SRC_URI[sha256sum] = "b801a83d6ed75e6df41e44518b4f2a9c221dc2da4bcd5380e3a0feda520bc61a" +SRC_URI[sha256sum] = "3f632940c2db108d71210795463e249b47e89a08eec0d54a5cdc1a202505ede9" inherit pypi setuptools3 ptest-python-pytest -PYPI_PACKAGE_SDIST = "u-msgpack-python" do_install_ptest:append() { cp -f ${S}/test_umsgpack.py ${D}${PTEST_PATH}/
PATCH 99/105 python3-uefi-firmware: upgrade 1.16 -> 1.17
In reply to Khem RajUpstream renamed its default branch to main.
License-Update: The checksum covered setup.py; point it at the MIT LICENSE file instead. setup.py now declares MIT (it said BSD-3-Clause, while LICENSE has always been MIT); the bundled EDK2/LZMA code stays BSD, so LICENSE becomes "MIT AND BSD-2-Clause AND BSD-3-Clause".
Changes:
- Hardened parsing and extraction: bounded parsing loops, recursion and decompression, clean failure on truncated/inconsistent headers, hardened C decompression extension, new safe_path utility.
- The "future" dependency was removed.
- Added AMI capsule, PFS (AutoParser) and PaddingObject support; duplicate volume names supported; fixed NVAR, ME, PFS and CPD handling and FFS rebuild.
- Performance: _FVH magic search 8.9x faster (bytes.find/finditer).
- build() round-trips and FDF generator fixed.
AI-Generated: Uses Claude Code
---
...efi-firmware_1.16.bb => python3-uefi-firmware_1.17.bb} | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
rename meta-python/recipes-devtools/python/{python3-uefi-firmware_1.16.bb => python3-uefi-firmware_1.17.bb} (79%)meta-python/recipes-devtools/python/python3-uefi-firmware_1.17.bb renamed from meta-python/recipes-devtools/python/python3-uefi-firmware_1.16.bb +4 -4
@@ -4,12 +4,12 @@ UEFI firmware parser is a simple module and set of scripts for parsing, \ extracting, and recreating UEFI firmware volumes. This includes parsing \ modules for BIOS, OptionROM, Intel ME and other formats too." HOMEPAGE = "https://github.com/theopolis/uefi-firmware-parser" -LICENSE = "BSD-2-Clause AND BSD-3-Clause" -LIC_FILES_CHKSUM = "file://setup.py;md5=f3ddb5c3a389eada068ddcf6b89f62b2" +LICENSE = "MIT AND BSD-2-Clause AND BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=7befe9c63bf87929cff5a8b0c5a62bfb" -SRC_URI = "git://github.com/theopolis/uefi-firmware-parser;protocol=https;branch=master;tag=v${PV}" +SRC_URI = "git://github.com/theopolis/uefi-firmware-parser;protocol=https;branch=main;tag=v${PV}" -SRCREV = "e202e576cefd1fefb3f510237bbd0aea8aedca07" +SRCREV = "4942c4865da22000f4bb484830e26019ec061498" DEPENDS += "python3-setuptools-scm-native"
PATCH 100/105 python3-uvicorn: upgrade 0.49.0 -> 0.54.0
In reply to Khem RajRefresh the ptest skip patches. The tests moved from httpx to httpx2; update the ptest RDEPENDS.
Changes:
- 0.50: --ws auto now selects websockets-sansio (needs websockets
Quoted 1 line
=13.0); legacy websockets implementation deprecated. Startup
failures exit with code 3 and stop the multiprocess supervisor.
- 0.51: workers restarted one at a time on SIGHUP; colorama removed from the "standard" extra. click.style replaced by internal helper.
- 0.52 to 0.54: experimental HTTP/1.1 and HTTP/2 via the new optional zttp package (--http zttp [--http2]), zuvloop support, HTTP/2 trailers and 103 Early Hints.
- Fixes: WebSocket closing handshake, write flow control, duplicate headers, IPv6 loopback trusted in default FORWARDED_ALLOW_IPS, memory regression with --reload/--workers.
AI-Generated: Uses Claude Code
---
.../0001-ptest-disable-failing-tests.patch | 24 +++++++----------
.../0002-ptest-skip-test_headers.patch | 27 +++++++++----------
...rn_0.49.0.bb => python3-uvicorn_0.54.0.bb} | 4 +--
3 files changed, 24 insertions(+), 31 deletions(-)
rename meta-python/recipes-devtools/python/{python3-uvicorn_0.49.0.bb => python3-uvicorn_0.54.0.bb} (88%)meta-python/recipes-devtools/python/python3-uvicorn/0001-ptest-disable-failing-tests.patch +9 -15
@@ -9,16 +9,15 @@ Upstream-Status: Pending [https://github.com/Kludex/uvicorn/discussions/2759] Signed-off-by: Jan Vermaete <[email protected]> --- - tests/protocols/test_websocket.py | 3 +++ - tests/supervisors/test_multiprocess.py | 2 ++ - tests/test_config.py | 5 +++-- + tests/protocols/test_websocket.py | 3 +++ + tests/supervisors/test_multiprocess.py | 2 ++ + tests/test_config.py | 5 +++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/protocols/test_websocket.py b/tests/protocols/test_websocket.py -index 2e1a33a..ae1e041 100644 --- a/tests/protocols/test_websocket.py +++ b/tests/protocols/test_websocket.py -@@ -685,6 +685,9 @@ MAX_WS_BYTES = 1024 * 1024 * 16 +@@ -694,6 +694,9 @@ MAX_WS_BYTES_PLUS1 = MAX_WS_BYTES + 1
@@ -29,30 +28,28 @@ index 2e1a33a..ae1e041 100644 "client_size_sent, server_size_max, expected_result", [ diff --git a/tests/supervisors/test_multiprocess.py b/tests/supervisors/test_multiprocess.py -index e1f594e..43002c3 100644 --- a/tests/supervisors/test_multiprocess.py +++ b/tests/supervisors/test_multiprocess.py -@@ -75,6 +75,7 @@ def test_multiprocess_run() -> None: - supervisor.join_all() +@@ -86,6 +86,7 @@ + thread.join() [email protected](reason="fails on OpenEmbedded/Yocto") @new_console_in_windows def test_multiprocess_health_check() -> None: """ -@@ -121,6 +122,7 @@ def test_multiprocess_sigbreak() -> None: # pragma: py-not-win32 +@@ -151,6 +152,7 @@ supervisor.join_all() [email protected](reason="failing on Yocto/OpenEmbedded") @pytest.mark.skipif(not hasattr(signal, "SIGHUP"), reason="platform unsupports SIGHUP") - def test_multiprocess_sighup() -> None: + def test_multiprocess_sighup(monkeypatch: pytest.MonkeyPatch) -> None: """ diff --git a/tests/test_config.py b/tests/test_config.py -index 9c80ca4..fe4c2e8 100644 --- a/tests/test_config.py +++ b/tests/test_config.py -@@ -303,8 +303,9 @@ def test_asgi_version(app: ASGIApplication, expected_interface: Literal["2.0", " +@@ -309,8 +309,9 @@ @pytest.mark.parametrize( "use_colors, expected", [
@@ -64,6 +61,3 @@ index 9c80ca4..fe4c2e8 100644 pytest.param(True, True, id="use_colors_enabled"), pytest.param(False, False, id="use_colors_disabled"), ], --- -2.47.3 -
meta-python/recipes-devtools/python/python3-uvicorn/0002-ptest-skip-test_headers.patch +13 -14
@@ -38,17 +38,16 @@ parametrized tests based on only some combinations failing. Upstream-Status: Inappropriate (embedded specific) Signed-off-by: Khem Raj <[email protected]> --- - tests/protocols/test_websocket.py | 19 +++++++++++++++++++ + tests/protocols/test_websocket.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/protocols/test_websocket.py b/tests/protocols/test_websocket.py -index 87a151d..85eb362 100644 --- a/tests/protocols/test_websocket.py +++ b/tests/protocols/test_websocket.py -@@ -204,6 +204,11 @@ async def test_close_connection(ws_protocol_cls: WSProtocol, http_protocol_cls: +@@ -206,6 +206,11 @@ assert not is_open - - + + +# FAIL: tests/protocols/test_websocket.py:test_headers[websockets-httptools] +# FAIL: tests/protocols/test_websocket.py:test_headers[websockets-h11] +# FAIL: tests/protocols/test_websocket.py:test_headers[websockets-sansio-httptools]
@@ -57,10 +56,10 @@ index 87a151d..85eb362 100644 async def test_headers(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int): class App(WebSocketResponse): async def websocket_connect(self, message: WebSocketConnectEvent): -@@ -758,6 +763,13 @@ async def test_send_binary_data_to_server_bigger_than_default_on_websockets( - assert ws.close_code == expected_result - - +@@ -762,6 +767,13 @@ + assert disconnect_code == expected_result + + +# FAIL: tests/protocols/test_websocket.py:test_fragmented_message_exceeding_max_size[wsproto-httptools] +# FAIL: tests/protocols/test_websocket.py:test_fragmented_message_exceeding_max_size[wsproto-h11] +# FAIL: tests/protocols/test_websocket.py:test_fragmented_message_exceeding_max_size[websockets-httptools]
@@ -71,10 +70,10 @@ index 87a151d..85eb362 100644 async def test_fragmented_message_exceeding_max_size( ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int ): -@@ -782,6 +794,13 @@ async def test_fragmented_message_exceeding_max_size( +@@ -784,6 +796,13 @@ assert exc_info.value.rcvd.code == 1009 - - + + +# FAIL: tests/protocols/test_websocket.py:test_fragmented_message_reassembly[wsproto-httptools] +# FAIL: tests/protocols/test_websocket.py:test_fragmented_message_reassembly[wsproto-h11] +# FAIL: tests/protocols/test_websocket.py:test_fragmented_message_reassembly[websockets-httptools]
@@ -82,6 +81,6 @@ index 87a151d..85eb362 100644 +# FAIL: tests/protocols/test_websocket.py:test_fragmented_message_reassembly[websockets-sansio-httptools] +# FAIL: tests/protocols/test_websocket.py:test_fragmented_message_reassembly[websockets-sansio-h11] [email protected](reason="failing on Yocto/OpenEmbedded") + @pytest.mark.parametrize("opcode", [Opcode.TEXT, Opcode.BINARY]) async def test_fragmented_message_reassembly( - ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int - ): + ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int, opcode: Opcode
meta-python/recipes-devtools/python/python3-uvicorn_0.54.0.bb renamed from meta-python/recipes-devtools/python/python3-uvicorn_0.49.0.bb +2 -2
@@ -4,7 +4,7 @@ LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE.md;md5=5c778842f66a649636561c423c0eec2e" RECIPE_MAINTAINER = "Tom Geelen <[email protected]>" -SRC_URI[sha256sum] = "ebf4271aa580d9de97f93192d4595176df6e91f9aae919ca73e4fc07df1e66a3" +SRC_URI[sha256sum] = "a2e33cbfaa0306f8e6b0c13e0cb89d7d7a2da3e62b90c66e18c33d9807b28620" SRC_URI += "file://0001-ptest-disable-failing-tests.patch \ file://0002-ptest-skip-test_headers.patch \
@@ -27,7 +27,7 @@ RDEPENDS:${PN} = "\ RDEPENDS:${PN}-ptest += "\ python3-a2wsgi \ - python3-httpx \ + python3-httpx2 \ python3-pytest-mock \ python3-pyyaml \ "
PATCH 101/105 python3-virtualenv: upgrade 21.14.13 -> 21.15.6
In reply to Khem RajAdd hatch-fancy-pypi-readme to DEPENDS, now required by the build.
Changes:
- 21.15.0: zipapp bundles dependencies for Python 3.15 and no longer bundles Python 3.8.
- Embedded pip upgraded to 26.3.
- Reject an empty or whitespace-only destination (an unset VENV in "virtualenv --clear $VENV" could delete the working directory).
- -p/--python and --try-first-with now replace configured values instead of merging; --app-data handling and seed wheel staging made more robust.
- Activation: PYTHONHOME cleared/unset (PowerShell, Nushell, csh), empty PATH entries removed, xonsh sets PKG_CONFIG_PATH, virtualenv.ini read without % interpolation.
- Fixed seeded console_scripts names such as python3-config overwriting the environment's python executable.
AI-Generated: Uses Claude Code
---
...n3-virtualenv_21.14.13.bb => python3-virtualenv_21.15.6.bb} | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-virtualenv_21.14.13.bb => python3-virtualenv_21.15.6.bb} (81%)meta-python/recipes-devtools/python/python3-virtualenv_21.15.6.bb renamed from meta-python/recipes-devtools/python/python3-virtualenv_21.14.13.bb +2 -1
@@ -4,12 +4,13 @@ HOMEPAGE = "https://github.com/pypa/virtualenv" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=36ef9437b761b314fa717c786c5ca460" -SRC_URI[sha256sum] = "de5307ba4b9a0001d9c8ea02832d38f63ca432880f416c1bface61c4323fd905" +SRC_URI[sha256sum] = "c8b65c7d206ca6ef18de9352c160b3f04f66fff9f6b0ec8fd31f14688eba52c4" BBCLASSEXTEND = "native nativesdk" inherit pypi python_hatchling DEPENDS += "\ + python3-hatch-fancy-pypi-readme-native \ python3-hatch-vcs-native \ "
PATCH 102/105 python3-watchdog: upgrade 6.0.0 -> 7.1.0
In reply to Khem RajChanges:
- 7.0.0 BREAKING: dropped Python 3.9 and 3.10; added Python 3.15.
- inotify: instance created lazily, recursive watches reconciled after queue overflow, directories moved into a watched tree are watched, fixed thread dying with KeyError on tree copies.
- DirectorySnapshotDiff no longer reports new symlinks as moves.
- case_sensitive=False matching fixed on Python <3.13; debounce_ interval_seconds and DelayedQueue.delay_sec deprecated.
- watchmedo: runnable via "python -m watchdog"; AutoRestartTrick stop signal works on Windows; generate-tricks-yaml output loadable.
- fsevents extension builds on PyPy 3.12.
AI-Generated: Uses Claude Code
---
.../{python3-watchdog_6.0.0.bb => python3-watchdog_7.1.0.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-watchdog_6.0.0.bb => python3-watchdog_7.1.0.bb} (76%)meta-python/recipes-devtools/python/python3-watchdog_7.1.0.bb renamed from meta-python/recipes-devtools/python/python3-watchdog_6.0.0.bb +1 -1
@@ -3,7 +3,7 @@ SUMMARY = "Filesystem events monitoring" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" -SRC_URI[sha256sum] = "9ddf7c82fda3ae8e24decda1338ede66e1c99883db93711d8fb941eaa2d8c282" +SRC_URI[sha256sum] = "d3861e255416f49a1384474cb2efa097de165fb330d4c5432ce6708b509ed922" inherit pypi setuptools3
PATCH 103/105 python3-web3: upgrade 7.16.0 -> 8.0.0
In reply to Khem RajUpstream dropped setup.py; build with python_setuptools_build_meta, setuptools-scm and wheel.
Changes:
- BREAKING: dropped Python 3.8 and 3.9 (now >=3.10); removed the deprecated LegacyWebSocketProvider and the deprecated get_uncle_* methods; AsyncWeb3 is now generic; TypedDict field names use camelCase for JSON-RPC consistency.
- Dependency floors raised: eth-abi>=6, eth-account>=0.14, eth-utils
Quoted 1 line
=5.3.0, hexbytes>=2, websockets>=14 (was <16), pyunormalize>=15;
types-requests dependency removed.
- ENS resolution now uses the Universal Resolver; CCIP read config updated.
- Fixes: logs subscription topics, EIP-7702 auth signature field types, AsyncBeacon timeout AttributeError, utcnow() deprecation.
- Added Python 3.14 support.
AI-Generated: Uses Claude Code
---
.../{python3-web3_7.16.0.bb => python3-web3_8.0.0.bb} | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
rename meta-python/recipes-devtools/python/{python3-web3_7.16.0.bb => python3-web3_8.0.0.bb} (76%)meta-python/recipes-devtools/python/python3-web3_8.0.0.bb renamed from meta-python/recipes-devtools/python/python3-web3_7.16.0.bb +4 -2
@@ -4,11 +4,13 @@ SECTION = "devel/python" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=1d34d9701a1461e4bd71a904ac4cf7be" -SRC_URI[sha256sum] = "b4a75a3fa94fef4d23d502eb3c2244146ef9a1ee0082cf1cb0a91586ba0510c3" +SRC_URI[sha256sum] = "8d898fe1909037d6269c998d27c1806ce201cf6d7e49514ad6f3e4dcc64e6e9a" CVE_PRODUCT = "ethereum:web3.py apeworx:web3.py" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta + +DEPENDS += "python3-setuptools-scm-native python3-wheel-native" RDEPENDS:${PN} += " \ python3-aiohttp \
PATCH 104/105 python3-xlsxwriter: upgrade 3.2.1 -> 3.3.1
In reply to Khem RajUpstream dropped setup.py; inherit python_setuptools_build_meta.
License-Update: Copyright year bump.
Changes:
- 3.3.0 migrated packaging from setup.py to pyproject.toml (PEP 639 SPDX license); 3.2.3 dropped Python 3.6/3.7 (minimum is now 3.8).
- New: insert_checkbox(), Color() type with theme colors, chartsheet set_zoom_to_fit(), use_custom_theme() for .thmx/.xlsx themes, table alt text, data label positioning, chart title formatting.
- Image() and use_custom_theme() raise TypeError (was ValueError) for unsupported source/theme types.
- Fixes: autofilter range limits, conditional format priorities and "future" function prefixes, autofit hiding columns, set_column() widths, add_table() duplicate headers, GIF/BMP size detection, object positioning performance, Excel string length checks.
- py.typed removed in 3.2.9; typing annotations added in 3.2.x.
AI-Generated: Uses Claude Code
---
...on3-xlsxwriter_3.2.1.bb => python3-xlsxwriter_3.3.1.bb} | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
rename meta-python/recipes-devtools/python/{python3-xlsxwriter_3.2.1.bb => python3-xlsxwriter_3.3.1.bb} (57%)meta-python/recipes-devtools/python/python3-xlsxwriter_3.3.1.bb renamed from meta-python/recipes-devtools/python/python3-xlsxwriter_3.2.1.bb +3 -4
@@ -2,11 +2,10 @@ SUMMARY = "Python 2 and 3 compatibility library" HOMEPAGE = "https://xlsxwriter.readthedocs.io" SECTION = "devel/python" LICENSE = "BSD-2-Clause" -LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a4bab8df34a9a138b4e0ca56b8559a05" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=5249ec013d324b4f1e23d5b019e679ca" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta -PYPI_PACKAGE_SDIST = "XlsxWriter" RDEPENDS:${PN} += " \ python3-crypt \
@@ -16,6 +15,6 @@ RDEPENDS:${PN} += " \ python3-io \ " -SRC_URI[sha256sum] = "97618759cb264fb6a93397f660cca156ffa9561743b1823dafb60dc4474e1902" +SRC_URI[sha256sum] = "0867761912cceac76f97ffa76eeda18c623ae9217f601be8512f55b1af4bdb6e" BBCLASSEXTEND = "native nativesdk"
PATCH 105/105 python3-zopeevent: upgrade 5.0 -> 6.2
In reply to Khem RajLicense-Update: PKG-INFO no longer has the License line at line 8; point at LICENSE.txt (ZPL-2.1) instead.
Changes:
- 6.0: replaced the pkg_resources namespace with a PEP 420 native namespace package.
- 6.1: no longer needs setuptools at runtime; added Python 3.14.
- Dropped Python 3.7, 3.8 (5.1) and 3.9 (6.1); added 3.12/3.13.
- 6.2: package metadata moved from setup.py to pyproject.toml; build allows setuptools <82. 5.1.1 requires setuptools >=75.8.2.
AI-Generated: Uses Claude Code
--- .../recipes-devtools/python/python3-zopeevent_5.0.bb | 11 ----------- .../recipes-devtools/python/python3-zopeevent_6.2.bb | 11 +++++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-zopeevent_5.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-zopeevent_6.2.bb
meta-python/recipes-devtools/python/python3-zopeevent_5.0.bb deleted +0 -11
@@ -1,11 +0,0 @@ -DESCRIPTION = "The zope.event package provides a simple event system" - -LICENSE = "ZPL-2.1" -LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=72092419572155ddc2d4fb7631c63dd3" - -SRC_URI[sha256sum] = "bac440d8d9891b4068e2b5a2c5e2c9765a9df762944bda6955f96bb9b91e67cd" - -PYPI_PACKAGE = "zope.event" -PYPI_PACKAGE_SDIST = "zope.event" - -inherit pypi setuptools3
meta-python/recipes-devtools/python/python3-zopeevent_6.2.bb new file +11 -0
@@ -0,0 +1,11 @@ +DESCRIPTION = "The zope.event package provides a simple event system" + +LICENSE = "ZPL-2.1" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=78ccb3640dc841e1baecb3e27a6966b2" + +SRC_URI[sha256sum] = "b97d5d6327067ee6b9dfcbdf606ade9ade70991e19c162e808ea39e5fcf0f8d3" + +PYPI_PACKAGE = "zope.event" +PYPI_PACKAGE_SDIST = "zope_event" + +inherit pypi setuptools3