commit cfcb94de09abf8bd79f64cb33410251c805235bc Author: Adrian Schröter Date: Wed May 17 14:46:30 2023 +0200 Sync from SUSE:ALP:Source:Standard:1.0 python-pooch revision 64effa9bd39154b2cc19a419d2538df9 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/pooch-1.3.0.tar.gz b/pooch-1.3.0.tar.gz new file mode 100644 index 0000000..c4749c8 --- /dev/null +++ b/pooch-1.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:30d448e825904e2d763bbbe418831a788813c32f636b21c8d60ee5f474532898 +size 69952 diff --git a/python-pooch.changes b/python-pooch.changes new file mode 100644 index 0000000..a9073a9 --- /dev/null +++ b/python-pooch.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Tue Mar 23 13:48:40 UTC 2021 - Jan Engelhardt + +- Use noun phrasing in descriptions. + +------------------------------------------------------------------- +Thu Jan 28 21:21:57 UTC 2021 - Ben Greiner + +- Initial specfile for version 1.3.0 diff --git a/python-pooch.spec b/python-pooch.spec new file mode 100644 index 0000000..a0bedc9 --- /dev/null +++ b/python-pooch.spec @@ -0,0 +1,89 @@ +# +# spec file for package python-pooch +# +# Copyright (c) 2021 SUSE LLC +# +# 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 +Name: python-pooch +Version: 1.3.0 +Release: 0 +Summary: Manager for Python libraries' sample data files +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 appdirs} +BuildRequires: %{python_module packaging} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-appdirs +Requires: python-packaging +Requires: python-requests +Suggests: python-paramiko +Suggests: python-tqdm +BuildArch: noarch +%python_subpackages + +%description +Pooch manages sample data files for Python libraries. It automatically +downloads and stores them in a local directory, with support for versioning +and checks for corruption. + +%prep +%autosetup -p1 -n pooch-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# These test the online functionality +donttest+=" or (test_core and test_retrieve)" +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_on_ftp)" +donttest+=" or (test_core and test_fetch_with_downloader)" +donttest+=" or (test_core and test_stream_download)" +donttest+=" or (test_integration and test_create_and_fetch)" +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} +%doc AUTHORS.md README.rst +%license LICENSE.txt +%{python_sitelib}/pooch +%{python_sitelib}/pooch-%{version}*-info + +%changelog