python-fsspec/python-fsspec.spec
Dirk Mueller cd0832f953 - update to 2023.9.2:
* revert #1358: auto_mkdir in open() (#1365)
  * code style updates (#1373, 1372, 1371, 1370, 1369, 1364)
  * update CI setup (#1386)
- 2023.9.1
  * #1353, save file cache metadata in JSON
  * #1352, remove some unnecessary list iterations
  * #1361, re-allow None for default port for SMB
  * #1360, initialising GUI widget FS with kwargs
  * #1358, pass auto_mkdir vi url_to_fs again
  * #1354, auto delete temp cache directory
- 2023.9.0
  * #1346, add ocilake protocol
  * #1345, implement async-sync and async-async generic cp and
    rsync
  * #1344, add lakefs protocol
  * #1337 add goatcounter to docs
  * #1323, 1328, add xethub protocol
  * #1320, in HTTP, check content-encoding when getting length
  * #1303, add on_error in walk
  * #1302, add dirfs attribute to mappers
  * #1293, configure port for smb
  * #1349, don't reorder paths in bulk ops if source and dest are
    both lists
  * #1333, allow mode="x" in get_fs_token_paths
  * #1324, allow generic to work with complex URLs
  * #1316, exclude bytes-cache kwargs in url_to_fs
  * #1314, remote utcnow/utcfromtimestamp
  * #1311, dirFS's protocol
  * #1305, use get_file rather than get in file caching

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fsspec?expand=0&rev=54
2023-10-05 09:00:06 +00:00

125 lines
3.8 KiB
RPMSpec

#
# spec file
#
# Copyright (c) 2023 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/
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%{?sle15_python_module_pythons}
Name: python-fsspec%{psuffix}
Version: 2023.9.2
Release: 0
Summary: Filesystem specification package
License: BSD-3-Clause
URL: https://github.com/fsspec/filesystem_spec
# the tests are only in the GitHub archive
Source: https://github.com/fsspec/filesystem_spec/archive/%{version}.tar.gz#/fsspec-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: fuse
BuildRequires: python-rpm-macros
Requires: fuse
Suggests: python-adlfs
Suggests: python-aiohttp
Suggests: python-dask
Suggests: python-distributed
Suggests: python-dropbox
Suggests: python-dropboxdrivefs
Suggests: python-gcsfs
Suggests: python-paramiko
Suggests: python-pygit2
Suggests: python-requests
Suggests: python-s3fs
Suggests: python-smbprotocol
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module aiohttp}
BuildRequires: %{python_module cloudpickle}
BuildRequires: %{python_module distributed}
BuildRequires: %{python_module fastparquet}
BuildRequires: %{python_module fusepy}
BuildRequires: %{python_module gcsfs}
BuildRequires: %{python_module lz4}
BuildRequires: %{python_module notebook}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module panel}
BuildRequires: %{python_module paramiko}
BuildRequires: %{python_module pyarrow}
BuildRequires: %{python_module pyftpdlib}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-snappy}
BuildRequires: %{python_module requests}
# Too tight of a aiobotocore pinning: gh#fsspec/s3fs#615, gh#aio-libs/aiobotocore#971
#BuildRequires: %%{python_module s3fs}
BuildRequires: %{python_module smbprotocol}
BuildRequires: %{python_module zstandard}
# cannot test git and http in the same installation (?)
# BuildRequires: %%{python_module pygit2}
# BuildRequires: git-core
%endif
%python_subpackages
%description
A specification for pythonic filesystems.
%prep
%autosetup -p1 -n filesystem_spec-%{version}
%build
%pyproject_wheel
%if ! %{with test}
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check
# test_basic relies on speed of FS and timeouts in OBS
donttest="test_basic"
# test_not_cached needs sockets
donttest+=" or test_not_cached"
# wants to open a socket connection to "my_instance.com"
donttest+=" or test_dbfs"
# wants to connect to ftp.fau.de
donttest+=" or test_find"
# does not like the '.' from the version in the build path
donttest+=" or (test_local and test_make_path_posix)"
%pytest -rfEs -k "not ($donttest)"
%endif
%if ! %{with test}
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/fsspec
%{python_sitelib}/fsspec-%{version}*-info
%endif
%changelog