meta-openembedded/meta-python/recipes-extended/python3-portalocker/python3-portalocker_3.2.0.bb
Liu Yiding a1fed5675c
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 <module>
|     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 <liuyd.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-22 00:16:43 -07:00

37 lines
880 B
BlitzBasic

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"