From 78b07b8335440296f8e2a7acfb7bc08e0268906a256e109f0df045d2cc4af837 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 7 Jan 2022 00:19:08 +0000 Subject: [PATCH] Accepting request 944557 from home:bnavigator:branches:devel:languages:python - Update to 2021.11.1 * don't touch cache when doing find with a prefix (#437) - Release 2021.11.0 * move to fsspec org * add support for google fixed_key_metadata (#429) * deprecate content_encoding parameter of setxattrs method (#429) * use emulator for resting instead of vcrpy (#424) - Release 2021.10.1 * url signing (#411) * default callback (#422) - Release 2021.10.0 * min version for decorator * default callback in get (#422) - Release 2021.09.0 * correctly recognise 404 (#419) * fix for .details due to upstream (#417) * callbacks in get/put (#416) * "%" in paths (#415) - Release 2021.08.1 * don't retry 404s (#406) - Disable most of the testsuite because the setup moved from vcrpy to a docker based simulator OBS-URL: https://build.opensuse.org/request/show/944557 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gcsfs?expand=0&rev=13 --- gcsfs-2021.11.1-gh.tar.gz | 3 +++ gcsfs-2021.7.0-gh.tar.gz | 3 --- python-gcsfs.changes | 26 ++++++++++++++++++++++++++ python-gcsfs.spec | 32 ++++++++++++++++++++------------ 4 files changed, 49 insertions(+), 15 deletions(-) create mode 100644 gcsfs-2021.11.1-gh.tar.gz delete mode 100644 gcsfs-2021.7.0-gh.tar.gz diff --git a/gcsfs-2021.11.1-gh.tar.gz b/gcsfs-2021.11.1-gh.tar.gz new file mode 100644 index 0000000..a7828e3 --- /dev/null +++ b/gcsfs-2021.11.1-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ac61eb2b9d2d25278275fb52aba19ce518f5e4f7ff360347189d4b01abc0179d +size 66293 diff --git a/gcsfs-2021.7.0-gh.tar.gz b/gcsfs-2021.7.0-gh.tar.gz deleted file mode 100644 index 6f4a347..0000000 --- a/gcsfs-2021.7.0-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e2cfefeb28a57180d2589eb993fd47a47ade286c1db6151f4fb6fe0ee4109275 -size 261238 diff --git a/python-gcsfs.changes b/python-gcsfs.changes index 3bd6983..65e0507 100644 --- a/python-gcsfs.changes +++ b/python-gcsfs.changes @@ -1,3 +1,29 @@ +------------------------------------------------------------------- +Thu Jan 6 20:44:59 UTC 2022 - Ben Greiner + +- Update to 2021.11.1 + * don't touch cache when doing find with a prefix (#437) +- Release 2021.11.0 + * move to fsspec org + * add support for google fixed_key_metadata (#429) + * deprecate content_encoding parameter of setxattrs method (#429) + * use emulator for resting instead of vcrpy (#424) +- Release 2021.10.1 + * url signing (#411) + * default callback (#422) +- Release 2021.10.0 + * min version for decorator + * default callback in get (#422) +- Release 2021.09.0 + * correctly recognise 404 (#419) + * fix for .details due to upstream (#417) + * callbacks in get/put (#416) + * "%" in paths (#415) +- Release 2021.08.1 + * don't retry 404s (#406) +- Disable most of the testsuite because the setup moved from vcrpy + to a docker based simulator + ------------------------------------------------------------------- Wed Aug 18 10:29:33 UTC 2021 - Ben Greiner diff --git a/python-gcsfs.spec b/python-gcsfs.spec index 35fd481..9d0b084 100644 --- a/python-gcsfs.spec +++ b/python-gcsfs.spec @@ -1,7 +1,7 @@ # # spec file for package python-gcsfs # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,42 +17,46 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +# the test suite moved to a docker simulator which we cannot run inside an obs environment +%bcond_with fulltest %define skip_python2 1 %define skip_python36 1 -%define ghversiontag 2021.07.0 +%define ghversiontag 2021.11.1 Name: python-gcsfs -Version: 2021.7.0 +Version: 2021.11.1 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 +URL: https://github.com/fsspec/gcsfs +# Use the GitHub tarball for test data +Source: https://github.com/fsspec/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-decorator > 4.1.2 +Requires: python-fsspec == %{version} Requires: python-google-auth >= 1.2 Requires: python-google-auth-oauthlib +Requires: python-google-cloud-storage Requires: python-requests Recommends: dask Recommends: python-gcsfs-fuse = %{version} Suggests: python-crcmod BuildArch: noarch # SECTION test requirements +# always import in order to detect dependency breakages at build time BuildRequires: %{python_module aiohttp} BuildRequires: %{python_module click} -BuildRequires: %{python_module decorator} -BuildRequires: %{python_module fsspec >= 2021.07.0} +BuildRequires: %{python_module decorator > 4.1.2} +BuildRequires: %{python_module fsspec == %{version}} BuildRequires: %{python_module fusepy} BuildRequires: %{python_module google-auth >= 1.2} BuildRequires: %{python_module google-auth-oauthlib} +BuildRequires: %{python_module google-cloud-storage} BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests} -BuildRequires: %{python_module vcrpy} # /SECTION %python_subpackages @@ -72,6 +76,7 @@ This package provides the optional FUSE interface. %prep %autosetup -p1 -n gcsfs-%{ghversiontag} +sed -i 's/--color=yes//' setup.cfg %build %python_build @@ -81,9 +86,12 @@ This package provides the optional FUSE interface. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -export GCSFS_RECORD_MODE=none export GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/gcsfs/tests/fake-secret.json +%if %{with fulltest} %pytest -rfEs +%else +%pytest -rfEs -k test_checkers +%endif %files %{python_files} %doc README.rst