From 962f401bab0719519dfc7488908e3fdb6f0b534cf462ddd1f539e6833fb0a981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 6 Apr 2020 14:35:48 +0000 Subject: [PATCH] Accepting request 791794 from home:mcalabkova:branches:devel:languages:python - 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 --- gcsfs-0.3.0.tar.gz | 3 --- gcsfs-0.6.1.tar.gz | 3 +++ python-gcsfs.changes | 21 +++++++++++++++++++++ python-gcsfs.spec | 41 +++++++++++++++++++++-------------------- 4 files changed, 45 insertions(+), 23 deletions(-) delete mode 100644 gcsfs-0.3.0.tar.gz create mode 100644 gcsfs-0.6.1.tar.gz diff --git a/gcsfs-0.3.0.tar.gz b/gcsfs-0.3.0.tar.gz deleted file mode 100644 index b3df49c..0000000 --- a/gcsfs-0.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3b7d1039cee84082b8bc9c029b484d2874a45b8e06dbfcfcbce05c62fdda62c8 -size 43574 diff --git a/gcsfs-0.6.1.tar.gz b/gcsfs-0.6.1.tar.gz new file mode 100644 index 0000000..56e76ba --- /dev/null +++ b/gcsfs-0.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3e9845e3b8b24d18218c0f7bbdb2a9a315a47b9b6388bcaea025ab3449c17161 +size 204788 diff --git a/python-gcsfs.changes b/python-gcsfs.changes index 85268f8..1b1959f 100644 --- a/python-gcsfs.changes +++ b/python-gcsfs.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Mon Apr 6 13:52:50 UTC 2020 - Marketa Calabkova + +- 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`) + ------------------------------------------------------------------- Mon Jul 22 16:41:24 UTC 2019 - Todd R diff --git a/python-gcsfs.spec b/python-gcsfs.spec index 9e66a75..09e6e62 100644 --- a/python-gcsfs.spec +++ b/python-gcsfs.spec @@ -1,7 +1,7 @@ # # spec file for package python-gcsfs # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -12,25 +12,35 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# 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.3.0 +Version: 0.6.1 Release: 0 -License: BSD-3-Clause Summary: Filesystem interface over GCS -Url: https://github.com/dask/gcsfs +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-rpm-macros 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.2.2} +BuildRequires: %{python_module fsspec >= 0.6.0} BuildRequires: %{python_module fusepy} BuildRequires: %{python_module google-auth >= 1.2} BuildRequires: %{python_module google-auth-oauthlib} @@ -39,16 +49,6 @@ BuildRequires: %{python_module requests} BuildRequires: %{python_module vcrpy} BuildRequires: libfuse2 # /SECTION -BuildRequires: fdupes -Requires: python-decorator -Requires: python-fsspec >= 0.2.2 -Requires: python-google-auth >= 1.2 -Requires: python-google-auth-oauthlib -Requires: python-requests -Recommends: dask -Recommends: python-gcsfs-fuse = %{version} -BuildArch: noarch - %python_subpackages %description @@ -56,6 +56,7 @@ 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 @@ -76,9 +77,9 @@ This package provides the optional FUSE interface. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -# Tests require a network connection -# %%check -# %%python_expand pytest-%%{$python_bin_suffix} -vv -x gcsfs +%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