From e003dfb619eff4e3ee98d2fcee54515054af95097cb0d364264b4ec034be2137 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 3 May 2019 16:59:52 +0000 Subject: [PATCH] Accepting request 700455 from home:TheBlackCat:branches:devel:languages:python:jupyter Filesystem interface over GCS OBS-URL: https://build.opensuse.org/request/show/700455 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gcsfs?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + gcsfs-0.2.1.tar.gz | 3 ++ python-gcsfs.changes | 4 ++ python-gcsfs.spec | 97 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 128 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 gcsfs-0.2.1.tar.gz create mode 100644 python-gcsfs.changes create mode 100644 python-gcsfs.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/gcsfs-0.2.1.tar.gz b/gcsfs-0.2.1.tar.gz new file mode 100644 index 0000000..77757fe --- /dev/null +++ b/gcsfs-0.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:060008814cad1ffd4baf5288e4666570236e624577601fc13ab100619704694c +size 51427 diff --git a/python-gcsfs.changes b/python-gcsfs.changes new file mode 100644 index 0000000..2ddc170 --- /dev/null +++ b/python-gcsfs.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu May 2 17:17:18 UTC 2019 - Todd R + +- Initial version diff --git a/python-gcsfs.spec b/python-gcsfs.spec new file mode 100644 index 0000000..1fadb43 --- /dev/null +++ b/python-gcsfs.spec @@ -0,0 +1,97 @@ +# +# spec file for package python-gcsfs +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-gcsfs +Version: 0.2.1 +Release: 0 +License: BSD-3-Clause +Summary: Filesystem interface over GCS +Url: https://github.com/dask/gcsfs +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/g/gcsfs/gcsfs-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +# SECTION test requirements +BuildRequires: %{python_module click} +BuildRequires: %{python_module decorator} +BuildRequires: %{python_module fusepy} +BuildRequires: %{python_module google-auth >= 1.2} +BuildRequires: %{python_module google-auth-oauthlib} +BuildRequires: %{python_module pandas} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module vcrpy} +BuildRequires: libfuse2 +# /SECTION +BuildRequires: fdupes +Requires: python-decorator +Requires: python-google-auth >= 1.2 +Requires: python-google-auth-oauthlib +Requires: python-requests +Recommends: python-gcsfs-fuse = %{version} +Recommends: dask +BuildArch: noarch + +%python_subpackages + +%description +File-system interface for Google Cloud Storage. + +%package fuse +Summary: Filesystem interface over GCS - FUSE interface +Requires: libfuse2 +Requires: python-click +Requires: python-fusepy +Requires: python-pandas + +%description fuse +File-system interface for Google Cloud Storage. + +This package provides the optional FUSE interface. + +%prep +%setup -q -n gcsfs-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +# Tests require a network connection +# %%check +# %%python_expand pytest-%%{$python_bin_suffix} -vv -x gcsfs + +%files %{python_files} +%doc README.rst +%license LICENSE.txt +%{python_sitelib}/gcsfs-%{version}-py*.egg-info +%{python_sitelib}/gcsfs/ +%exclude %{python_sitelib}/gcsfs/cli/ +%exclude %{python_sitelib}/gcsfs/gcsfuse.py* +%pycache_only %exclude %{python_sitelib}/gcsfs/__pycache__/gcsfuse* + +%files %{python_files fuse} +%license LICENSE.txt +%python3_only %{_bindir}/gcsfuse +%{python_sitelib}/gcsfs/cli/ +%{python_sitelib}/gcsfs/gcsfuse.py* +%pycache_only %{python_sitelib}/gcsfs/__pycache__/gcsfuse* + +%changelog