commit f9114ec930d76380503d8a52f6b6ae4762c8818d Author: tigro Date: Sun Jan 5 22:04:00 2025 +0300 import python-pooch-1.8.2-3.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4ce1c2f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/pooch-1.8.2.tar.gz diff --git a/.python-pooch.metadata b/.python-pooch.metadata new file mode 100644 index 0000000..bc3e936 --- /dev/null +++ b/.python-pooch.metadata @@ -0,0 +1 @@ +fd76d494be7e026c73d757e4f07a75df53df3e79 SOURCES/pooch-1.8.2.tar.gz diff --git a/SOURCES/421.patch b/SOURCES/421.patch new file mode 100644 index 0000000..98682bb --- /dev/null +++ b/SOURCES/421.patch @@ -0,0 +1,25 @@ +From 278b19832208cf03cabb2f529600fb53444a78ec Mon Sep 17 00:00:00 2001 +From: Antonio Valentino +Date: Fri, 7 Jun 2024 08:45:40 +0200 +Subject: [PATCH] Install package data + +--- + pyproject.toml | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/pyproject.toml b/pyproject.toml +index 3daa87e8..1bfb3adb 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -48,6 +48,11 @@ xxhash = ["xxhash>=1.4.3"] + [tool.setuptools.packages] + find = {} # Scanning implicit namespaces is active by default + ++[tool.setuptools.package-data] ++"pooch.tests.data" = ["*.txt", "*.zip", "*.gz", "*.xz", "*.bz2"] ++"pooch.tests.data.store" = ["*.txt"] ++"pooch.tests.data.store.subdir" = ["*.txt"] ++ + [build-system] + requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"] + build-backend = "setuptools.build_meta" diff --git a/SOURCES/423.patch b/SOURCES/423.patch new file mode 100644 index 0000000..941d7b0 --- /dev/null +++ b/SOURCES/423.patch @@ -0,0 +1,27 @@ +From 96bd5437947320d804e12047638dc333cf83c1f9 Mon Sep 17 00:00:00 2001 +From: Sandro +Date: Sat, 8 Jun 2024 11:26:23 +0200 +Subject: [PATCH] Exclude doc/ from wheel + +The automatic discovery adds doc/ to the wheel triggered by the +presence of `conf.py` in that directory. +--- + pyproject.toml | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 1bfb3adb..997aa77f 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -45,8 +45,9 @@ xxhash = ["xxhash>=1.4.3"] + "Bug Tracker" = "https://github.com/fatiando/pooch/issues" + "Source Code" = "https://github.com/fatiando/pooch" + +-[tool.setuptools.packages] +-find = {} # Scanning implicit namespaces is active by default ++[tool.setuptools.packages.find] ++# Scanning implicit namespaces is active by default ++exclude = ["doc*"] + + [tool.setuptools.package-data] + "pooch.tests.data" = ["*.txt", "*.zip", "*.gz", "*.xz", "*.bz2"] diff --git a/SPECS/python-pooch.spec b/SPECS/python-pooch.spec new file mode 100644 index 0000000..6752f68 --- /dev/null +++ b/SPECS/python-pooch.spec @@ -0,0 +1,156 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.6.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 3; + 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 + +# Quite a few tests require network. To run them locally use +# `fedpkg mockbuild --enable-network --with network` +%bcond network 0 + +Name: python-pooch +Version: 1.8.2 +Release: %autorelease +Summary: A friend to fetch your data files + +%global forgeurl https://github.com/fatiando/pooch +%forgemeta + +License: BSD-3-Clause +URL: https://www.fatiando.org/pooch +Source: %forgesource +# Include `tests/data/` in wheel +# https://github.com/fatiando/pooch/pull/421 +Patch: https://github.com/fatiando/pooch/pull/421.patch +# Exclude `doc/` from wheel +# https://github.com/fatiando/pooch/pull/423 +Patch: https://github.com/fatiando/pooch/pull/423.patch + +BuildArch: noarch +BuildRequires: python3-devel + +%global _description %{expand: +Pooch manages your Python library's sample data files: +it automatically downloads and stores them in a local directory, +with support for versioning and corruption checks.} + +%description %_description + + +%package -n python3-pooch +Summary: %{summary} + +%description -n python3-pooch %_description + + +%prep +%forgeautosetup -p1 + +# Remove coverage dependencies +# Remove `localftpserver` (not yet available) +sed -i \ + -e '/cov/ d' \ + -e '/localftpserver/ d' \ + env/requirements-test.txt + + +%generate_buildrequires +export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} +%pyproject_buildrequires -x progress,xxhash%{?network:,sftp} env/requirements-test.txt + + +%build +export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files -l pooch + + +%check +# requires pytest-localftpserver which is not currently packaged in Fedora +k="${k-}${k+ and }not ftp_downloader" +k="${k-}${k+ and }not downloader_progressbar_ftp" +k="${k-}${k+ and }not test_check_availability_on_ftp" +%pytest -v ${k+-k }"${k-}" %{?!network:-m 'not network'} + + +%files -n python3-pooch -f %{pyproject_files} +%doc README.md CITATION.* AUTHORS.md + + +%changelog +* Sun Jan 05 2025 Arkady L. Shane - 1.8.2-3 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 1.8.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Wed Jun 12 2024 Packit - 1.8.2-1 +- Update to 1.8.2 upstream release +- Resolves: rhbz#2290743 + +* Fri Jun 07 2024 Python Maint - 1.8.1-6 +- Rebuilt for Python 3.13 + +* Fri May 17 2024 Sandro - 1.8.1-2 +- Add Packit config + +* Fri May 17 2024 Sandro - 1.8.1-1 +- Update to 1.8.1 +- Use upstreamed patch (now applies cleanly) +- Handle test dependencies using extras +- Fix %%doc file list + +* Fri Jan 26 2024 Fedora Release Engineering - 1.5.2-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 1.5.2-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Oct 19 2023 Miroslav Suchý - 1.5.2-13 +- migrate to SPDX license + +* Fri Jul 21 2023 Fedora Release Engineering - 1.5.2-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jun 13 2023 Python Maint - 1.5.2-11 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 1.5.2-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 1.5.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 1.5.2-8 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.5.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Sat Jan 08 2022 Vanessa_kris - 1.5.2-6 +- initial import to src.fp.o + +* Sat Jan 08 2022 Vanessa_kris - 1.5.2-5 +- added buildRequirement pytest even without network access + +* Sat Jan 08 2022 Vanessa_kris - 1.5.2-4 +- Minor tweaks + +* Sat Jan 08 2022 Ankur Sinha (Ankur Sinha Gmail) - 1.5.2-3 +- feat: remove duplicate files + +* Sat Jan 08 2022 Ankur Sinha (Ankur Sinha Gmail) - 1.5.2-2 +- feat: set up for network dependent tests + +* Sat Jan 08 2022 Vanessa_kris - 1.5.2-1 +- initial build +## END: Generated by rpmautospec