python3-portalocker: upgrade 2.10.1 -> 3.0.0

Changelog:
===========
- Completely modernized portalocker build system and added fully strict pyright
  and mypy compliance with ruff formatting and checking.
- Dropped support for deprecated Python versions, only 3.9 and up are supported now.

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Wang Mingyu
2024-12-03 08:16:29 +08:00
committed by Khem Raj
parent 8151429148
commit 48b04c443b
@@ -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] = "21f535de2e7a82c94c130c054adb5c7421d480d5619d61073996e2f89bcb879b"
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"