Blame SPECS/python-platformdirs.spec

rdobuilder 91e8cd
%bcond_without tests
rdobuilder 91e8cd
rdobuilder 91e8cd
%global srcname platformdirs
rdobuilder 91e8cd
%global common_description %{expand:
rdobuilder 91e8cd
A small Python module for determining appropriate platform-specific dirs, e.g.
rdobuilder 91e8cd
a "user data dir".}
rdobuilder 91e8cd
rdobuilder 91e8cd
Name:           python-%{srcname}
rdobuilder 772837
Version:        3.11.0
rdobuilder 772837
Release:        1%{?dist}
rdobuilder 91e8cd
Summary:        Python module for determining appropriate platform-specific dirs
rdobuilder 91e8cd
License:        MIT
rdobuilder 91e8cd
URL:            https://github.com/platformdirs/platformdirs
rdobuilder 91e8cd
Source0:        %pypi_source
rdobuilder 91e8cd
BuildArch:      noarch
rdobuilder 91e8cd
rdobuilder 91e8cd
rdobuilder 91e8cd
%description %{common_description}
rdobuilder 91e8cd
rdobuilder 91e8cd
rdobuilder 91e8cd
%package -n python3-%{srcname}
rdobuilder 91e8cd
Summary:        %{summary}
rdobuilder 91e8cd
BuildRequires:  python3-devel
rdobuilder 91e8cd
# RHBZ#1712140, RHBZ#2076994
rdobuilder 91e8cd
BuildRequires:  pyproject-rpm-macros >= 1.2.0
rdobuilder 91e8cd
rdobuilder 91e8cd
rdobuilder 91e8cd
%description -n python3-%{srcname} %{common_description}
rdobuilder 91e8cd
rdobuilder 91e8cd
rdobuilder 91e8cd
%prep
rdobuilder 91e8cd
%autosetup -n %{srcname}-%{version}
rdobuilder 91e8cd
rdobuilder 91e8cd
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
rdobuilder 91e8cd
sed -r -i '/^[[:blank:]]*"pytest-cov\b/d' pyproject.toml
rdobuilder 91e8cd
sed -r -i '/^[[:blank:]]*"covdefaults\b/d' pyproject.toml
rdobuilder 91e8cd
sed -i 's/hatchling>=.*/hatchling\",/g' pyproject.toml
rdobuilder 91e8cd
sed -i 's/pytest>=.*/pytest\",/g' pyproject.toml
rdobuilder 91e8cd
sed -i 's/pytest-mock>=.*/pytest-mock\",/g' pyproject.toml
rdobuilder 91e8cd
rdobuilder 91e8cd
%generate_buildrequires
rdobuilder 91e8cd
%pyproject_buildrequires -w %{?with_tests:-x test}
rdobuilder 91e8cd
rdobuilder 91e8cd
rdobuilder 91e8cd
%build
rdobuilder 91e8cd
%pyproject_wheel
rdobuilder 91e8cd
rdobuilder 91e8cd
rdobuilder 91e8cd
%install
rdobuilder 91e8cd
%pyproject_install
rdobuilder 91e8cd
%pyproject_save_files %{srcname}
rdobuilder 91e8cd
rdobuilder 91e8cd
rdobuilder 91e8cd
%check
rdobuilder 91e8cd
%if %{with tests}
rdobuilder 91e8cd
# Upstream uses tox, but we don’t use it, to avoid a build dependency loop
rdobuilder 91e8cd
# platformdirs <- virtualenv <- tox
rdobuilder 91e8cd
%pytest
rdobuilder 91e8cd
%else
rdobuilder 91e8cd
%pyproject_check_import
rdobuilder 91e8cd
%endif
rdobuilder 91e8cd
rdobuilder 91e8cd
rdobuilder 91e8cd
%files -n python3-%{srcname} -f %{pyproject_files}
rdobuilder 91e8cd
%license LICENSE
rdobuilder 91e8cd
%doc README.rst
rdobuilder 91e8cd
rdobuilder 91e8cd
rdobuilder 91e8cd
%changelog
rdobuilder 772837
* Sat Dec 02 2023 Orion Poplawski <orion@nwra.com> - 3.11.0-1
rdobuilder 772837
- Update to 3.11.0
rdobuilder 772837
rdobuilder 91e8cd
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.1-2
rdobuilder 91e8cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
rdobuilder 91e8cd
rdobuilder 91e8cd
* Mon Jul 17 2023 Lumír Balhar <lbalhar@redhat.com> - 3.9.1-1
rdobuilder 91e8cd
- Update to 3.9.1 (rhbz#2156775)
rdobuilder 91e8cd
rdobuilder 91e8cd
* Fri Jun 30 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.5.1-1
rdobuilder 91e8cd
- Update to 3.5.1
rdobuilder 91e8cd
- Fixes: rhbz#2156775
rdobuilder 91e8cd
rdobuilder 91e8cd
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 2.6.0-3
rdobuilder 91e8cd
- Rebuilt for Python 3.12
rdobuilder 91e8cd
rdobuilder 91e8cd
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-2
rdobuilder 91e8cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
rdobuilder 91e8cd
rdobuilder 91e8cd
* Thu Dec 08 2022 Lumír Balhar <lbalhar@redhat.com> - 2.6.0-1
rdobuilder 91e8cd
- Update to 2.6.0 (rhbz#2151438)
rdobuilder 91e8cd
rdobuilder 91e8cd
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.2-3
rdobuilder 91e8cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
rdobuilder 91e8cd
rdobuilder 91e8cd
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.5.2-2
rdobuilder 91e8cd
- Rebuilt for Python 3.11
rdobuilder 91e8cd
rdobuilder 91e8cd
* Thu Apr 21 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 2.5.2-1
rdobuilder 91e8cd
- Update to 2.5.2; accommodate upstream’s switch to hatchling build backend
rdobuilder 91e8cd
- Add a build conditional for the tests
rdobuilder 91e8cd
rdobuilder 91e8cd
* Tue Mar 22 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 2.5.1-1
rdobuilder 91e8cd
- Update to 2.5.1 (close RHBZ#2007878)
rdobuilder 91e8cd
rdobuilder 91e8cd
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-4
rdobuilder 91e8cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
rdobuilder 91e8cd
rdobuilder 91e8cd
* Sat Dec 04 2021 Carl George <carl@george.computer> - 2.3.0-3
rdobuilder 91e8cd
- Use "test" extra to generate buildrequires
rdobuilder 91e8cd
- Run tests with %%pytest
rdobuilder 91e8cd
rdobuilder 91e8cd
* Tue Oct 26 2021 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-2
rdobuilder 91e8cd
- Don't use tox during the build to avoid a build dependency loop
rdobuilder 91e8cd
rdobuilder 91e8cd
* Mon Aug 30 2021 Carl George <carl@george.computer> - 2.3.0-1
rdobuilder 91e8cd
- Latest upstream
rdobuilder 91e8cd
- Resolves: rhbz#1999337
rdobuilder 91e8cd
rdobuilder 91e8cd
* Sun Aug 01 2021 Carl George <carl@george.computer> - 2.2.0-1
rdobuilder 91e8cd
- Latest upstream
rdobuilder 91e8cd
- Resolves: rhbz#1985567
rdobuilder 91e8cd
rdobuilder 91e8cd
* Fri Jul 23 2021 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-3
rdobuilder 91e8cd
- Let %%pyproject_buildrequires know we need appdirs
rdobuilder 91e8cd
rdobuilder 91e8cd
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
rdobuilder 91e8cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
rdobuilder 91e8cd
rdobuilder 91e8cd
* Mon Jul 12 2021 Carl George <carl@george.computer> - 2.0.0-1
rdobuilder 91e8cd
- Initial package rhbz#1981607