Skip to contentSkip to conversation

python3-filelock: Upgrade 3.29.4 -> 3.29.6

PATCH New Leon Anavi 1 participant 4 messages Jul 7

lore
Share & tools
lore

Leon Anavi

author
#0 lore raw

PATCH 1/4 python3-filelock: Upgrade 3.29.4 -> 3.29.6

Upgrade to release 3.29.6:

- serialise singleton construction in FileLockMeta
- _util: drop the dead st_mtime=0 short-circuit in raise_on_not_writable_file
- test: silence fork DeprecationWarning on 3.15

---
 .../{python3-filelock_3.29.4.bb => python3-filelock_3.29.6.bb}  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-filelock_3.29.4.bb => python3-filelock_3.29.6.bb} (89%)
meta-python/recipes-devtools/python/python3-filelock_3.29.6.bb renamed from meta-python/recipes-devtools/python/python3-filelock_3.29.4.bb +1 -1
similarity index 89%
rename from meta-python/recipes-devtools/python/python3-filelock_3.29.4.bb
rename to meta-python/recipes-devtools/python/python3-filelock_3.29.6.bb
index 1510e89760..75e29dab4e 100644
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=2c6acbdf7bb74caa37512c3a5ca6857b"
 
 SRC_URI += "file://run-ptest"
 
-SRC_URI[sha256sum] = "10cdb3656fc44541cdf30652a93fb10ec6b05325620eb316bd26893e4201538a"
+SRC_URI[sha256sum] = "895c532ef3f4ef04972b9446a8c4e2931a5c399ff3c4be4c9369f2639b80f793"
 
 BBCLASSEXTEND = "native nativesdk"
 
Signature · 1 line
2.47.3
author
#1 lore raw

PATCH 2/4 python3-pycurl: Upgrade 7.46.0 -> 7.47.0

Upgrade to release 7.47.0:

- Use dynamic SSL ports in certificate tests
- Harden test_clear_assignment_inside_socket_callback_resets_socketp test
- Rename index field to idx in HstsIndex to avoid shadowing
- Fix test_callbacks_non_minus_one_return_continues_transfer on macOS
- Use PYCURL_REQUIRE_HANDLE and PYCURL_REQUIRE_NOT_RUNNING instead of magic numbers
- Convert pycurl to a Python package with the C extension renamed to pycurl._pycurl
- Fix flaky CONNECT_ONLY send/recv tests by waiting on active socket readiness instead of sleeping after EAGAIN
- Add PyMutex support on Python 3.13+
- Modernize ssh_key_cb_test and use a local SFTP server
- Use set instead of dict for saving refs to easy objects in multi
- Make closed as property instead a method
- Add free-threaded CPython support
- Add AsyncCurlMulti
- Fix flaky memory_mgmt callback
- Add libcurl strerror wrappers (easy/multi/share/url)
- Modernize write/header tests
- Implement Curl multi notify API
- Pin socket callback tests to IPv4 to handle dual-stack localhost resolution
- Integrate notify in AsyncCurlMulti
- Review GIL management
- Capture more expected warnings during tests
- Fix/update/remove some examples
- Fix truncated timeout value in multi timer callback
- Fix incorrect argument type in debug callback
- Fix some reference leaks
- Ensure errors are logged in progress/xferinfo callbacks
- Support zero-copy write/header callbacks
- Evolve CurlShare with share()/unshare(), Python-level thread safety, and CURLSHcode error propagation
- Fix test_default_mode_autopongs_server_ping with libcurl 8.21.0

---
 .../{python3-pycurl_7.46.0.bb => python3-pycurl_7.47.0.bb}      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-pycurl_7.46.0.bb => python3-pycurl_7.47.0.bb} (87%)
