14
0
forked from pool/python-fsspec

Accepting request 874406 from home:bnavigator:branches:devel:languages:python

- Update python36 requirements. Don't try to test nonexistent
  optional python36-numpy and -panel

OBS-URL: https://build.opensuse.org/request/show/874406
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fsspec?expand=0&rev=22
This commit is contained in:
2021-02-23 10:09:37 +00:00
committed by Git OBS Bridge
parent aa6a9182f6
commit f7896b977f
2 changed files with 14 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Feb 22 16:55:37 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Update python36 requirements. Don't try to test nonexistent
optional python36-numpy and -panel
-------------------------------------------------------------------
Mon Jan 4 17:59:57 UTC 2021 - Benjamin Greiner <code@bnavigator.de>

View File

@@ -34,9 +34,13 @@ License: BSD-3-Clause
URL: https://github.com/intake/filesystem_spec
Source: https://files.pythonhosted.org/packages/source/f/fsspec/fsspec-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.6}
BuildRequires: %{python_module importlib_metadata if %python-base < 3.8}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if 0%{?python_version_nodots} < 38
Requires: python-importlib_metadata
%endif
Suggests: python-adlfs
Suggests: python-aiohttp
Suggests: python-pyarrow
@@ -58,8 +62,6 @@ BuildRequires: %{python_module distributed}
BuildRequires: %{python_module fusepy}
BuildRequires: %{python_module gcsfs}
BuildRequires: %{python_module notebook}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module panel}
BuildRequires: %{python_module paramiko}
BuildRequires: %{python_module pyftpdlib}
BuildRequires: %{python_module pytest}
@@ -68,6 +70,8 @@ BuildRequires: %{python_module requests}
BuildRequires: %{python_module s3fs}
BuildRequires: %{python_module smbprotocol}
BuildRequires: %{python_module zstandard}
BuildRequires: %{python_module numpy if (%python-base without python36-base)}
BuildRequires: %{python_module panel if (%python-base without python36-base)}
# cannot test git and http in the same installation (?)
# BuildRequires: %%{python_module pygit2}
# BuildRequires: git-core
@@ -79,6 +83,8 @@ A specification for pythonic filesystems.
%prep
%setup -q -n fsspec-%{version}
# 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
%build
%python_build