Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-fsspec for openSUSE:Factory checked in at 2021-08-28 22:29:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-fsspec (Old) and /work/SRC/openSUSE:Factory/.python-fsspec.new.1899 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-fsspec" Sat Aug 28 22:29:34 2021 rev:14 rq:914766 version:2021.7.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-fsspec/python-fsspec.changes 2021-08-11 11:47:30.373725638 +0200 +++ /work/SRC/openSUSE:Factory/.python-fsspec.new.1899/python-fsspec.changes 2021-08-28 22:29:56.410026760 +0200 @@ -1,0 +2,7 @@ +Mon Aug 23 17:04:01 UTC 2021 - Ben Greiner <[email protected]> + +- Add fsspec-pr710-bytesreturn.patch in order to fix zarr + * gh#intake/filesystem_spec#710 + * gh#zarr-developers/zarr-python#812 + +------------------------------------------------------------------- New: ---- fsspec-pr710-bytesreturn.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-fsspec.spec ++++++ --- /var/tmp/diff_new_pack.Mi8VVP/_old 2021-08-28 22:29:56.778027170 +0200 +++ /var/tmp/diff_new_pack.Mi8VVP/_new 2021-08-28 22:29:56.782027174 +0200 @@ -35,6 +35,8 @@ URL: https://github.com/intake/filesystem_spec # the tests are only in the GitHub archive Source: %{url}/archive/%{ghversion}.tar.gz#/fsspec-%{ghversion}.tar.gz +# PATCH-FIX-UPSTREAM fsspec-pr710-bytesreturn.patch -- gh#intake/filesystem_spec#710 and gh#zarr-developers/zarr-python#812 +Patch0: %{url}/pull/710.patch#/fsspec-pr710-bytesreturn.patch BuildRequires: %{python_module base >= 3.6} BuildRequires: %{python_module importlib_metadata if %python-base < 3.8} BuildRequires: %{python_module setuptools} @@ -83,7 +85,7 @@ A specification for pythonic filesystems. %prep -%setup -q -n filesystem_spec-%{ghversion} +%autosetup -p1 -n filesystem_spec-%{ghversion} # don't test nonexistent python36-numpy sed -i -e '/^import numpy as np/ d' -e '/^import pytest/ a np = pytest.importorskip("numpy")' fsspec/tests/test_spec.py ++++++ fsspec-pr710-bytesreturn.patch ++++++ >From 576008ff849392c1c801b0722d595a2369e11797 Mon Sep 17 00:00:00 2001 From: Davis Vann Bennett <[email protected]> Date: Wed, 14 Jul 2021 19:53:48 -0400 Subject: [PATCH] check for bytes return type and dictifiy it --- fsspec/mapping.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fsspec/mapping.py b/fsspec/mapping.py index 17fe7ae7..235da8d2 100644 --- a/fsspec/mapping.py +++ b/fsspec/mapping.py @@ -88,6 +88,8 @@ def getitems(self, keys, on_error="raise"): oe = on_error if on_error == "raise" else "return" try: out = self.fs.cat(keys2, on_error=oe) + if isinstance(out, bytes): + out = {keys2[0]: out} except self.missing_exceptions as e: raise KeyError from e out = {
