From 26b9aff2667dd8a65233da9fb2f05d6ba12478b3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Jul 13 2020 15:54:40 +0000 Subject: * Wed Jun 24 2020 Fabian Affolter - 0.6.2-2 - Condition for tests - Update BR (rhbz#1836686) * Sun May 17 2020 Fabian Affolter - 0.6.2-1 - Initial package for Fedora --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0280543 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gcsfs-0.6.2.tar.gz diff --git a/python-gcsfs.spec b/python-gcsfs.spec new file mode 100644 index 0000000..6cc7b1d --- /dev/null +++ b/python-gcsfs.spec @@ -0,0 +1,81 @@ +%global pypi_name gcsfs +# Tests require internet access +%bcond_with network + +Name: python-%{pypi_name} +Version: 0.6.2 +Release: 2%{?dist} +Summary: Convenient Filesystem interface over GCS + +License: BSD +URL: https://github.com/dask/gcsfs +Source0: %{pypi_source} +BuildArch: noarch + +%description +Pythonic file-system for Google Cloud Storage. + +%package -n python3-%{pypi_name} +Summary: %{summary} + +BuildRequires: python3-devel +BuildRequires: python3-decorator +BuildRequires: python3-fsspec +BuildRequires: python3-fusepy +BuildRequires: python3-google-auth +BuildRequires: python3-google-auth-oauthlib +BuildRequires: python3-requests +BuildRequires: python3-setuptools +BuildRequires: python3-pytest +BuildRequires: python3-vcrpy +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +Pythonic file-system for Google Cloud Storage. + +%package -n python-%{pypi_name}-doc +Summary: Documentation for %{pypi_name} + +BuildRequires: python3-sphinx +BuildRequires: python3-sphinx_rtd_theme +BuildRequires: python3-numpydoc + +%description -n python-%{pypi_name}-doc +Documentation for %{pypi_name}. + +%prep +%autosetup -n %{pypi_name}-%{version} +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install +PYTHONPATH=%{buildroot}%{python3_sitelib} sphinx-build-3 docs/source html +rm -rf html/.{doctrees,buildinfo} + +%if %{with network} +%check +# One test is failing +PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v gcsfs/tests \ + -k "not test_request_header" +%endif + +%files -n python3-%{pypi_name} +%license LICENSE.txt +%doc README.rst +%{python3_sitelib}/%{pypi_name}/ +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info + +%files -n python-%{pypi_name}-doc +%doc html +%license LICENSE.txt + +%changelog +* Wed Jun 24 2020 Fabian Affolter - 0.6.2-2 +- Condition for tests +- Update BR (rhbz#1836686) + +* Sun May 17 2020 Fabian Affolter - 0.6.2-1 +- Initial package for Fedora diff --git a/sources b/sources new file mode 100644 index 0000000..f05c698 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gcsfs-0.6.2.tar.gz) = 2a4837e1516436276f3682cb9398a890a0a9065d7b5408ac767507281914ba82ec76f051c90da66815b6ddb759642f38fee837d232e96aad942f0fc12c57352a