From fa764793a807357491be8a30d6f1402dddd72e32 Mon Sep 17 00:00:00 2001 From: Sergey Cherevko Date: Thu, 24 Aug 2023 11:30:50 +0300 Subject: [PATCH] import python-platformdirs-2.5.4-1.el9 --- .gitignore | 1 + .python-platformdirs.metadata | 1 + SPECS/python-platformdirs.spec | 104 +++++++++++++++++++++++++++++++++ 3 files changed, 106 insertions(+) create mode 100644 .gitignore create mode 100644 .python-platformdirs.metadata create mode 100644 SPECS/python-platformdirs.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e33c50d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/platformdirs-2.5.4.tar.gz diff --git a/.python-platformdirs.metadata b/.python-platformdirs.metadata new file mode 100644 index 0000000..0788297 --- /dev/null +++ b/.python-platformdirs.metadata @@ -0,0 +1 @@ +082974f7d3ea03adfa147f4ab5be76079c2a116f SOURCES/platformdirs-2.5.4.tar.gz diff --git a/SPECS/python-platformdirs.spec b/SPECS/python-platformdirs.spec new file mode 100644 index 0000000..84ff632 --- /dev/null +++ b/SPECS/python-platformdirs.spec @@ -0,0 +1,104 @@ +%bcond_without tests + +%global srcname platformdirs +%global common_description %{expand: +A small Python module for determining appropriate platform-specific dirs, e.g. +a "user data dir".} + +Name: python-%{srcname} +Version: 2.5.4 +Release: 1%{?dist} +Summary: Python module for determining appropriate platform-specific dirs +License: MIT +URL: https://github.com/platformdirs/platformdirs +Source0: %pypi_source +BuildArch: noarch + + +%description %{common_description} + + +%package -n python3-%{srcname} +Summary: %{summary} +BuildRequires: python3-devel +# RHBZ#1712140, RHBZ#2076994 +BuildRequires: pyproject-rpm-macros >= 1.2.0 + + +%description -n python3-%{srcname} %{common_description} + + +%prep +%autosetup -n %{srcname}-%{version} + +# 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 %{?with_tests:-x test} + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files %{srcname} + + +%check +%if %{with tests} +# Upstream uses tox, but we don’t use it, to avoid a build dependency loop +# platformdirs <- virtualenv <- tox +%pytest +%else +%pyproject_check_import +%endif + + +%files -n python3-%{srcname} -f %{pyproject_files} +%doc README.rst CHANGES.rst + + +%changelog +* Thu Aug 24 2023 Sergey Cherevko - 2.5.4-1 +- Rebuilt for MSVSphere 9.2 + +* Wed Aug 02 2023 Benjamin A. Beasley - 2.5.4-1 +- Update to 2.5.4 (requires hatchling >=1.11.1) + +* Thu Apr 21 2022 Benjamin A. Beasley - 2.5.2-1 +- Update to 2.5.2; accommodate upstream’s switch to hatchling build backend +- Add a build conditional for the tests + +* Tue Mar 22 2022 Benjamin A. Beasley - 2.5.1-1 +- Update to 2.5.1 (close RHBZ#2007878) + +* 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 + +* Mon Aug 30 2021 Carl George - 2.3.0-1 +- Latest upstream +- Resolves: rhbz#1999337 + +* Sun Aug 01 2021 Carl George - 2.2.0-1 +- Latest upstream +- Resolves: rhbz#1985567 + +* Fri Jul 23 2021 Miro Hrončok - 2.0.0-3 +- Let %%pyproject_buildrequires know we need appdirs + +* Fri Jul 23 2021 Fedora Release Engineering - 2.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon Jul 12 2021 Carl George - 2.0.0-1 +- Initial package rhbz#1981607