File python-s3fs.spec of Package python-s3fs
#
# spec file for package python-s3fs
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-s3fs
Version: 2022.5.0
Release: 0
Summary: Python filesystem interface for S3
License: BSD-3-Clause
URL: https://github.com/fsspec/s3fs/
Source: https://files.pythonhosted.org/packages/source/s/s3fs/s3fs-%{version}.tar.gz
BuildRequires: %{python_module Flask}
BuildRequires: %{python_module aiobotocore >= 2.3.0}
BuildRequires: %{python_module aiohttp}
BuildRequires: %{python_module boto3}
BuildRequires: %{python_module fsspec = %{version}}
BuildRequires: %{python_module moto-server >= 2.0}
BuildRequires: %{python_module pytest >= 4.2.0}
BuildRequires: %{python_module pytest-env}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-aiobotocore >= 2.3.0
Requires: python-aiohttp
Requires: python-fsspec = %{version}
Recommends: aws-cli
Recommends: python-boto3
BuildArch: noarch
%python_subpackages
%description
S3FS builds on aiobotocore to provide a Python filesystem
interface for S3.
%prep
%autosetup -p1 -n s3fs-%{version}
chmod -x s3fs.egg-info/*
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# online test (not mocked through moto)
donttest="test_async_close"
# not deleting fast enough obs serverside
donttest+=" or test_s3_big_ls"
%pytest -k "not ($donttest)"
%files %{python_files}
%doc README.rst
%license LICENSE.txt
%{python_sitelib}/s3fs
%{python_sitelib}/s3fs-%{version}*-info
%changelog