From dcc8e6f3357b73058de9a80f931989dc2107722d Mon Sep 17 00:00:00 2001 From: Carl George Date: Sat, 4 Dec 2021 02:01:28 -0600 Subject: [PATCH] Fix tests Before this change, tests weren't being detected and thus were not being run. Upstream uses pytest and has a "test" extra we can leverage. --- python-platformdirs.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/python-platformdirs.spec b/python-platformdirs.spec index c47f473..161130c 100644 --- a/python-platformdirs.spec +++ b/python-platformdirs.spec @@ -5,7 +5,7 @@ a "user data dir".} Name: python-%{srcname} Version: 2.3.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Python module for determining appropriate platform-specific dirs License: MIT URL: https://github.com/platformdirs/platformdirs @@ -31,7 +31,7 @@ BuildRequires: python3-devel %generate_buildrequires # Upstream uses tox, but we don't use it, to avoid a build dependency loop # platformdirs <- virtualenv <- tox -%pyproject_buildrequires -r +%pyproject_buildrequires -x test %build @@ -44,7 +44,7 @@ BuildRequires: python3-devel %check -%{python3} -m unittest discover +%pytest %files -n python3-%{srcname} -f %{pyproject_files} @@ -53,6 +53,10 @@ BuildRequires: python3-devel %changelog +* Sat Dec 04 2021 Carl George - 2.3.0-3 +- Use "test" extra to generate buildrequires +- Run tests with %%pytest + * Tue Oct 26 2021 Miro HronĨok - 2.3.0-2 - Don't use tox during the build to avoid a build dependency loop