From feb7699e73b61cd7e8092b27d9f6b80f2d42e798 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 19 Jul 2021 13:07:59 +0200 Subject: [PATCH] Load test dependencies from file --- python-hypothesis.spec | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/python-hypothesis.spec b/python-hypothesis.spec index 104f25e..64c182d 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -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