Load test dependencies from file

epel9
Miro Hrončok 4 years ago
parent fad29d13d9
commit feb7699e73

@ -14,16 +14,9 @@ BuildArch: noarch
%bcond_without doc
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: pyproject-rpm-macros
BuildRequires: pyproject-rpm-macros >= 0-43
%if %{with tests}
# The test requires used by tox are defined in requirements/test.txt,
# but they are pinned, incl. transitive deps.
# The file is generated from requirements/test.in which has:
BuildRequires: %{py3_dist pexpect}
BuildRequires: %{py3_dist pytest}
BuildRequires: %{py3_dist pytest-xdist}
# RFE to use that file directly: https://bugzilla.redhat.com/show_bug.cgi?id=1936448
# optional test dependencies:
BuildRequires: %{py3_dist typing_extensions}
%endif
@ -66,7 +59,7 @@ sed -i -e '/sphinx.ext.intersphinx/d' docs/conf.py
%generate_buildrequires
%pyproject_buildrequires %{?with_tests:-x %{extras}}
%pyproject_buildrequires %{?with_tests:../requirements/test.in -x %{extras}}
%build

Loading…
Cancel
Save