summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python/recipes-devtools')
-rw-r--r--meta-python/recipes-devtools/python/python3-filelock/run-ptest6
-rw-r--r--meta-python/recipes-devtools/python/python3-filelock_3.20.2.bb9
2 files changed, 14 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python3-filelock/run-ptest b/meta-python/recipes-devtools/python/python3-filelock/run-ptest
new file mode 100644
index 0000000000..88654deb70
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-filelock/run-ptest
@@ -0,0 +1,6 @@
1#!/bin/sh
2
3# Some tests require non-root
4useradd tester || echo test user exists already
5
6su tester -c "pytest --automake"
diff --git a/meta-python/recipes-devtools/python/python3-filelock_3.20.2.bb b/meta-python/recipes-devtools/python/python3-filelock_3.20.2.bb
index 75eb16635c..2a0af552b6 100644
--- a/meta-python/recipes-devtools/python/python3-filelock_3.20.2.bb
+++ b/meta-python/recipes-devtools/python/python3-filelock_3.20.2.bb
@@ -5,11 +5,12 @@ HOMEPAGE = "https://py-filelock.readthedocs.io/"
5LICENSE = "Unlicense" 5LICENSE = "Unlicense"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=911690f51af322440237a253d695d19f" 6LIC_FILES_CHKSUM = "file://LICENSE;md5=911690f51af322440237a253d695d19f"
7 7
8SRC_URI += "file://run-ptest"
8SRC_URI[sha256sum] = "a2241ff4ddde2a7cebddf78e39832509cb045d18ec1a09d7248d6bfc6bfbbe64" 9SRC_URI[sha256sum] = "a2241ff4ddde2a7cebddf78e39832509cb045d18ec1a09d7248d6bfc6bfbbe64"
9 10
10BBCLASSEXTEND = "native nativesdk" 11BBCLASSEXTEND = "native nativesdk"
11 12
12inherit pypi python_hatchling 13inherit pypi python_hatchling ptest-python-pytest
13 14
14DEPENDS += "\ 15DEPENDS += "\
15 python3-hatch-vcs-native \ 16 python3-hatch-vcs-native \
@@ -20,3 +21,9 @@ RDEPENDS:${PN} += " \
20 python3-logging \ 21 python3-logging \
21 python3-asyncio \ 22 python3-asyncio \
22" 23"
24
25RDEPENDS:${PN}-ptest += " \
26 python3-pytest-asyncio \
27 python3-pytest-mock \
28 python3-virtualenv \
29"