python3-pytest-localserver: added recipe which is also include ptest
PATCH 1/3 python3-pytest-localserver: added recipe which is also include ptest
pytest-localserver is a plugin for the pytest testing framework which enables you to test server connections locally.
* Tested on qemux86-64 and qemuarm64
* Add ptest into PTESTS_SLOW_META_PYTHON
Ptest result:
==============
qemux86-64:
Testsuite summary
TOTAL: 55
PASS: 54
SKIP: 1
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 44
END: /usr/lib/python3-pytest-localserver/ptest
2024-03-07T20:33
STOP: ptest-runner
TOTAL: 1 FAIL: 0
qemuarm64:
Testsuite summary
TOTAL: 55
PASS: 54
SKIP: 1
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 38
END: /usr/lib/python3-pytest-localserver/ptest
2024-03-07T20:41
STOP: ptest-runner
TOTAL: 1 FAIL: 0
--- .../ptest-packagelists-meta-python.inc | 1 + .../python3-pytest-localserver/run-ptest | 3 ++ .../python3-pytest-localserver_0.8.1.bb | 29 +++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pytest-localserver/run-ptest create mode 100644 meta-python/recipes-devtools/python/python3-pytest-localserver_0.8.1.bb
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
@@ -80,6 +80,7 @@ PTESTS_SLOW_META_PYTHON = "\ python3-arrow \ python3-lz4 \ python3-marshmallow \ + python3-pytest-localserver \ python3-traitlets \ python3-yappi \ "
meta-python/recipes-devtools/python/python3-pytest-localserver/run-ptest new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake
meta-python/recipes-devtools/python/python3-pytest-localserver_0.8.1.bb new file +29 -0
@@ -0,0 +1,29 @@ +SUMMARY = "pytest plugin to test server connections locally." +HOMEPAGE = "https://github.com/pytest-dev/pytest-localserver" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=b8da7a541d738b054dcbf70c31530432" + +DEPENDS += "python3-setuptools-scm-native" + +inherit pypi python_setuptools_build_meta ptest + +SRC_URI[sha256sum] = "66569c34fef31a5750b16effd1cd1288a7a90b59155d005e7f916accd3dee4f1" + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN}-ptest += " \ + python3-pytest \ + python3-requests \ + python3-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} + +RDEPENDS:${PN} += " \ + python3-werkzeug \ +"
Signature · 1 line
2.25.1
PATCH 2/3 python3-responses: add recipe
A utility library for mocking out the requests Python library.
---
Couldn't add ptest because throwing ERROR: Exited from signal Killed (9) after 300 sec.
When I tried with tox after cloning the upstream in docker, there was no problem. Somehow this error is encountered in QEMU.
This could happen for a variety of reasons, such as running out of memory, being killed by the system due to resource constraints, or potentially due to a bug in the code.
.../python/python3-responses_0.25.0.bb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-responses_0.25.0.bb
meta-python/recipes-devtools/python/python3-responses_0.25.0.bb new file +15 -0
@@ -0,0 +1,15 @@ +DESCRIPTION = "A utility library for mocking out the requests Python library." +HOMEPAGE = "https://github.com/getsentry/responses" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=0e601511a8517f4daf688a8eb95be7a2" + +inherit pypi setuptools3 + +SRC_URI[sha256sum] = "01ae6a02b4f34e39bffceb0fc6786b67a25eae919c6368d05eabc8d9576c2a66" + +RDEPENDS:${PN} += " \ + python3-mock \ + python3-pyyaml \ + python3-requests \ + python3-urllib3 \ +"
Signature · 1 line
2.25.1
PATCH 3/3 python3-google-auth: add ptest and update runtime dependencies
In reply to alperak* Generally we want to keep images as small as possible. RDEPENDS should not contains nothing except what is absolutely needed for a recipe.
* Tested on qemux86-64 and qemuarm64
* Add ptest into PTESTS_SLOW_META_PYTHON
Ptest results:
==============
qemux86-64:
Testsuite summary
TOTAL: 1074
PASS: 1074
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 227
END: /usr/lib/python3-google-auth/ptest
2024-03-07T21:30
STOP: ptest-runner
TOTAL: 1 FAIL: 0
qemuarm64:
Testsuite summary
TOTAL: 1074
PASS: 1074
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 184
END: /usr/lib/python3-google-auth/ptest
2024-03-07T21:15
STOP: ptest-runner
TOTAL: 1 FAIL: 0
--- .../ptest-packagelists-meta-python.inc | 1 + .../python/python3-google-auth/run-ptest | 4 ++ .../python/python3-google-auth_2.28.1.bb | 43 +++++++++++++------ 3 files changed, 34 insertions(+), 14 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-google-auth/run-ptest
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
@@ -78,6 +78,7 @@ PTESTS_FAST_META_PYTHON = "\ PTESTS_SLOW_META_PYTHON = "\ python3-arrow \ + python3-google-auth \ python3-lz4 \ python3-marshmallow \ python3-pytest-localserver \
meta-python/recipes-devtools/python/python3-google-auth/run-ptest new file +4 -0
@@ -0,0 +1,4 @@ +#!/bin/sh + +pytest --automake +
meta-python/recipes-devtools/python/python3-google-auth_2.28.1.bb +29 -14
53 lines not on this page · raw message
Signature · 1 line
2.25.1