From 6000eccbc69cd7348eb4b989e744542ec45df66e Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Fri, 15 Jul 2022 12:00:42 +0000 Subject: [PATCH] Use the %pytest macro This macro is defined in python3-rpm-macros, so there's no problem using it here. In fact, let's BuildRequire the macros we use. Related: rhbz#2117571 --- pyproject-rpm-macros.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject-rpm-macros.spec b/pyproject-rpm-macros.spec index 0383914..1f15118 100644 --- a/pyproject-rpm-macros.spec +++ b/pyproject-rpm-macros.spec @@ -58,6 +58,9 @@ BuildRequires: (python3dist(toml) if python3-devel < 3.11) %endif # We build on top of those: +BuildRequires: python-rpm-macros +BuildRequires: python-srpm-macros +BuildRequires: python3-rpm-macros Requires: python-rpm-macros Requires: python-srpm-macros Requires: python3-rpm-macros @@ -105,7 +108,7 @@ install -m 644 pyproject_wheel.py %{buildroot}%{_rpmconfigdir}/redhat/ %if %{with tests} %check export HOSTNAME="rpmbuild" # to speedup tox in network-less mock, see rhbz#1856356 -%{python3} -m pytest -vv --doctest-modules +%pytest -vv --doctest-modules # brp-compress is provided as an argument to get the right directory macro expansion %{python3} compare_mandata.py -f %{_rpmconfigdir}/brp-compress