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.
epel9
Carl George 3 years ago
parent 9c8af9d92e
commit dcc8e6f335

@ -5,7 +5,7 @@ a "user data dir".}
Name: python-%{srcname} Name: python-%{srcname}
Version: 2.3.0 Version: 2.3.0
Release: 2%{?dist} Release: 3%{?dist}
Summary: Python module for determining appropriate platform-specific dirs Summary: Python module for determining appropriate platform-specific dirs
License: MIT License: MIT
URL: https://github.com/platformdirs/platformdirs URL: https://github.com/platformdirs/platformdirs
@ -31,7 +31,7 @@ BuildRequires: python3-devel
%generate_buildrequires %generate_buildrequires
# Upstream uses tox, but we don't use it, to avoid a build dependency loop # Upstream uses tox, but we don't use it, to avoid a build dependency loop
# platformdirs <- virtualenv <- tox # platformdirs <- virtualenv <- tox
%pyproject_buildrequires -r %pyproject_buildrequires -x test
%build %build
@ -44,7 +44,7 @@ BuildRequires: python3-devel
%check %check
%{python3} -m unittest discover %pytest
%files -n python3-%{srcname} -f %{pyproject_files} %files -n python3-%{srcname} -f %{pyproject_files}
@ -53,6 +53,10 @@ BuildRequires: python3-devel
%changelog %changelog
* Sat Dec 04 2021 Carl George <carl@george.computer> - 2.3.0-3
- Use "test" extra to generate buildrequires
- Run tests with %%pytest
* Tue Oct 26 2021 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-2 * Tue Oct 26 2021 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-2
- Don't use tox during the build to avoid a build dependency loop - Don't use tox during the build to avoid a build dependency loop

Loading…
Cancel
Save