2021-01-29 12:18:54 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-pooch
|
|
|
|
#
|
2023-09-19 08:51:07 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2021-01-29 12:18:54 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-06-14 08:57:39 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2021-01-29 12:18:54 +01:00
|
|
|
Name: python-pooch
|
2023-09-19 08:51:07 +02:00
|
|
|
Version: 1.7.0
|
2021-01-29 12:18:54 +01:00
|
|
|
Release: 0
|
2021-06-21 14:34:34 +02:00
|
|
|
Summary: Manager for Python libraries' sample data files
|
2021-01-29 12:18:54 +01:00
|
|
|
License: BSD-3-Clause
|
|
|
|
URL: https://github.com/fatiando/pooch
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pooch/pooch-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module packaging}
|
2023-09-19 08:51:07 +02:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module platformdirs}
|
2021-01-29 12:18:54 +01:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module requests}
|
2023-09-19 08:51:07 +02:00
|
|
|
BuildRequires: %{python_module setuptools_scm}
|
2021-01-29 12:18:54 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-09-19 08:51:07 +02:00
|
|
|
BuildRequires: %{python_module wheel}
|
2021-01-29 12:18:54 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-packaging
|
2023-09-19 08:51:07 +02:00
|
|
|
Requires: python-platformdirs
|
2021-01-29 12:18:54 +01:00
|
|
|
Requires: python-requests
|
|
|
|
Suggests: python-paramiko
|
|
|
|
Suggests: python-tqdm
|
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2021-06-21 14:34:34 +02:00
|
|
|
Pooch manages sample data files for Python libraries. It automatically
|
2021-01-29 12:18:54 +01:00
|
|
|
downloads and stores them in a local directory, with support for versioning
|
2021-06-21 14:34:34 +02:00
|
|
|
and checks for corruption.
|
2021-01-29 12:18:54 +01:00
|
|
|
|
|
|
|
%prep
|
2021-06-21 14:34:34 +02:00
|
|
|
%autosetup -p1 -n pooch-%{version}
|
2021-01-29 12:18:54 +01:00
|
|
|
|
|
|
|
%build
|
2023-09-19 08:51:07 +02:00
|
|
|
%pyproject_wheel
|
2021-01-29 12:18:54 +01:00
|
|
|
|
|
|
|
%install
|
2023-09-19 08:51:07 +02:00
|
|
|
%pyproject_install
|
2021-01-29 12:18:54 +01:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
# These test the online functionality
|
2023-09-19 08:51:07 +02:00
|
|
|
donttest+=" or (test_core and test_load_registry_from_doi)"
|
2021-01-29 12:18:54 +01:00
|
|
|
donttest+=" or (test_core and test_check_availability)"
|
2023-09-19 08:51:07 +02:00
|
|
|
donttest+=" or (test_downloaders and test_doi)"
|
|
|
|
donttest+=" or (test_downloaders and test_figshare)"
|
|
|
|
donttest+=" or (test_downloaders and test_invalid_doi_repository)"
|
|
|
|
%pytest -k "not (${donttest:4})" -m 'not network'
|
2021-01-29 12:18:54 +01:00
|
|
|
|
|
|
|
%files %{python_files}
|
2023-09-19 08:51:07 +02:00
|
|
|
%doc AUTHORS.md README.md
|
2021-01-29 12:18:54 +01:00
|
|
|
%license LICENSE.txt
|
|
|
|
%{python_sitelib}/pooch
|
2023-09-19 08:51:07 +02:00
|
|
|
%{python_sitelib}/pooch-%{version}.dist-info
|
2021-01-29 12:18:54 +01:00
|
|
|
|
|
|
|
%changelog
|