SHA256
1
0
forked from pool/python-gcsfs
python-gcsfs/python-gcsfs.spec
Markéta Machová d741e5d851 Accepting request 912875 from home:bnavigator:branches:devel:languages:python
- Update to 2021.07.0
  * fix find/glob with a prefix (#399)
- Release notes between 0.7.1 and 2021.06.0
  * kwargs to aiohttpClient session
  * graceful timeout when disconnecting at finalise (#397)
  * negative ranges in cat_file (#394)
  * no credentials bug fix (#390)
  * use googleapis.com (#388)
  * more retries (#387, 385, 380)
  * Code cleanup (#381)
  * license to match stated one (#378)
  * deps updated (#376)
  * switch to calver and fsspec pin
  * keep up with fsspec 0.9.0 async
  * one-shot find
  * consistency checkers
  * retries for intermittent issues
  * timeouts
  * partial cat
  * http error status
- Fix running the testsuite -- gh#dask/gcsfs#292
  * drop avoid_network_tests.patch
  * use the GitHub archive for VCR recordings

OBS-URL: https://build.opensuse.org/request/show/912875
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gcsfs?expand=0&rev=11
2021-08-18 14:16:39 +00:00

100 lines
3.1 KiB
RPMSpec

#
# spec file for package python-gcsfs
#
# 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
%define skip_python36 1
%define ghversiontag 2021.07.0
Name: python-gcsfs
Version: 2021.7.0
Release: 0
Summary: Filesystem interface over GCS
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/dask/gcsfs
# Use the GitHub tarball: It contains the VCR recordings (test data to mock network requests)
Source: https://github.com/dask/gcsfs/archive/refs/tags/%{ghversiontag}.tar.gz#/gcsfs-%{version}-gh.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-aiohttp
Requires: python-decorator
Requires: python-fsspec >= 2021.07.0
Requires: python-google-auth >= 1.2
Requires: python-google-auth-oauthlib
Requires: python-requests
Recommends: dask
Recommends: python-gcsfs-fuse = %{version}
Suggests: python-crcmod
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module aiohttp}
BuildRequires: %{python_module click}
BuildRequires: %{python_module decorator}
BuildRequires: %{python_module fsspec >= 2021.07.0}
BuildRequires: %{python_module fusepy}
BuildRequires: %{python_module google-auth >= 1.2}
BuildRequires: %{python_module google-auth-oauthlib}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module vcrpy}
# /SECTION
%python_subpackages
%description
File-system interface for Google Cloud Storage.
%package fuse
Summary: Filesystem interface over GCS - FUSE interface
Group: Development/Languages/Python
Requires: python-click
Requires: python-fusepy
%description fuse
File-system interface for Google Cloud Storage.
This package provides the optional FUSE interface.
%prep
%autosetup -p1 -n gcsfs-%{ghversiontag}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export GCSFS_RECORD_MODE=none
export GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/gcsfs/tests/fake-secret.json
%pytest -rfEs
%files %{python_files}
%doc README.rst
%license LICENSE.txt
%{python_sitelib}/gcsfs-%{version}-*-info
%{python_sitelib}/gcsfs/
%exclude %{python_sitelib}/gcsfs/cli/
%files %{python_files fuse}
%license LICENSE.txt
%{python_sitelib}/gcsfs/cli/
%changelog