Sync from SUSE:SLFO:Main python-pooch revision 7bbaf5bd3152c7627f425fa54838dc5b

This commit is contained in:
Adrian Schröter 2024-12-13 11:56:55 +01:00
parent 68ca59b543
commit 2b1a9fdd83
4 changed files with 54 additions and 34 deletions

BIN
pooch-1.3.0.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
pooch-1.7.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,37 @@
-------------------------------------------------------------------
Tue Sep 19 06:50:30 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 1.7.0:
* Bug fixes:
+ Make archive extraction always take members into account
+ Figshare downloaders fetch the correct version, instead of always
the latest one.
+ Fix bug when unpacking an entire subfolder from an archive.
+ Add a pytest mark for tests accessing the network so that they can
be easily excluded when testing offline
* Enhancements:
+ Add support for Python 3.10
+ Point to the user's code for the file_hash warning
* New features:
+ Allow spaces in filenames in registry files
+ Refactor Pooch.is_available to use downloaders
+ Add support for downloading files from Dataverse DOIs
+ Add a new Pooch.load_registry_from_doi method that populates the Pooch
registry using DOI-based data repositories
+ Support urls for Zenodo repositories created through the GitHub
integration service
+ Automatically add a trailing slash to base_url on pooch.create
* Maintenance:
+ Replace versioneer with setuptools-scm
+ Drop support for Python 3.6
+ Port from deprecated appdirs to platformdirs
- Switch to pyproject macros
-------------------------------------------------------------------
Tue Jun 13 08:54:22 UTC 2023 - ecsos <ecsos@opensuse.org>
- Add %{?sle15_python_module_pythons}
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Mar 23 13:48:40 UTC 2021 - Jan Engelhardt <jengelh@inai.de> Tue Mar 23 13:48:40 UTC 2021 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-pooch # spec file for package python-pooch
# #
# Copyright (c) 2021 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,24 +16,26 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons}
%define skip_python2 1
Name: python-pooch Name: python-pooch
Version: 1.3.0 Version: 1.7.0
Release: 0 Release: 0
Summary: Manager for Python libraries' sample data files Summary: Manager for Python libraries' sample data files
License: BSD-3-Clause License: BSD-3-Clause
URL: https://github.com/fatiando/pooch URL: https://github.com/fatiando/pooch
Source: https://files.pythonhosted.org/packages/source/p/pooch/pooch-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/pooch/pooch-%{version}.tar.gz
BuildRequires: %{python_module appdirs}
BuildRequires: %{python_module packaging} BuildRequires: %{python_module packaging}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module platformdirs}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests} BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-appdirs
Requires: python-packaging Requires: python-packaging
Requires: python-platformdirs
Requires: python-requests Requires: python-requests
Suggests: python-paramiko Suggests: python-paramiko
Suggests: python-tqdm Suggests: python-tqdm
@ -49,41 +51,25 @@ and checks for corruption.
%autosetup -p1 -n pooch-%{version} %autosetup -p1 -n pooch-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
# These test the online functionality # These test the online functionality
donttest+=" or (test_core and test_retrieve)" donttest+=" or (test_core and test_load_registry_from_doi)"
donttest+=" or (test_core and test_retrieve_fname)"
donttest+=" or (test_core and test_retrieve_default_path)"
donttest+=" or (test_core and test_pooch_custom_url)"
donttest+=" or (test_core and test_pooch_download)"
donttest+=" or (test_core and test_pooch_download_retry_off_by_default)"
donttest+=" or (test_core and test_pooch_download_retry)"
donttest+=" or (test_core and test_pooch_download_retry_fails_eventually)"
donttest+=" or (test_core and test_pooch_logging_level)"
donttest+=" or (test_core and test_pooch_update)"
donttest+=" or (test_core and test_pooch_corrupted)"
donttest+=" or (test_core and test_check_availability)" donttest+=" or (test_core and test_check_availability)"
donttest+=" or (test_core and test_check_availability_on_ftp)" donttest+=" or (test_downloaders and test_doi)"
donttest+=" or (test_core and test_fetch_with_downloader)" donttest+=" or (test_downloaders and test_figshare)"
donttest+=" or (test_core and test_stream_download)" donttest+=" or (test_downloaders and test_invalid_doi_repository)"
donttest+=" or (test_integration and test_create_and_fetch)" %pytest -k "not (${donttest:4})" -m 'not network'
donttest+=" or (test_processors and test_decompress)"
donttest+=" or (test_processors and test_extractprocessor_fails)"
donttest+=" or (test_processors and Unzip or Untar)"
donttest+=" or (test_processors and test_processor_multiplefiles)"
donttest+=" or (test_downloaders and test_ftp_downloader)"
%pytest -k "not (${donttest:4})"
%files %{python_files} %files %{python_files}
%doc AUTHORS.md README.rst %doc AUTHORS.md README.md
%license LICENSE.txt %license LICENSE.txt
%{python_sitelib}/pooch %{python_sitelib}/pooch
%{python_sitelib}/pooch-%{version}*-info %{python_sitelib}/pooch-%{version}.dist-info
%changelog %changelog