From 7a3ce6a063a593190154043c63d977efe8ffa78b Mon Sep 17 00:00:00 2001 From: Gyorgy Sarvari Date: Sun, 15 Mar 2026 21:41:00 +0100 Subject: python3-cassandra-driver: upgrade 3.29.2 -> 3.29.3 Also, add a patch to be able to build with Setuptools 82. This patch is oe-specific, but upstream has already merged[1] a patch that should make it compatible with the latest Setuptools. It however seems to require multiple patches to apply clean. The patch in this change is expected to be a short term workaround until the next version is released. Changelog: Features - Upgraded cython to 3.0.x - Add support for DSE 6.9.x and HCD releases to CI - Add execute_concurrent_async and expose execute_concurrent_* in Session Bug Fixes - Update geomet to align with requirements.txt - Connection failure to SNI endpoint when first host is unavailable - Maintain compatibility with CPython 3.13 Others - Remove duplicated condition in primary key check - Remove Python 3.8 which reached EOL on Oct 2024, update cryptography lib to 42 - Remove obsolete urllib2 from ez_setup.py - Remove stale dependency on sure - Removed 2.7 Cpython defines [1]: https://github.com/apache/cassandra-python-driver/pull/1268 Signed-off-by: Gyorgy Sarvari Signed-off-by: Khem Raj --- ...-verifying-the-availability-of-setuptools.patch | 34 ++++++++++++++++++++++ .../python/python3-cassandra-driver_3.29.2.bb | 28 ------------------ .../python/python3-cassandra-driver_3.29.3.bb | 31 ++++++++++++++++++++ 3 files changed, 65 insertions(+), 28 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-cassandra-driver/0001-skip-verifying-the-availability-of-setuptools.patch delete mode 100644 meta-python/recipes-devtools/python/python3-cassandra-driver_3.29.2.bb create mode 100644 meta-python/recipes-devtools/python/python3-cassandra-driver_3.29.3.bb (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-cassandra-driver/0001-skip-verifying-the-availability-of-setuptools.patch b/meta-python/recipes-devtools/python/python3-cassandra-driver/0001-skip-verifying-the-availability-of-setuptools.patch new file mode 100644 index 0000000000..b58fd04752 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-cassandra-driver/0001-skip-verifying-the-availability-of-setuptools.patch @@ -0,0 +1,34 @@ +From ebee090ac020c5a4e4194788fc2f53d7a4e30b40 Mon Sep 17 00:00:00 2001 +From: Gyorgy Sarvari +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 +--- + 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 \ diff --git a/meta-python/recipes-devtools/python/python3-cassandra-driver_3.29.2.bb b/meta-python/recipes-devtools/python/python3-cassandra-driver_3.29.2.bb deleted file mode 100644 index f60167d309..0000000000 --- a/meta-python/recipes-devtools/python/python3-cassandra-driver_3.29.2.bb +++ /dev/null @@ -1,28 +0,0 @@ -SUMMARY = "DataStax Python Driver for Apache Cassandra" -DESCRIPTION = "A modern, feature-rich and highly-tunable Python client \ -library for Apache Cassandra (1.2+) and DataStax Enterprise (3.1+) using \ -exclusively Cassandra's binary protocol and Cassandra Query Language v3." -HOMEPAGE = "https://github.com/datastax/python-driver" -SECTION = "devel/python" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93" -SRCNAME = "cassandra-driver" - -SRC_URI[sha256sum] = "c4310a7d0457f51a63fb019d8ef501588c491141362b53097fbc62fa06559b7c" - -inherit pypi setuptools3 - -RDEPENDS:${PN} += "\ - python3-cython \ - python3-geomet \ - python3-json \ - python3-misc \ - python3-multiprocessing \ - python3-numbers \ - python3-six \ - libevent \ -" - -DEPENDS += "\ - python3-cython \ -" diff --git a/meta-python/recipes-devtools/python/python3-cassandra-driver_3.29.3.bb b/meta-python/recipes-devtools/python/python3-cassandra-driver_3.29.3.bb new file mode 100644 index 0000000000..6ab86300f5 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-cassandra-driver_3.29.3.bb @@ -0,0 +1,31 @@ +SUMMARY = "DataStax Python Driver for Apache Cassandra" +DESCRIPTION = "A modern, feature-rich and highly-tunable Python client \ +library for Apache Cassandra (1.2+) and DataStax Enterprise (3.1+) using \ +exclusively Cassandra's binary protocol and Cassandra Query Language v3." +HOMEPAGE = "https://github.com/datastax/python-driver" +SECTION = "devel/python" +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" + +PYPI_PACKAGE = "cassandra_driver" + +inherit pypi python_setuptools_build_meta + +RDEPENDS:${PN} += "\ + python3-cython \ + python3-geomet \ + python3-json \ + python3-misc \ + python3-multiprocessing \ + python3-numbers \ + python3-six \ + libevent \ +" + +DEPENDS += "\ + python3-cython \ +" -- cgit v1.2.3-54-g00ecf