[packages/python3-httpx-sse] Rel 2. Fix build and test dependencies
arekm
arekm at pld-linux.org
Tue Nov 24 14:34:13 CET 2026
commit 737bdb44c2d1db78b6f82f31f172b1ec01cbf609
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Nov 24 14:10:11 2026 +0100
Rel 2. Fix build and test dependencies
python3-httpx-sse.spec | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/python3-httpx-sse.spec b/python3-httpx-sse.spec
index b0bdaa3..7c2b250 100644
--- a/python3-httpx-sse.spec
+++ b/python3-httpx-sse.spec
@@ -18,12 +18,19 @@ BuildRequires: python3-build
BuildRequires: python3-installer
BuildRequires: python3-modules >= 1:3.9
BuildRequires: python3-setuptools
+BuildRequires: python3-setuptools_scm
+BuildRequires: python3-wheel
%if %{with tests}
BuildRequires: python3-httpx >= 0.27.1
BuildRequires: python3-pytest
+BuildRequires: python3-pytest-asyncio
+BuildRequires: python3-sse-starlette
+BuildRequires: python3-starlette
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 2.044
+# imported at runtime, not declared in upstream metadata
+Requires: python3-httpx
Requires: python3-modules >= 1:3.9
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -42,8 +49,11 @@ HTTPX.
%py3_build_pyproject
%if %{with tests}
+# addopts enforce 100% coverage via pytest-cov
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python3} -m pytest tests
+PYTEST_PLUGINS=pytest_asyncio.plugin \
+PYTHONPATH=$(pwd)/src \
+%{__python3} -m pytest -o addopts= tests
%endif
%install
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-httpx-sse.git/commitdiff/737bdb44c2d1db78b6f82f31f172b1ec01cbf609
More information about the pld-cvs-commit
mailing list