forked from pool/python-gcsfs
- Update to 0.6.1
* **API-breaking**: Changed requester-pays handling for ``GCSFileSystem``.
The ``user_project`` keyword has been removed, and has been replaced with
the ``requester_pays`` keyword. If you're working with a ``requester_pays`` bucket
you will need to explicity pass ``requester_pays=True``. This will include your
``project`` ID in requests made to GCS.
* ``GCSFileSystem`` now validates that the ``project`` provided, if any, matches the
Google default project when using ``token='google_default'`` to authenticate (:pr:`219`).
* Fixed bug in ``GCSFileSystem.cat`` on objects in requester-pays buckets (:pr:`217`).
* Fixed bug in ``user_project`` fallback for default Google authentication (:pr:`213`)
* ``user_project`` now falls back to the ``project`` if provided (:pr:`208`)
* Added the ability to make requester-pays requests with the ``user_project`` parameter (:pr:`206`)
* Improved performance when serializing filesystem objects (:pr:`182`)
* Fixed authorization errors when using ``gcsfs`` within multithreaded code (:pr:`183`, :pr:`192`)
* Added contributing instructions (:pr:`185`)
* Improved performance for :meth:`gcsfs.GCSFileSystem.info` (:pr:`187`)
* Fixed bug in :meth:`gcsfs.GCSFileSystem.info` raising an error (:pr:`190`)
OBS-URL: https://build.opensuse.org/request/show/791794
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gcsfs?expand=0&rev=5
96 lines
2.9 KiB
RPMSpec
96 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package python-gcsfs
|
|
#
|
|
# Copyright (c) 2020 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-gcsfs
|
|
Version: 0.6.1
|
|
Release: 0
|
|
Summary: Filesystem interface over GCS
|
|
License: BSD-3-Clause
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/dask/gcsfs
|
|
Source: https://files.pythonhosted.org/packages/source/g/gcsfs/gcsfs-%{version}.tar.gz
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-decorator
|
|
Requires: python-fsspec >= 0.6.0
|
|
Requires: python-google-auth >= 1.2
|
|
Requires: python-google-auth-oauthlib
|
|
Requires: python-requests
|
|
Recommends: dask
|
|
Recommends: python-gcsfs-fuse = %{version}
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module click}
|
|
BuildRequires: %{python_module decorator}
|
|
BuildRequires: %{python_module fsspec >= 0.6.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}
|
|
BuildRequires: libfuse2
|
|
# /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: libfuse2
|
|
Requires: python-click
|
|
Requires: python-fusepy
|
|
Requires: python-pandas
|
|
|
|
%description fuse
|
|
File-system interface for Google Cloud Storage.
|
|
|
|
This package provides the optional FUSE interface.
|
|
|
|
%prep
|
|
%setup -q -n gcsfs-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
# Tests test_map_simple, test_map_with_data and test_map_clear_empty require a network connection
|
|
%pytest -k "not (test_map_simple or test_map_with_data or test_map_clear_empty)" gcsfs
|
|
|
|
%files %{python_files}
|
|
%doc README.rst
|
|
%license LICENSE.txt
|
|
%{python_sitelib}/gcsfs-%{version}-py*.egg-info
|
|
%{python_sitelib}/gcsfs/
|
|
%exclude %{python_sitelib}/gcsfs/cli/
|
|
|
|
%files %{python_files fuse}
|
|
%license LICENSE.txt
|
|
%{python_sitelib}/gcsfs/cli/
|
|
|
|
%changelog
|