From 20013bf91d587b0c43d281719972f8ba53e9327b Mon Sep 17 00:00:00 2001 From: tigro Date: Tue, 17 Dec 2024 21:04:18 +0300 Subject: [PATCH] import python-platformdirs-4.2.2-2.el10 --- .gitignore | 2 +- .python-platformdirs.metadata | 1 + SPECS/python-platformdirs.spec | 159 +++++++++++++++++++++++++++++++++ python-platformdirs.spec | 101 --------------------- sources | 1 - 5 files changed, 161 insertions(+), 103 deletions(-) create mode 100644 .python-platformdirs.metadata create mode 100644 SPECS/python-platformdirs.spec delete mode 100644 python-platformdirs.spec delete mode 100644 sources diff --git a/.gitignore b/.gitignore index 277005b..1b87f89 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -platformdirs-*.tar.gz +SOURCES/platformdirs-4.2.2.tar.gz diff --git a/.python-platformdirs.metadata b/.python-platformdirs.metadata new file mode 100644 index 0000000..ab96f9c --- /dev/null +++ b/.python-platformdirs.metadata @@ -0,0 +1 @@ +227d6408cb28d1034ecfa4fd555ca80d7e39a466 SOURCES/platformdirs-4.2.2.tar.gz diff --git a/SPECS/python-platformdirs.spec b/SPECS/python-platformdirs.spec new file mode 100644 index 0000000..9247d7b --- /dev/null +++ b/SPECS/python-platformdirs.spec @@ -0,0 +1,159 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.6.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 2; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +%bcond_without tests + +Name: python-platformdirs +Version: 4.2.2 +Release: %autorelease +Summary: A small Python package for determining appropriate platform-specific dirs +License: MIT +URL: https://github.com/platformdirs/platformdirs +Source: %{pypi_source platformdirs} +BuildArch: noarch + +%global common_description %{expand: +When writing desktop application, finding the right location to store user data +and configuration varies per platform. Even for single-platform apps, there +may by plenty of nuances in figuring out the right location. This kind of +thing is what the platformdirs package is for.} + + +%description %{common_description} + + +%package -n python3-platformdirs +Summary: %{summary} +BuildRequires: python3-devel +# RHBZ#1712140, RHBZ#2076994 +BuildRequires: pyproject-rpm-macros >= 1.2.0 + + +%description -n python3-platformdirs %{common_description} + + +%prep +%autosetup -n platformdirs-%{version} + +# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters +sed -r -i '/^[[:blank:]]*"pytest-cov\b/d' pyproject.toml +sed -r -i '/^[[:blank:]]*"covdefaults\b/d' pyproject.toml + + +%generate_buildrequires +%pyproject_buildrequires -w %{?with_tests:-x test} + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files -l platformdirs + + +%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-platformdirs -f %{pyproject_files} +%doc README.rst + + +%changelog +* Tue Dec 17 2024 Arkady L. Shane - 4.2.2-2 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 4.2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Tue Jul 09 2024 Carl George - 4.2.2-1 +- Update to version 4.2.2 rhbz#2227426 + +* Fri Jun 07 2024 Python Maint - 3.11.0-4 +- Rebuilt for Python 3.13 + +* Fri Jan 26 2024 Fedora Release Engineering - 3.11.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 3.11.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Dec 02 2023 Orion Poplawski - 3.11.0-1 +- Update to 3.11.0 + +* Fri Jul 21 2023 Fedora Release Engineering - 3.9.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon Jul 17 2023 Lumír Balhar - 3.9.1-1 +- Update to 3.9.1 (rhbz#2156775) + +* Fri Jun 30 2023 Tomáš Hrnčiar - 3.5.1-1 +- Update to 3.5.1 +- Fixes: rhbz#2156775 + +* Tue Jun 13 2023 Python Maint - 2.6.0-3 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 2.6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Dec 08 2022 Lumír Balhar - 2.6.0-1 +- Update to 2.6.0 (rhbz#2151438) + +* Fri Jul 22 2022 Fedora Release Engineering - 2.5.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 2.5.2-2 +- Rebuilt for Python 3.11 + +* 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) + +* Fri Jan 21 2022 Fedora Release Engineering - 2.3.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* 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 + +## END: Generated by rpmautospec diff --git a/python-platformdirs.spec b/python-platformdirs.spec deleted file mode 100644 index 1b20989..0000000 --- a/python-platformdirs.spec +++ /dev/null @@ -1,101 +0,0 @@ -%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 -* 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 diff --git a/sources b/sources deleted file mode 100644 index bf2d931..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (platformdirs-2.5.4.tar.gz) = 1b7ff79a421bc0b0320a9b1ba8f99dbbecd34a9bea7fa7696b58007f2e05d8a910a3f32e2c03e6e3a8f3d272ab1c045051a682e3155c5bc5285e66e4add59489