14
0
forked from pool/python-fuse

Accepting request 1254139 from devel:languages:python

- Update to 1.0.9:
  - Update AUTHORS
  - Demonstrate basic possibility to test with pytest
  - When getting string size, count UTF8 bytes
  - CI: add python 3.13
  - pull PyCapsule_New() into the PYLOCK() section in poll_func()
- Separate documentation to separate subpackage.
- Add examples subdirectory to that documentation.
- Make the test suite running.

OBS-URL: https://build.opensuse.org/request/show/1254139
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fuse?expand=0&rev=15
This commit is contained in:
2025-03-18 16:46:28 +00:00
committed by Git OBS Bridge
5 changed files with 56 additions and 10 deletions

3
_multibuild Normal file
View File

@@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:50fd95dc966adf419d6afccf69bf8cb4814bf4b5b93c051308da6fc9de982912
size 54289

3
python-fuse-1.0.9.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d6a0add7b06870091050fda52b7893d76ed3dd38cfbc5a351842e1940a1d8b33
size 55688

View File

@@ -1,3 +1,16 @@
-------------------------------------------------------------------
Mon Mar 17 10:20:11 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Update to 1.0.9:
- Update AUTHORS
- Demonstrate basic possibility to test with pytest
- When getting string size, count UTF8 bytes
- CI: add python 3.13
- pull PyCapsule_New() into the PYLOCK() section in poll_func()
- Separate documentation to separate subpackage.
- Add examples subdirectory to that documentation.
- Make the test suite running.
-------------------------------------------------------------------
Wed Sep 4 08:16:03 UTC 2024 - Frantisek Simorda <frantisek.simorda@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-fuse
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,17 +17,29 @@
%{?sle15_python_module_pythons}
Name: python-fuse
Version: 1.0.8
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
Name: python-fuse%{psuffix}
Version: 1.0.9
Release: 0
Summary: Python bindings for FUSE
License: LGPL-2.1-only
URL: https://github.com/libfuse/python-fuse
Source: https://github.com/libfuse/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source0: https://github.com/libfuse/python-fuse/archive/v%{version}.tar.gz#/python-fuse-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
%if %{with test}
BuildRequires: %{python_module fuse = %{version}}
BuildRequires: %{python_module pytest}
%endif
BuildRequires: fdupes
BuildRequires: fuse-devel
BuildRequires: pkgconfig
@@ -37,26 +49,44 @@ BuildRequires: python-rpm-macros
%description
Python bindings for FUSE (User space File System)
%package -n %{name}-doc
Summary: Documentation files for %name
Group: Documentation/Other
%description -n %{name}-doc
HTML Documentation and examples for %name.
%prep
%autosetup -p1
%autosetup -p1 -n python-fuse-%{version}
%build
%if %{without test}
export CFLAGS="%{optflags}"
%pyproject_wheel
%endif
%install
%if %{without test}
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%endif
%check
# Can not figured how to do it.
%if %{with test}
# gh#libfuse/python-fuse#94
%pytest tests -k 'not test_fioc'
%endif
%if %{without test}
%files %{python_files}
%license COPYING
%doc README.* FAQ AUTHORS
%{python_sitearch}/fuse.py
%pycache_only %{python_sitearch}/__pycache__/fuse*.py*
%{python_sitearch}/fuseparts
%{python_sitearch}/fuse_python-%{version}.dist-info
%files -n %{name}-doc
%doc README.* FAQ AUTHORS example
%endif
%changelog