From b02df7ef0d14de7e2aab4b8b290d7e2833c6c48b Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Wed, 13 Jul 2022 23:09:15 -0500 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. --- 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 ddeb6f6..84cb974 100644 --- a/pyproject-rpm-macros.spec +++ b/pyproject-rpm-macros.spec @@ -56,6 +56,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 @@ -103,7 +106,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