14
0

- update to 3.2.2:

* remove support for python 3.5 (broken, out of support by python devs)
  * cythonize with latest Cython 0.29.x (brings Python 3.11 support)
  * use github actions for CI, remove travis-ci
  * update README: minimal maintenance, not developed
  * update setup.py with tested python versions
  * examples/tmpfs.py: work around strange kernel behaviour (calling SETATTR
    after
  UNLINK of a (not open) file): respond with ENOENT instead of crashing.
  * Add type annotations
  * Passing a XATTR_CREATE or XATTR_REPLACE to setxattr() is now working
  correctly.
- drop 0001-timestamp-rounding-tests-avoid-y2038-issue.patch (upstream)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyfuse3?expand=0&rev=19
This commit is contained in:
2023-01-07 23:29:52 +00:00
committed by Git OBS Bridge
parent edb62e2618
commit cd3a02d69c
5 changed files with 23 additions and 40 deletions

View File

@@ -1,33 +0,0 @@
From fb94a809da286a950862910a9760468aee2654fd Mon Sep 17 00:00:00 2001
From: Nikolaus Rath <Nikolaus@rath.org>
Date: Sun, 31 Jan 2021 14:49:43 +0000
Subject: [PATCH] timestamp rounding tests: avoid y2038 issue
100y was beyond y2038 and could lead to issues on 32 bit
systems (cf. https://github.com/python-llfuse/python-llfuse/issues/60).
---
test/test_rounding.py | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/test/test_rounding.py b/test/test_rounding.py
index 70865ed..58817a0 100755
--- a/test/test_rounding.py
+++ b/test/test_rounding.py
@@ -22,12 +22,14 @@ def test_rounding():
# all dates.
entry = pyfuse3.EntryAttributes()
- # Approximately 100 years, ending in 999
- secs = 100 * 365 * 24 * 3600 + 999
+ # Approximately 67 years, ending in 999.
+ # Note: 67 years were chosen to avoid y2038 issues (1970 + 67 = 2037).
+ # Testing these is **not** in scope of this test.
+ secs = 67 * 365 * 24 * 3600 + 999
nanos = _NANOS_PER_SEC - 1
total = secs * _NANOS_PER_SEC + nanos
-
+
entry.st_atime_ns = total
entry.st_ctime_ns = total
entry.st_mtime_ns = total

View File

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

3
pyfuse3-3.2.2.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,20 @@
-------------------------------------------------------------------
Sat Jan 7 23:26:39 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 3.2.2:
* remove support for python 3.5 (broken, out of support by python devs)
* cythonize with latest Cython 0.29.x (brings Python 3.11 support)
* use github actions for CI, remove travis-ci
* update README: minimal maintenance, not developed
* update setup.py with tested python versions
* examples/tmpfs.py: work around strange kernel behaviour (calling SETATTR
after
UNLINK of a (not open) file): respond with ENOENT instead of crashing.
* Add type annotations
* Passing a XATTR_CREATE or XATTR_REPLACE to setxattr() is now working
correctly.
- drop 0001-timestamp-rounding-tests-avoid-y2038-issue.patch (upstream)
-------------------------------------------------------------------
Mon May 17 11:22:24 UTC 2021 - Antonio Larrosa <alarrosa@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pyfuse3
# spec file
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -20,13 +20,12 @@
%define skip_python2 1
%define pname pyfuse3
Name: python-%{pname}
Version: 3.2.0
Version: 3.2.2
Release: 0
Summary: Python Bindings for the low-level FUSE3 API
License: LGPL-2.1-or-later
URL: https://github.com/libfuse/pyfuse3
Source: https://files.pythonhosted.org/packages/source/p/%{pname}/%{pname}-%{version}.tar.gz
Patch0: 0001-timestamp-rounding-tests-avoid-y2038-issue.patch
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel >= 3.5}
BuildRequires: %{python_module pytest >= 3.4.0}