26b9aff
%global pypi_name gcsfs
26b9aff
# Tests require internet access
26b9aff
%bcond_with network
26b9aff
26b9aff
Name:           python-%{pypi_name}
26b9aff
Version:        0.6.2
f4b3f43
Release:        7%{?dist}
26b9aff
Summary:        Convenient Filesystem interface over GCS
26b9aff
26b9aff
License:        BSD
26b9aff
URL:            https://github.com/dask/gcsfs
26b9aff
Source0:        %{pypi_source}
26b9aff
BuildArch:      noarch
26b9aff
26b9aff
%description
26b9aff
Pythonic file-system for Google Cloud Storage.
26b9aff
26b9aff
%package -n     python3-%{pypi_name}
26b9aff
Summary:        %{summary}
26b9aff
26b9aff
BuildRequires:  python3-devel
26b9aff
BuildRequires:  python3-decorator
26b9aff
BuildRequires:  python3-fsspec
26b9aff
BuildRequires:  python3-fusepy
26b9aff
BuildRequires:  python3-google-auth
26b9aff
BuildRequires:  python3-google-auth-oauthlib
26b9aff
BuildRequires:  python3-requests
26b9aff
BuildRequires:  python3-setuptools
26b9aff
BuildRequires:  python3-pytest
26b9aff
BuildRequires:  python3-vcrpy
26b9aff
%{?python_provide:%python_provide python3-%{pypi_name}}
26b9aff
26b9aff
%description -n python3-%{pypi_name}
26b9aff
Pythonic file-system for Google Cloud Storage.
26b9aff
26b9aff
%package -n python-%{pypi_name}-doc
26b9aff
Summary:        Documentation for %{pypi_name}
26b9aff
26b9aff
BuildRequires:  python3-sphinx
26b9aff
BuildRequires:  python3-sphinx_rtd_theme
26b9aff
BuildRequires:  python3-numpydoc
26b9aff
26b9aff
%description -n python-%{pypi_name}-doc
26b9aff
Documentation for %{pypi_name}.
26b9aff
26b9aff
%prep
26b9aff
%autosetup -n %{pypi_name}-%{version}
26b9aff
rm -rf %{pypi_name}.egg-info
26b9aff
26b9aff
%build
26b9aff
%py3_build
26b9aff
26b9aff
%install
26b9aff
%py3_install
26b9aff
PYTHONPATH=%{buildroot}%{python3_sitelib} sphinx-build-3 docs/source html
26b9aff
rm -rf html/.{doctrees,buildinfo}
26b9aff
26b9aff
%if %{with network}
26b9aff
%check
26b9aff
# One test is failing
26b9aff
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v gcsfs/tests \
26b9aff
  -k "not test_request_header"
26b9aff
%endif
26b9aff
26b9aff
%files -n python3-%{pypi_name}
26b9aff
%license LICENSE.txt
26b9aff
%doc README.rst
26b9aff
%{python3_sitelib}/%{pypi_name}/
26b9aff
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
26b9aff
26b9aff
%files -n python-%{pypi_name}-doc
26b9aff
%doc html
26b9aff
%license LICENSE.txt
26b9aff
26b9aff
%changelog
f4b3f43
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-7
f4b3f43
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
f4b3f43
f4d6926
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-6
f4d6926
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
f4d6926
6fd158f
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.6.2-5
6fd158f
- Rebuilt for Python 3.10
6fd158f
03b1cc8
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-4
03b1cc8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
03b1cc8
cdb717f
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-3
cdb717f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
cdb717f
26b9aff
* Wed Jun 24 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.6.2-2
26b9aff
- Condition for tests
26b9aff
- Update BR (rhbz#1836686)
26b9aff
26b9aff
* Sun May 17 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.6.2-1
26b9aff
- Initial package for Fedora