14
0
forked from pool/python-lz4

2 Commits

Author SHA256 Message Date
cb1d0a8d36 Accepting request 1303578 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1303578
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-lz4?expand=0&rev=15
2025-09-11 12:38:11 +00:00
fbf6ebc346 - Update to 4.4.4
* Various doc fixes
  * Update CI to newest actions and Python 3.13
  * Revert artifact renaming
- Add py314.patch to fix tests with Python 3.14

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lz4?expand=0&rev=31
2025-09-10 09:13:55 +00:00
5 changed files with 43 additions and 6 deletions

BIN
lz4-4.3.3.tar.gz (Stored with Git LFS)

Binary file not shown.

3
lz4-4.4.4.tar.gz Normal file
View File

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

26
py314.patch Normal file
View File

@@ -0,0 +1,26 @@
From 53819a9e78615bf61dd6d8f2c92274af0c397c2e Mon Sep 17 00:00:00 2001
From: Karolina Surma <ksurma@redhat.com>
Date: Thu, 29 May 2025 12:06:30 +0200
Subject: [PATCH] Correct the import of _compression for Python 3.14
This is backwards compatible with all supported versions of Python.
---
lz4/frame/__init__.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lz4/frame/__init__.py b/lz4/frame/__init__.py
index 00f3e64..60bf7dc 100644
--- a/lz4/frame/__init__.py
+++ b/lz4/frame/__init__.py
@@ -25,9 +25,9 @@
__doc__ = _doc
try:
- import _compression # Python 3.6 and later
+ import compression._common._streams as _compression # Python 3.14
except ImportError:
- from . import _compression
+ import _compression # Python 3.6 - 3.13
BLOCKSIZE_DEFAULT = _BLOCKSIZE_DEFAULT

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Tue Sep 9 14:55:40 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Update to 4.4.4
* Various doc fixes
* Update CI to newest actions and Python 3.13
* Revert artifact renaming
- Add py314.patch to fix tests with Python 3.14
-------------------------------------------------------------------
Sat Jan 13 20:41:52 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-lz4
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,13 +18,15 @@
%{?sle15_python_module_pythons}
Name: python-lz4
Version: 4.3.3
Version: 4.4.4
Release: 0
Summary: LZ4 Bindings for Python
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/python-lz4/python-lz4
Source: https://files.pythonhosted.org/packages/source/l/lz4/lz4-%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/python-lz4/python-lz4/pull/303 Correct the import of _compression for Python 3.14
Patch0: py314.patch
BuildRequires: %{python_module devel >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pkgconfig}
@@ -42,7 +44,7 @@ BuildRequires: python-rpm-macros
This package provides python bindings for the lz4 compression library.
%prep
%setup -q -n lz4-%{version}
%autosetup -p1 -n lz4-%{version}
%build
# not neccessary, but ensure we use system lib