Skip to contentSkip to conversation

python3-pybind11: Upgrade 2.12.0 -> 2.13.6

PATCH In review Leon Anavi 2 participants 3 messages Mar 20, 2025

lore
Share & tools
lore

Leon Anavi

author
#0 lore raw

PATCH 1/2 python3-pybind11: Upgrade 2.12.0 -> 2.13.6

Upgrade to release 2.13.6:

- A new self._pybind11_conduit_v1_() method is automatically added to all py::class_-wrapped types, to enable type-safe interoperability between different independent Python/C++ bindings systems, including pybind11 versions with different PYBIND11_INTERNALS_VERSION's. Supported on pybind11 2.11.2, 2.12.1, and 2.13.6+.
- Using __cpp_nontype_template_args instead of __cpp_nontype_template_parameter_class.
- Properly translate C++ exception to Python exception when creating Python buffer from wrapped object.
- Adds an answer (FAQ) for "What is a highly conclusive and simple way to find memory leaks?".

---
 .../{python3-pybind11_2.12.0.bb => python3-pybind11_2.13.6.bb}  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-pybind11_2.12.0.bb => python3-pybind11_2.13.6.bb} (92%)
meta-python/recipes-devtools/python/python3-pybind11_2.13.6.bb renamed from meta-python/recipes-devtools/python/python3-pybind11_2.12.0.bb +1 -1
similarity index 92%
rename from meta-python/recipes-devtools/python/python3-pybind11_2.12.0.bb
rename to meta-python/recipes-devtools/python/python3-pybind11_2.13.6.bb
index 0403e406a4..ee5722fbcb 100644
@@ -7,7 +7,7 @@ DEPENDS = "\
     python3-ninja-native \
 "
 
-SRCREV = "3e9dfa2866941655c56877882565e7577de6fc7b"
+SRCREV = "a2e59f0e7065404b44dfe92a28aca47ba1378dc4"
 SRC_URI = "\
     git://github.com/pybind/pybind11.git;branch=stable;protocol=https \
 "
Signature · 1 line
2.39.5
author
#1 lore raw

PATCH 2/2 python3-pylint: Upgrade 3.3.4 -> 3.3.6

Upgrade to release 3.3.6:

- Fix a false positive for used-before-assignment when an inner function's return type annotation is a class defined at module scope.
- Fix false positives for use-implicit-booleaness-not-comparison, use-implicit-booleaness-not-comparison-to-string and use-implicit-booleaness-not-comparison-to-zero when chained comparisons are checked.
- Fix a false positive for invalid-getnewargs-ex-returned when the tuple or dict has been assigned to a name.
- Remove getopt and optparse from the list of deprecated modules.
- Fixed conditional import x.y causing false positive possibly-used-before-assignment.
- Fix a crash when something besides a class is found in an except handler.
- Fixed raising invalid-name when using camelCase for private methods with two leading underscores.

---
 ...l-Keep-tool.setuptools.license-files.patch | 48 +++++++++++++++++++
 ...ylint_3.3.4.bb => python3-pylint_3.3.6.bb} |  5 +-
 2 files changed, 51 insertions(+), 2 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python3-pylint/0002-pyproject.toml-Keep-tool.setuptools.license-files.patch
 rename meta-python/recipes-devtools/python/{python3-pylint_3.3.4.bb => python3-pylint_3.3.6.bb} (88%)
meta-python/recipes-devtools/python/python3-pylint/0002-pyproject.toml-Keep-tool.setuptools.license-files.patch new file +48 -0
new file mode 100644
index 0000000000..28ed0c8951
@@ -0,0 +1,48 @@
+From 2a08adb0e90219626dac0b6d05a21265e460eae2 Mon Sep 17 00:00:00 2001
+From: Leon Anavi <[email protected]>
+Date: Thu, 20 Mar 2025 12:09:42 +0000
+Subject: [PATCH] pyproject.toml: Keep tool.setuptools.license-files
+
+Keep legacy license declaration and tool.setuptools.license-files
+to avoid the following errors:
+
+| ValueError: invalid pyproject.toml config: `project.license`.
+| configuration error: `project.license` must be valid exactly by one definition (2 matches found):
+
+| ValueError: invalid pyproject.toml config: `project`.
+| configuration error: `project` must not contain {'license-files'} properties
+
+Upstream-Status: Inappropriate
+
+Signed-off-by: Leon Anavi <[email protected]>
+---
+ pyproject.toml | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index 0cf1ade57..7a4665ce0 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -8,8 +8,7 @@ name = "pylint"
+ description = "python code static checker"
+ readme = "README.rst"
+ keywords = [ "lint", "linter", "python", "static code analysis" ]
+-license = "GPL-2.0-or-later"
+-license-files = [ "LICENSE", "CONTRIBUTORS.txt" ]
++license = { text = "GPL-2.0-or-later" }
+ authors = [
+   { name = "Python Code Quality Authority", email = "[email protected]" },
+ ]
+@@ -65,6 +64,9 @@ scripts.pylint-config = "pylint:_run_pylint_config"
+ scripts.pyreverse = "pylint:run_pyreverse"
+ scripts.symilar = "pylint:run_symilar"
+ 
++[tool.setuptools]
++license-files = [ "LICENSE", "CONTRIBUTORS.txt" ]
++
+ [tool.setuptools.packages.find]
+ include = [ "pylint*" ]
+ 
+-- 
+2.39.5
+
meta-python/recipes-devtools/python/python3-pylint_3.3.6.bb renamed from meta-python/recipes-devtools/python/python3-pylint_3.3.4.bb +3 -2
similarity index 88%
rename from meta-python/recipes-devtools/python/python3-pylint_3.3.4.bb
rename to meta-python/recipes-devtools/python/python3-pylint_3.3.6.bb
index 92378d7fda..f70049c898 100644
@@ -3,9 +3,10 @@ HOMEPAGE = "http://www.pylint.org/"
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=c107cf754550e65755c42985a5d4e9c9"
 
