forked from pool/python-blosc
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 614e184999 | |||
| bbb8a0dbe2 | |||
| b044b5da7f | |||
| 97453bfd75 |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ac5e7c1bfc1c7232b900be94cddb5ffcf9ea49f313c8ae98a7ca0dd87b872bf4
|
|
||||||
size 1434010
|
|
||||||
3
blosc-1.11.3.tar.gz
Normal file
3
blosc-1.11.3.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:89ed658eba7814a92e89c44d8c524148d55921595bc133bd1a90f8888a9e088e
|
||||||
|
size 1439627
|
||||||
@@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 2 08:42:43 UTC 2025 - Marius Grossu <marius.grossu@suse.com>
|
||||||
|
|
||||||
|
- Add the use-frombuffer.patch: It fix the building due to binary mode of fromstring being removed
|
||||||
|
(gh#Blosc/python-blosc#342)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jul 12 11:41:45 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 1.11.3:
|
||||||
|
* Added support for Python 3.13. Thanks to David Stansby.
|
||||||
|
* Internal C-Blosc sources updated to
|
||||||
|
051b9d2cb9437e375dead8574f66d80ebce47bee.
|
||||||
|
* CI fixes.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 9 17:06:19 UTC 2024 - ecsos <ecsos@opensuse.org>
|
Tue Jul 9 17:06:19 UTC 2024 - ecsos <ecsos@opensuse.org>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-blosc
|
# spec file for package python-blosc
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -18,13 +18,15 @@
|
|||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-blosc
|
Name: python-blosc
|
||||||
Version: 1.11.2
|
Version: 1.11.3
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Blosc data compressor for Python
|
Summary: Blosc data compressor for Python
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/Blosc/python-blosc
|
URL: https://github.com/Blosc/python-blosc
|
||||||
Source: https://files.pythonhosted.org/packages/source/b/blosc/blosc-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/b/blosc/blosc-%{version}.tar.gz
|
||||||
|
# PATCH-FIX-UPSTREAM use-frombuffer.patch gh#Blosc/python-blosc#342
|
||||||
|
Patch0: use-frombuffer.patch
|
||||||
BuildRequires: %{python_module devel >= 3.8}
|
BuildRequires: %{python_module devel >= 3.8}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module scikit-build >= 0.11.1}
|
BuildRequires: %{python_module scikit-build >= 0.11.1}
|
||||||
|
|||||||
23
use-frombuffer.patch
Normal file
23
use-frombuffer.patch
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
From c858a7805946d4002dbd8ab4a2f7416b7a0aefdb Mon Sep 17 00:00:00 2001
|
||||||
|
From: Marius Grossu <mgrossu@localhost.localdomain>
|
||||||
|
Date: Mon, 1 Sep 2025 12:56:34 +0200
|
||||||
|
Subject: [PATCH] Change fromstring to frombuffer because the binary mode was
|
||||||
|
removed
|
||||||
|
|
||||||
|
---
|
||||||
|
blosc/toplevel.py | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/blosc/toplevel.py b/blosc/toplevel.py
|
||||||
|
index 4d2d413..3ef2327 100644
|
||||||
|
--- a/blosc/toplevel.py
|
||||||
|
+++ b/blosc/toplevel.py
|
||||||
|
@@ -513,7 +513,7 @@ def compress_ptr(address, items, typesize=8, clevel=9, shuffle=blosc.SHUFFLE,
|
||||||
|
>>> c = blosc.compress_ptr(np_array.__array_interface__['data'][0], \
|
||||||
|
items, np_array.dtype.itemsize)
|
||||||
|
>>> d = blosc.decompress(c)
|
||||||
|
- >>> np_ans = numpy.fromstring(d, dtype=np_array.dtype)
|
||||||
|
+ >>> np_ans = numpy.frombuffer(d, dtype=np_array.dtype)
|
||||||
|
>>> bool((np_array == np_ans).all())
|
||||||
|
True
|
||||||
|
|
||||||
Reference in New Issue
Block a user