dev-python/dockerflow: correct style, add missing || die

Signed-off-by: Katalin Rebhan <kat@knifepoint.net>
This commit is contained in:
Katalin Rebhan committed 2026-10-25 19:52:21 +01:00
1 parent f867f683ad
commit c5006e42be
1 file changed
+11 -6
@@ -8,12 +8,13 @@ DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1
MY_TAG_NAME="$(printf '%4d.%02d.%02d' ${PV//./ })"
MY_TAG_NAME="$(printf '%4d.%02d.%02d' "$(ver_cut 1)" "$(ver_cut 2)" "$(ver_cut 3)")"
DESCRIPTION="Python tools and helpers for Mozilla's Dockerflow"
HOMEPAGE="
https://github.com/mozilla-services/python-dockerflow
https://pypi.org/project/dockerflow/"
https://pypi.org/project/dockerflow/
"
SRC_URI="https://github.com/mozilla-services/python-dockerflow/archive/${MY_TAG_NAME}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}/python-dockerflow-${MY_TAG_NAME}"
@@ -35,19 +36,23 @@ BDEPEND="
dev-python/asgiref[${PYTHON_USEDEP}]
dev-python/flask[${PYTHON_USEDEP}]
dev-python/flask-login[${PYTHON_USEDEP}]
dev-python/blinker[${PYTHON_USEDEP}] )"
dev-python/blinker[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=( pytest-{mock,cov,django} )
EPYTEST_IGNORE=(
# sanic not packaged
tests/sanic/test_sanic.py
# flask-migrate not packaged
tests/flask/test_flask.py )
tests/flask/test_flask.py
)
EPYTEST_DESELECT=(
# I don't know what's going on with these
tests/django/test_django.py::test_error_returns_500_and_logs_error
tests/fastapi/test_fastapi.py::test_mozlog_without_correlation_id_middleware
tests/fastapi/test_fastapi.py::test_error_returns_500_and_logs_error)
tests/fastapi/test_fastapi.py::test_error_returns_500_and_logs_error
)
distutils_enable_tests pytest
src_compile() {
@@ -57,7 +62,7 @@ src_compile() {
python_test() {
# Tests expect a running redis server, so let's provide it
exec 3< <(redis-server /dev/null)
exec 3< <(redis-server /dev/null || die "failed to start redis server")
local redis_pid=$!
# Wait until it's ready