commit 4a0b950a28dbb7aa4f940238a899c45ad2e6377855df0ffa1f36280295ed768c Author: Tomáš Chvátal Date: Wed May 15 15:54:34 2019 +0000 Accepting request 703113 from home:Simmphonie:python - Initial release version 1.2 OBS-URL: https://build.opensuse.org/request/show/703113 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyfuse3?expand=0&rev=1 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/pyfuse3-1.2.tar.gz b/pyfuse3-1.2.tar.gz new file mode 100644 index 0000000..7a3d7de --- /dev/null +++ b/pyfuse3-1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1439c59c852f9692afb3a201e980f77e8265494a035a7c3034e1b2c62170f32d +size 153935 diff --git a/python-pyfuse3.changes b/python-pyfuse3.changes new file mode 100644 index 0000000..d7f3e60 --- /dev/null +++ b/python-pyfuse3.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sat May 11 19:39:00 UTC 2019 - Torsten Gruner + +- Initial release version 1.2 + diff --git a/python-pyfuse3.spec b/python-pyfuse3.spec new file mode 100644 index 0000000..3ac6007 --- /dev/null +++ b/python-pyfuse3.spec @@ -0,0 +1,68 @@ +# +# spec file for package python-pyfuse3 +# +# 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-%{**}} +%define skip_python2 1 +%define pname pyfuse3 +Name: python-%{pname} +Version: 1.2 +Release: 0 +Summary: Python Bindings for the low-level FUSE3 API +License: LGPL-2.1-or-later +Group: Development/Libraries/Python +URL: https://github.com/libfuse/pyfuse3 +Source: https://github.com/libfuse/pyfuse3/archive/release-%{version}.tar.gz#/%{pname}-%{version}.tar.gz +BuildRequires: %{python_module Cython} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pytest-trio} +BuildRequires: %{python_module contextvars >= 2.1} +BuildRequires: fdupes +BuildRequires: fuse3-devel >= 3.3.0 +BuildRequires: libattr-devel +BuildRequires: python-rpm-macros +Recommends: fuse3 >= 3.3.0 + +%python_subpackages + +%description +pyfuse3 is a set of Python 3 bindings for libfuse 3. It provides an asynchronous API compatible with Trio and asyncio, and enables you to easily write a full-featured Linux filesystem in Python. + +%prep +%setup -q -n %{pname}-%{version} + +%build +%python_expand $python setup.py build_cython +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +# Note: There are some tests that are skipped because the user that +# runs rpmbuild should be able to run fusermount but there's no way +# to add it to the trusted group. +%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m pytest test/ -rsx + +%files %{python_files} +%doc Changes.rst README.rst +%license LICENSE +%{python_sitearch} + +%changelog