Blob Blame History Raw
# Avoid fsspec -> distributed -> dask -> fsspec dependency loop.
%bcond_without bootstrap

%global srcname fsspec

Name:           python-%{srcname}
Version:        2021.10.1
%global tag     2021.10.1
Release:        %autorelease
Summary:        Specification for Pythonic file system interfaces

License:        BSD
Source0:        %{url}/archive/%{tag}/%{srcname}-%{tag}.tar.gz

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(pytest-vcr)
BuildRequires:  python3dist(aiohttp)
BuildRequires:  python3dist(cloudpickle)
%if %{without bootstrap}
BuildRequires:  python3dist(distributed)
# Won't work in a build since it requires the kernel module to be loaded.
#BuildRequires:  python3dist(fusepy)
BuildRequires:  python3dist(jinja2)
BuildRequires:  python3dist(lz4)
BuildRequires:  python3dist(notebook)
BuildRequires:  python3dist(pandas)
# Requires a running SSH server in a container.
#BuildRequires:  python3dist(paramiko)
BuildRequires:  git-core python3dist(pygit2)
BuildRequires:  python3dist(python-snappy)
BuildRequires:  python3dist(requests)
# Requires a  running SMB server in a container.
#BuildRequires:  python3dist(smbprotocol)
BuildRequires:  python3dist(zstandard)

%global _description %{expand:
Filesystem Spec is a project to unify various projects and classes to work with
remote filesystems and file-system-like abstractions using a standard pythonic

%description %{_description}

%package -n     python3-%{srcname}
Summary:        %{summary}

%description -n python3-%{srcname} %{_description}

%autosetup -n filesystem_spec-%{tag} -p1



%pyproject_save_files %{srcname}

%{pytest} -vra -k 'not test_find'  # Doesn't have a vcr cassette.

%files -n python3-%{srcname} -f %{pyproject_files}
%license LICENSE