2019-05-03 16:59:52 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-gcsfs
|
|
|
|
#
|
2022-01-07 00:19:08 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2019-05-03 16:59:52 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-04-06 14:35:48 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2019-05-03 16:59:52 +00:00
|
|
|
|
|
|
|
|
2022-01-25 07:15:17 +00:00
|
|
|
%{?!python_module:%define python_module() python3-%{**}}
|
2022-01-07 00:19:08 +00:00
|
|
|
# the test suite moved to a docker simulator which we cannot run inside an obs environment
|
|
|
|
%bcond_with fulltest
|
2019-07-23 15:57:01 +00:00
|
|
|
%define skip_python2 1
|
2022-02-23 12:10:01 +00:00
|
|
|
%define ghversiontag 2022.02.0
|
2019-05-03 16:59:52 +00:00
|
|
|
Name: python-gcsfs
|
2022-02-23 12:10:01 +00:00
|
|
|
Version: 2022.2.0
|
2019-05-03 16:59:52 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Filesystem interface over GCS
|
2020-04-06 14:35:48 +00:00
|
|
|
License: BSD-3-Clause
|
2019-05-03 16:59:52 +00:00
|
|
|
Group: Development/Languages/Python
|
2022-01-07 00:19:08 +00:00
|
|
|
URL: https://github.com/fsspec/gcsfs
|
|
|
|
# Use the GitHub tarball for test data
|
2022-01-25 07:15:17 +00:00
|
|
|
Source: https://github.com/fsspec/gcsfs/archive/refs/tags/%{ghversiontag}.tar.gz#/gcsfs-%{ghversiontag}-gh.tar.gz
|
2019-05-03 16:59:52 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2020-04-06 14:35:48 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2020-10-06 19:17:45 +00:00
|
|
|
Requires: python-aiohttp
|
2022-01-07 00:19:08 +00:00
|
|
|
Requires: python-decorator > 4.1.2
|
2022-02-23 12:10:01 +00:00
|
|
|
Requires: python-fsspec = %{version}
|
2020-04-06 14:35:48 +00:00
|
|
|
Requires: python-google-auth >= 1.2
|
|
|
|
Requires: python-google-auth-oauthlib
|
2022-01-07 00:19:08 +00:00
|
|
|
Requires: python-google-cloud-storage
|
2020-04-06 14:35:48 +00:00
|
|
|
Requires: python-requests
|
|
|
|
Recommends: dask
|
|
|
|
Recommends: python-gcsfs-fuse = %{version}
|
2021-08-18 14:16:39 +00:00
|
|
|
Suggests: python-crcmod
|
2020-04-06 14:35:48 +00:00
|
|
|
BuildArch: noarch
|
2019-05-03 16:59:52 +00:00
|
|
|
# SECTION test requirements
|
2022-01-07 00:19:08 +00:00
|
|
|
# always import in order to detect dependency breakages at build time
|
2020-10-06 19:17:45 +00:00
|
|
|
BuildRequires: %{python_module aiohttp}
|
2022-02-23 12:10:01 +00:00
|
|
|
BuildRequires: %{python_module black}
|
2019-05-03 16:59:52 +00:00
|
|
|
BuildRequires: %{python_module click}
|
2022-01-07 00:19:08 +00:00
|
|
|
BuildRequires: %{python_module decorator > 4.1.2}
|
|
|
|
BuildRequires: %{python_module fsspec == %{version}}
|
2019-05-03 16:59:52 +00:00
|
|
|
BuildRequires: %{python_module fusepy}
|
2022-02-23 12:10:01 +00:00
|
|
|
BuildRequires: %{python_module google-api-core}
|
|
|
|
BuildRequires: %{python_module google-api-python-client}
|
2019-05-03 16:59:52 +00:00
|
|
|
BuildRequires: %{python_module google-auth >= 1.2}
|
|
|
|
BuildRequires: %{python_module google-auth-oauthlib}
|
2022-01-07 00:19:08 +00:00
|
|
|
BuildRequires: %{python_module google-cloud-storage}
|
2019-05-03 16:59:52 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module requests}
|
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
File-system interface for Google Cloud Storage.
|
|
|
|
|
|
|
|
%package fuse
|
|
|
|
Summary: Filesystem interface over GCS - FUSE interface
|
2020-04-06 14:35:48 +00:00
|
|
|
Group: Development/Languages/Python
|
2019-05-03 16:59:52 +00:00
|
|
|
Requires: python-click
|
|
|
|
Requires: python-fusepy
|
|
|
|
|
|
|
|
%description fuse
|
|
|
|
File-system interface for Google Cloud Storage.
|
|
|
|
|
|
|
|
This package provides the optional FUSE interface.
|
|
|
|
|
|
|
|
%prep
|
2021-08-18 14:16:39 +00:00
|
|
|
%autosetup -p1 -n gcsfs-%{ghversiontag}
|
2022-01-07 00:19:08 +00:00
|
|
|
sed -i 's/--color=yes//' setup.cfg
|
2019-05-03 16:59:52 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
2020-04-06 14:35:48 +00:00
|
|
|
%check
|
2022-02-23 12:10:01 +00:00
|
|
|
## # Tests test_map_simple, test_map_with_data and test_map_clear_empty require a network connection
|
|
|
|
## %%pytest -k "not network" gcsfs/tests
|
|
|
|
## # export GCSFS_RECORD_MODE=none
|
|
|
|
## # export GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/gcsfs/tests/fake-secret.json
|
|
|
|
## # %%%%pytest -rfEs
|
|
|
|
##
|
|
|
|
## - name: Install dependencies
|
|
|
|
## shell: bash -l {0}
|
|
|
|
## run: |
|
|
|
|
## pip install git+https://github.com/fsspec/filesystem_spec --no-deps
|
|
|
|
## conda list
|
|
|
|
## conda --version
|
|
|
|
## - name: Install
|
|
|
|
## shell: bash -l {0}
|
|
|
|
## run: pip install .[crc]
|
|
|
|
##
|
|
|
|
## - name: Run Tests
|
|
|
|
## shell: bash -l {0}
|
|
|
|
## run: |
|
|
|
|
## export GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/gcsfs/tests/fake-secret.json
|
|
|
|
## py.test -vv gcsfs
|
2021-08-18 14:16:39 +00:00
|
|
|
export GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/gcsfs/tests/fake-secret.json
|
2022-01-07 00:19:08 +00:00
|
|
|
%if %{with fulltest}
|
2021-08-18 14:16:39 +00:00
|
|
|
%pytest -rfEs
|
2022-01-07 00:19:08 +00:00
|
|
|
%else
|
|
|
|
%pytest -rfEs -k test_checkers
|
|
|
|
%endif
|
2019-05-03 16:59:52 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE.txt
|
2022-01-25 07:15:17 +00:00
|
|
|
%{python_sitelib}/gcsfs-%{version}*-info
|
2019-05-03 16:59:52 +00:00
|
|
|
%{python_sitelib}/gcsfs/
|
|
|
|
%exclude %{python_sitelib}/gcsfs/cli/
|
|
|
|
|
|
|
|
%files %{python_files fuse}
|
|
|
|
%license LICENSE.txt
|
|
|
|
%{python_sitelib}/gcsfs/cli/
|
|
|
|
|
|
|
|
%changelog
|