-SRCREV = "c2b01c3d0b6410d4c93eb1f32fb28f2116b1e68f"
-SRC_URI += "git://github.com/pylint-dev/pylint;branch=main;protocol=https \
+SRCREV = "7ac5a4d4f77576df3a00e63f86ca86e0e1780b47"
+SRC_URI += "git://github.com/pylint-dev/pylint;branch=maintenance/3.3.x;protocol=https \
             file://0001-Adjust-test-expectations-for-ptest.patch \
+            file://0002-pyproject.toml-Keep-tool.setuptools.license-files.patch \
             file://run-ptest \
            "
 
Signature · 1 line
2.39.5
#2 lore raw
In reply to Leon Anavi
Quoted 16 lines · Leon Anavi via lists.openembedded.org

Upgrade to release 2.13.6:

- A new self._pybind11_conduit_v1_() method is automatically added to all py::class_-wrapped types, to enable type-safe interoperability between different independent Python/C++ bindings systems, including pybind11 versions with different PYBIND11_INTERNALS_VERSION's. Supported on pybind11 2.11.2, 2.12.1, and 2.13.6+.
- Using __cpp_nontype_template_args instead of __cpp_nontype_template_parameter_class.
- Properly translate C++ exception to Python exception when creating Python buffer from wrapped object.
- Adds an answer (FAQ) for "What is a highly conclusive and simple way to find memory leaks?".

I am seeing a build failure, build was on qemuriscv32 but I wonder if any 32bit system will have this error. Once qemuarm build is done I will report back.

| -- Found PythonInterp:
/home/kraj01/yoe/buildtools-5.1.2/sysroots/x86_64-pokysdk-linux/usr/bin/python3
(found suitable version "3.12.8", minimum required is "3.7")
| CMake Error at
/home/kraj01/yoe/build/tmp/work/riscv32-yoe-linux/python3-pybind11-json/0.2.15/recipe-sysroot/usr/share/cmake/pybind11/FindPythonLibsNew.cmake:214 (message):

   |   Python config failure: Python is 64-bit, chosen compiler is 32-bit
   | Call Stack (most recent call first):
   |   /home/kraj01/yoe/build/tmp/work/riscv32-yoe-linux/python3-pybind11-json/0.2.15/recipe-sysroot/usr/share/cmake/pybind11/pybind11Tools.cmake:50

(find_package)
| /home/kraj01/yoe/build/tmp/work/riscv32-yoe-linux/python3-pybind11-json/0.2.15/recipe-sysroot/usr/share/cmake/pybind11/pybind11Common.cmake:228
(include)
| /home/kraj01/yoe/build/tmp/work/riscv32-yoe-linux/python3-pybind11-json/0.2.15/recipe-sysroot/usr/share/cmake/pybind11/pybind11Config.cmake:250
(include)

   |   CMakeLists.txt:26 (find_package)
   |
   |
   | -- Configuring incomplete, errors occurred!
Quoted 34 lines
---
 .../{python3-pybind11_2.12.0.bb => python3-pybind11_2.13.6.bb}  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-pybind11_2.12.0.bb => python3-pybind11_2.13.6.bb} (92%)
meta-python/recipes-devtools/python/python3-pybind11_2.13.6.bb renamed from meta-python/recipes-devtools/python/python3-pybind11_2.12.0.bb +1 -2
similarity index 92%
rename from meta-python/recipes-devtools/python/python3-pybind11_2.12.0.bb
rename to meta-python/recipes-devtools/python/python3-pybind11_2.13.6.bb
index 0403e406a4..ee5722fbcb 100644
@@ -7,7 +7,7 @@ DEPENDS = "\
     python3-ninja-native \
 "
 
-SRCREV = "3e9dfa2866941655c56877882565e7577de6fc7b"
+SRCREV = "a2e59f0e7065404b44dfe92a28aca47ba1378dc4"
 SRC_URI = "\
     git://github.com/pybind/pybind11.git;branch=stable;protocol=https \
 "
--

2.39.5

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#116135): https://lists.openembedded.org/g/openembedded-devel/message/116135
Mute This Topic: https://lists.openembedded.org/mt/111807326/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-