From d466f2de4c2b1f844c180c88b2ad1e7c0472740b Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Tue, 23 May 2023 19:50:32 -0400 Subject: [PATCH] Avoid pytest-cov dependency coverage tests are unwanted in Fedora and RHEL packages: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters Also, use the %%pytest macro to supply appropriate environment variables. --- python-configobj.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python-configobj.spec b/python-configobj.spec index fe55030..9e85539 100644 --- a/python-configobj.spec +++ b/python-configobj.spec @@ -15,7 +15,6 @@ BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-six BuildRequires: python%{python3_pkgversion}-pytest -BuildRequires: python%{python3_pkgversion}-pytest-cov %global _description \ ConfigObj is a simple but powerful configuration file reader and writer: an ini\ file round tripper. Its main feature is that it is very easy to use, with a\ @@ -41,7 +40,7 @@ Requires: python%{python3_pkgversion}-six export PYTHONPATH=$(pwd)/build/lib %{__python3} src/tests/configobj_doctests.py %{__python3} -m configobj.validate -py.test-%{python3_version} -c setup.cfg --color=yes --cov=configobj --cov-report=term --cov-report=html --cov-report=xml +%pytest -c setup.cfg --color=yes %files -n python%{python3_pkgversion}-configobj %doc README.md