|
|
|
@ -6,7 +6,7 @@ A small Python module for determining appropriate platform-specific dirs, e.g.
|
|
|
|
|
a "user data dir".}
|
|
|
|
|
|
|
|
|
|
Name: python-%{srcname}
|
|
|
|
|
Version: 2.5.2
|
|
|
|
|
Version: 2.5.4
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Python module for determining appropriate platform-specific dirs
|
|
|
|
|
License: MIT
|
|
|
|
@ -34,9 +34,12 @@ BuildRequires: pyproject-rpm-macros >= 1.2.0
|
|
|
|
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
|
|
|
|
|
sed -r -i '/^[[:blank:]]*"pytest-cov\b/d' pyproject.toml
|
|
|
|
|
|
|
|
|
|
# Work with the test dependency versions we have in EPEL9:
|
|
|
|
|
sed -r -i 's/^([[:blank:]]*"(pytest.*|appdirs))[>~=]=.*"/\1"/' pyproject.toml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%pyproject_buildrequires -w %{?with_tests:-x test}
|
|
|
|
|
%pyproject_buildrequires %{?with_tests:-x test}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
@ -59,11 +62,13 @@ sed -r -i '/^[[:blank:]]*"pytest-cov\b/d' pyproject.toml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{srcname} -f %{pyproject_files}
|
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
%doc README.rst CHANGES.rst
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Aug 02 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 2.5.4-1
|
|
|
|
|
- Update to 2.5.4 (requires hatchling >=1.11.1)
|
|
|
|
|
|
|
|
|
|
* Thu Apr 21 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 2.5.2-1
|
|
|
|
|
- Update to 2.5.2; accommodate upstream’s switch to hatchling build backend
|
|
|
|
|
- Add a build conditional for the tests
|
|
|
|
|