From a1fed5675cd2edb6cfd4cf8dd1fe56f18fe393e8 Mon Sep 17 00:00:00 2001 From: Liu Yiding Date: Tue, 22 Jul 2025 11:12:21 +0800 Subject: python3-portalocker: upgrade 3.1.1 -> 3.2.0 fix the issue that: | ImportError while importing test module '/usr/lib/python3-portalocker/ptest/tests/test_lock_flags.py'. | Hint: make sure your test modules/packages have valid Python names. | Traceback: | ../../python3.13/importlib/__init__.py:88: in import_module | return _bootstrap._gcd_import(name[level:], package, level) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | tests/test_lock_flags.py:7: in | from portalocker_tests.conftest import LOCKERS | E ModuleNotFoundError: No module named 'portalocker_tests' | ERROR: tests/test_lock_flags.py:tests/test_lock_flags.py portalocker_tests is a dir in source, we need to keep it python3-portalocker/3.2.0/sources/portalocker-3.2.0$ ls -l -t portalocker_tests/ total 60 -rw-r--r-- 1 userland userland 2019 Jun 14 13:20 conftest.py Changelog: ========== - Rewrote locking mechanism to allow for custom locking classes so both Windows and Posix (Linux/Mac/BSD) systems have configurable locking options for both exclusive and shared locking. Signed-off-by: Liu Yiding Signed-off-by: Khem Raj --- .../python3-portalocker_3.1.1.bb | 36 ---------------------- .../python3-portalocker_3.2.0.bb | 36 ++++++++++++++++++++++ 2 files changed, 36 insertions(+), 36 deletions(-) delete mode 100644 meta-python/recipes-extended/python3-portalocker/python3-portalocker_3.1.1.bb create mode 100644 meta-python/recipes-extended/python3-portalocker/python3-portalocker_3.2.0.bb (limited to 'meta-python') diff --git a/meta-python/recipes-extended/python3-portalocker/python3-portalocker_3.1.1.bb b/meta-python/recipes-extended/python3-portalocker/python3-portalocker_3.1.1.bb deleted file mode 100644 index 7a36ab74e3..0000000000 --- a/meta-python/recipes-extended/python3-portalocker/python3-portalocker_3.1.1.bb +++ /dev/null @@ -1,36 +0,0 @@ -SUMMARY = "Cross-platform locking library" -DESCRIPTION = "Portalocker is a library to provide an easy API to file locking" -LICENSE = "BSD-3-Clause" - -LIC_FILES_CHKSUM = "file://LICENSE;md5=152634da660a374ca18c0734ed07c63c" - -SRC_URI[sha256sum] = "ec20f6dda2ad9ce89fa399a5f31f4f1495f515958f0cb7ca6543cef7bb5a749e" - -DEPENDS += "python3-setuptools-scm-native" - -inherit pypi python_setuptools_build_meta ptest - -SRC_URI += " \ - file://run-ptest \ -" - -RDEPENDS:${PN}-ptest += " \ - python3-multiprocessing \ - python3-pytest \ - python3-redis \ - python3-unittest-automake-output \ - redis \ -" - -do_install_ptest() { - install -d ${D}${PTEST_PATH}/tests - cp -rf ${S}/portalocker_tests/* ${D}${PTEST_PATH}/tests/ - rm -rf ${D}${PTEST_PATH}/tests/test_combined.py -} - -RDEPENDS:${PN} += " \ - python3-fcntl \ - python3-logging \ -" - -BBCLASSEXTEND = "native nativesdk" diff --git a/meta-python/recipes-extended/python3-portalocker/python3-portalocker_3.2.0.bb b/meta-python/recipes-extended/python3-portalocker/python3-portalocker_3.2.0.bb new file mode 100644 index 0000000000..1d70b586c7 --- /dev/null +++ b/meta-python/recipes-extended/python3-portalocker/python3-portalocker_3.2.0.bb @@ -0,0 +1,36 @@ +SUMMARY = "Cross-platform locking library" +DESCRIPTION = "Portalocker is a library to provide an easy API to file locking" +LICENSE = "BSD-3-Clause" + +LIC_FILES_CHKSUM = "file://LICENSE;md5=152634da660a374ca18c0734ed07c63c" + +SRC_URI[sha256sum] = "1f3002956a54a8c3730586c5c77bf18fae4149e07eaf1c29fc3faf4d5a3f89ac" + +DEPENDS += "python3-setuptools-scm-native" + +inherit pypi python_setuptools_build_meta ptest + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN}-ptest += " \ + python3-multiprocessing \ + python3-pytest \ + python3-redis \ + python3-unittest-automake-output \ + redis \ +" + +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 +} + +RDEPENDS:${PN} += " \ + python3-fcntl \ + python3-logging \ +" + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf