Blame SPECS/python-platformdirs.spec

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