meta-python/recipes-devtools/python/python3-pycurl_7.47.0.bb renamed from meta-python/recipes-devtools/python/python3-pycurl_7.46.0.bb +1 -1
similarity index 87%
rename from meta-python/recipes-devtools/python/python3-pycurl_7.46.0.bb
rename to meta-python/recipes-devtools/python/python3-pycurl_7.47.0.bb
index fa98ad1e03..7259957174 100644
@@ -12,7 +12,7 @@ LIC_FILES_CHKSUM = "file://COPYING-LGPL;md5=4fbd65380cdd255951079008b364516c \
                     file://COPYING-MIT;md5=be42e1b1e58c8d59c2901fd747bfc55d \
                     "
 
-SRC_URI[sha256sum] = "422ed7005b98768fe60fe6b6cb8bb6a4e1fc18b5433402e8fbdaba91811c4604"
+SRC_URI[sha256sum] = "5e3cf357939da8d4ceefe3c7f305afcf9b47cba66cfd95e7768ca43b38445e14"
 
 DEPENDS = "curl"
 
Signature · 1 line
2.47.3
author
#2 lore raw

PATCH 3/4 python3-flaky: Add recipe

In reply to Leon Anavi

Add a new recipe for flaky, plugin for pytest that automatically reruns flaky tests. It is required by pycurl tests.

---
 .../recipes-devtools/python/python3-flaky_3.8.1.bb  | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-flaky_3.8.1.bb
meta-python/recipes-devtools/python/python3-flaky_3.8.1.bb new file +13 -0
new file mode 100644
index 0000000000..bfe63607fc
@@ -0,0 +1,13 @@
+DESCRIPTION = "Plugin for pytest that automatically reruns flaky tests."
+HOMEPAGE = "https://github.com/box/flaky"
+SECTION = "devel/python"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=55c52d858ecd501c970ad04d2c70ebc6"
+
+SRC_URI[sha256sum] = "47204a81ec905f3d5acfbd61daeabcada8f9d4031616d9bcb0618461729699f5"
+
+inherit pypi setuptools3
+
+RDEPENDS:${PN} += " \
+    python3-pytest \
+"
Signature · 1 line
2.47.3
author
#3 lore raw

PATCH 4/4 python3-pycurl: Enable tests

In reply to Leon Anavi

Inherit ptest, update runtime dependencies and include the tests for pycurl.

---
 .../python/python3-pycurl/run-ptest           |  3 +++
 .../python/python3-pycurl_7.47.0.bb           | 21 ++++++++++++++++++-
 2 files changed, 23 insertions(+), 1 deletion(-)
 create mode 100644 meta-python/recipes-devtools/python/python3-pycurl/run-ptest
meta-python/recipes-devtools/python/python3-pycurl/run-ptest new file +3 -0
new file mode 100644
index 0000000000..8d2017d39c
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest --automake
meta-python/recipes-devtools/python/python3-pycurl_7.47.0.bb +20 -1
index 7259957174..5ed7b8e30d 100644
@@ -14,8 +14,27 @@ LIC_FILES_CHKSUM = "file://COPYING-LGPL;md5=4fbd65380cdd255951079008b364516c \
 
 SRC_URI[sha256sum] = "5e3cf357939da8d4ceefe3c7f305afcf9b47cba66cfd95e7768ca43b38445e14"
 
+SRC_URI += " file://run-ptest"
+
 DEPENDS = "curl"
 
-inherit pypi python_setuptools_build_meta
+inherit pypi python_setuptools_build_meta ptest
+
+RDEPENDS:${PN}-ptest += " \
+    python3-pytest \
+    python3-core \
+    python3-flask \
+    python3-numpy \
+    python3-flaky \
+    python3-setuptools \
+    python3-unittest \
+    python3-unittest-automake-output \
+"
+
+do_install_ptest() {
+    install -d ${D}${PTEST_PATH}/tests
+    cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+    cp -f ${S}/setup.py ${D}${PTEST_PATH}
+}
 
 BBCLASSEXTEND  += "native nativesdk"
Signature · 1 line
2.47.3