public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-numcodecs] rawhide: Update to 0.17.0 upstream release
@ 2026-09-18 19:15 Elliott Sales de Andrade
  0 siblings, 0 replies; only message in thread
From: Elliott Sales de Andrade @ 2026-09-18 19:15 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-numcodecs
            Branch : rawhide
            Commit : 7f77434fee6f1a6870ffce76062e22e077dbefda
            Author : Elliott Sales de Andrade <quantum.analyst@gmail.com>
            Date   : 2026-09-18T04:13:38-04:00
            Stats  : +234/-381 in 13 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-numcodecs/c/7f77434fee6f1a6870ffce76062e22e077dbefda?branch=rawhide

            Log:
            Update to 0.17.0 upstream release

- Resolves: rhbz#2536819

Co-authored-by: Packit <hello@packit.dev>

---
diff --git a/.gitignore b/.gitignore
index ca59d9e..e5ba081 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,3 +21,4 @@
 /numcodecs-0.16.2.tar.gz
 /numcodecs-0.16.3.tar.gz
 /numcodecs-0.16.5.tar.gz
+/numcodecs-0.17.0.tar.gz

diff --git a/0001-Allow-building-against-a-system-Zlib.patch b/0001-Allow-building-against-a-system-Zlib.patch
new file mode 100644
index 0000000..ff6ec35
--- /dev/null
+++ b/0001-Allow-building-against-a-system-Zlib.patch
@@ -0,0 +1,137 @@
+From 1caddd4f6edd3342f349c5cbf6b8185bca4d54b5 Mon Sep 17 00:00:00 2001
+From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
+Date: Fri, 18 Sep 2026 02:41:03 -0400
+Subject: [PATCH 1/3] Allow building against a system Zlib
+
+Also, don't build vendored Zlib internally if not using vendored blosc,
+as it isn't necessary.
+
+And drop the extra licenses.
+
+Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
+---
+ meson.options             |  6 ++--
+ pyproject.toml            |  2 --
+ src/numcodecs/meson.build | 64 +++++++++++++++++++++------------------
+ 3 files changed, 38 insertions(+), 34 deletions(-)
+
+diff --git a/meson.options b/meson.options
+index 26a2414..f055af8 100644
+--- a/meson.options
++++ b/meson.options
+@@ -1,9 +1,11 @@
+ option('system_blosc', type: 'feature', value: 'disabled',
+        description: 'Use system-installed Blosc library')
+-option('system_zstd', type: 'feature', value: 'disabled',
+-       description: 'Use system-installed Zstandard library')
+ option('system_lz4', type: 'feature', value: 'disabled',
+        description: 'Use system-installed LZ4 library')
++option('system_zlib', type: 'feature', value: 'disabled',
++       description: 'Use system-installed Zlib library')
++option('system_zstd', type: 'feature', value: 'disabled',
++       description: 'Use system-installed Zstandard library')
+ option('sse2', type: 'feature', value: 'auto',
+        description: 'Enable SSE2 SIMD optimizations')
+ option('avx2', type: 'feature', value: 'auto',
+diff --git a/pyproject.toml b/pyproject.toml
+index 185ecc3..192df28 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -36,8 +36,6 @@ maintainers = [
+ license = "MIT"
+ license-files = [
+     "LICENSE.txt",
+-    "c-blosc/LICENSE.txt",
+-    "c-blosc/LICENSES/*",
+ ]
+ 
+ [project.urls]
+diff --git a/src/numcodecs/meson.build b/src/numcodecs/meson.build
+index eca2b2c..41a3a7a 100644
+--- a/src/numcodecs/meson.build
++++ b/src/numcodecs/meson.build
+@@ -123,39 +123,43 @@ if not lz4_dep.found()
+   )
+ endif
+ 
+-# --- Vendored zlib (always vendored, used by blosc) ---
+-zlib_sources = files(
+-  '../../c-blosc/internal-complibs/zlib-1.3.1/adler32.c',
+-  '../../c-blosc/internal-complibs/zlib-1.3.1/compress.c',
+-  '../../c-blosc/internal-complibs/zlib-1.3.1/crc32.c',
+-  '../../c-blosc/internal-complibs/zlib-1.3.1/deflate.c',
+-  '../../c-blosc/internal-complibs/zlib-1.3.1/gzclose.c',
+-  '../../c-blosc/internal-complibs/zlib-1.3.1/gzlib.c',
+-  '../../c-blosc/internal-complibs/zlib-1.3.1/gzread.c',
+-  '../../c-blosc/internal-complibs/zlib-1.3.1/gzwrite.c',
+-  '../../c-blosc/internal-complibs/zlib-1.3.1/infback.c',
+-  '../../c-blosc/internal-complibs/zlib-1.3.1/inffast.c',
+-  '../../c-blosc/internal-complibs/zlib-1.3.1/inflate.c',
+-  '../../c-blosc/internal-complibs/zlib-1.3.1/inftrees.c',
+-  '../../c-blosc/internal-complibs/zlib-1.3.1/trees.c',
+-  '../../c-blosc/internal-complibs/zlib-1.3.1/uncompr.c',
+-  '../../c-blosc/internal-complibs/zlib-1.3.1/zutil.c',
+-)
+-zlib_inc = include_directories('../../c-blosc/internal-complibs/zlib-1.3.1')
+-
+-zlib_lib = static_library('zlib_vendored', zlib_sources,
+-  include_directories: zlib_inc,
+-  c_args: c_args,
+-)
+-zlib_dep = declare_dependency(
+-  link_with: zlib_lib,
+-  include_directories: zlib_inc,
+-)
+-
+ # --- Vendored blosc ---
+ blosc_dep = dependency('blosc', required: get_option('system_blosc'))
+ 
+ if not blosc_dep.found()
++  # --- Vendored zlib ---
++  zlib_dep = dependency('zlib', required: get_option('system_zlib'))
++
++  if not zlib_dep.found()
++    zlib_sources = files(
++      '../../c-blosc/internal-complibs/zlib-1.3.1/adler32.c',
++      '../../c-blosc/internal-complibs/zlib-1.3.1/compress.c',
++      '../../c-blosc/internal-complibs/zlib-1.3.1/crc32.c',
++      '../../c-blosc/internal-complibs/zlib-1.3.1/deflate.c',
++      '../../c-blosc/internal-complibs/zlib-1.3.1/gzclose.c',
++      '../../c-blosc/internal-complibs/zlib-1.3.1/gzlib.c',
++      '../../c-blosc/internal-complibs/zlib-1.3.1/gzread.c',
++      '../../c-blosc/internal-complibs/zlib-1.3.1/gzwrite.c',
++      '../../c-blosc/internal-complibs/zlib-1.3.1/infback.c',
++      '../../c-blosc/internal-complibs/zlib-1.3.1/inffast.c',
++      '../../c-blosc/internal-complibs/zlib-1.3.1/inflate.c',
++      '../../c-blosc/internal-complibs/zlib-1.3.1/inftrees.c',
++      '../../c-blosc/internal-complibs/zlib-1.3.1/trees.c',
++      '../../c-blosc/internal-complibs/zlib-1.3.1/uncompr.c',
++      '../../c-blosc/internal-complibs/zlib-1.3.1/zutil.c',
++    )
++    zlib_inc = include_directories('../../c-blosc/internal-complibs/zlib-1.3.1')
++
++    zlib_lib = static_library('zlib_vendored', zlib_sources,
++      include_directories: zlib_inc,
++      c_args: c_args,
++    )
++    zlib_dep = declare_dependency(
++      link_with: zlib_lib,
++      include_directories: zlib_inc,
++    )
++  endif
++
+   blosc_sources = files(
+     '../../c-blosc/blosc/blosc.c',
+     '../../c-blosc/blosc/blosclz.c',
+@@ -207,7 +211,7 @@ endif
+ # Extensions with C library dependencies
+ py.extension_module('blosc',
+   'blosc.pyx',
+-  dependencies: [blosc_dep, lz4_dep, zlib_dep, zstd_dep],
++  dependencies: [blosc_dep],
+   c_args: c_args,
+   link_args: link_args,
+   install: true,
+-- 
+2.54.0
+

diff --git a/0001-Unbundle-blosc.patch b/0001-Unbundle-blosc.patch
deleted file mode 100644
index 640dcd8..0000000
--- a/0001-Unbundle-blosc.patch
+++ /dev/null
@@ -1,127 +0,0 @@
-From 2c111a7766129647bac5736aa74f8a4478ccec03 Mon Sep 17 00:00:00 2001
-From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
-Date: Sat, 16 Mar 2019 00:17:41 -0400
-Subject: [PATCH 1/6] Unbundle blosc
-
-Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
----
- MANIFEST.in |  1 -
- setup.py    | 70 ++++++++++++-----------------------------------------
- 2 files changed, 16 insertions(+), 55 deletions(-)
-
-diff --git a/MANIFEST.in b/MANIFEST.in
-index 41513ec..ef51486 100644
---- a/MANIFEST.in
-+++ b/MANIFEST.in
-@@ -1,4 +1,3 @@
--recursive-include c-blosc *
- recursive-include numcodecs *.pyx
- recursive-include numcodecs *.pxd
- include numcodecs/tests/package_with_entrypoint-0.1.dist-info/entry_points.txt
-diff --git a/setup.py b/setup.py
-index c27fad3..b5230b2 100644
---- a/setup.py
-+++ b/setup.py
-@@ -1,5 +1,8 @@
- import os
-+import shlex
-+import subprocess
- import sys
-+from collections import namedtuple
- from distutils import ccompiler
- from distutils.command.clean import clean
- from distutils.sysconfig import customize_compiler
-@@ -56,6 +59,15 @@ def error(*msg):
-     print('[numcodecs]', *msg, **kwargs)
- 
- 
-+Package = namedtuple('Package', 'cflags libs')
-+
-+
-+def pkgconfig(name):
-+    cflags = os.fsdecode(subprocess.check_output(['pkg-config', '--cflags', name]))
-+    libs = os.fsdecode(subprocess.check_output(['pkg-config', '--libs', name]))
-+    return Package(shlex.split(cflags), shlex.split(libs))
-+
-+
- def blosc_extension():
-     info('setting up Blosc extension')
- 
-@@ -69,57 +81,9 @@ def blosc_extension():
-         extra_link_args.append('-pthread')
- 
-     # setup blosc sources
--    blosc_sources = [f for f in glob('c-blosc/blosc/*.c') if 'avx2' not in f and 'sse2' not in f]
--    include_dirs = [os.path.join('c-blosc', 'blosc')]
--
--    # add internal complibs
--    blosc_sources += glob('c-blosc/internal-complibs/lz4*/*.c')
--    blosc_sources += glob('c-blosc/internal-complibs/snappy*/*.cc')
--    blosc_sources += glob('c-blosc/internal-complibs/zlib*/*.c')
--    blosc_sources += glob('c-blosc/internal-complibs/zstd*/common/*.c')
--    blosc_sources += glob('c-blosc/internal-complibs/zstd*/compress/*.c')
--    blosc_sources += glob('c-blosc/internal-complibs/zstd*/decompress/*.c')
--    blosc_sources += glob('c-blosc/internal-complibs/zstd*/dictBuilder/*.c')
--    include_dirs += [d for d in glob('c-blosc/internal-complibs/*') if os.path.isdir(d)]
--    include_dirs += [d for d in glob('c-blosc/internal-complibs/*/*') if os.path.isdir(d)]
--    include_dirs += [d for d in glob('c-blosc/internal-complibs/*/*/*') if os.path.isdir(d)]
--    # remove minizip because Python.h 3.8 tries to include crypt.h
--    include_dirs = [d for d in include_dirs if 'minizip' not in d]
--    define_macros += [
--        ('HAVE_LZ4', 1),
--        # ('HAVE_SNAPPY', 1),
--        ('HAVE_ZLIB', 1),
--        ('HAVE_ZSTD', 1),
--    ]
--    # define_macros += [('CYTHON_TRACE', '1')]
--
--    # SSE2
--    if have_sse2 and not disable_sse2:
--        info('compiling Blosc extension with SSE2 support')
--        extra_compile_args.append('-DSHUFFLE_SSE2_ENABLED')
--        blosc_sources += [f for f in glob('c-blosc/blosc/*.c') if 'sse2' in f]
--        if os.name == 'nt':
--            define_macros += [('__SSE2__', 1)]
--    else:
--        info('compiling Blosc extension without SSE2 support')
--
--    # AVX2
--    if have_avx2 and not disable_avx2:
--        info('compiling Blosc extension with AVX2 support')
--        extra_compile_args.append('-DSHUFFLE_AVX2_ENABLED')
--        blosc_sources += [f for f in glob('c-blosc/blosc/*.c') if 'avx2' in f]
--        if os.name == 'nt':
--            define_macros += [('__AVX2__', 1)]
--    else:
--        info('compiling Blosc extension without AVX2 support')
--
--    # include assembly files
--    if cpuinfo.platform.machine() == 'x86_64':
--        extra_objects = [
--            S[:-1] + 'o' for S in glob("c-blosc/internal-complibs/zstd*/decompress/*amd64.S")
--        ]
--    else:
--        extra_objects = []
-+    blosc = pkgconfig('blosc')
-+    extra_compile_args += blosc.cflags
-+    extra_link_args += blosc.libs
- 
-     sources = ['numcodecs/blosc.pyx']
- 
-@@ -127,12 +91,10 @@ def blosc_extension():
-     return [
-         Extension(
-             'numcodecs.blosc',
--            sources=sources + blosc_sources,
--            include_dirs=include_dirs,
-+            sources=sources,
-             define_macros=define_macros,
-             extra_compile_args=extra_compile_args,
-             extra_link_args=extra_link_args,
--            extra_objects=extra_objects,
-         ),
-     ]
- 
--- 
-2.50.0
-

diff --git a/0002-Re-add-Snappy-to-tests.patch b/0002-Re-add-Snappy-to-tests.patch
new file mode 100644
index 0000000..0cbd9a0
--- /dev/null
+++ b/0002-Re-add-Snappy-to-tests.patch
@@ -0,0 +1,36 @@
+From 8fc87a3a9ce304398b8191644eab66c8079faee5 Mon Sep 17 00:00:00 2001
+From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
+Date: Fri, 20 Aug 2021 04:22:34 -0400
+Subject: [PATCH 2/3] Re-add Snappy to tests
+
+Blosc on Fedora is not missing Snappy support.
+
+Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
+---
+ tests/test_blosc.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/tests/test_blosc.py b/tests/test_blosc.py
+index b920f03..d0011c1 100644
+--- a/tests/test_blosc.py
++++ b/tests/test_blosc.py
+@@ -33,7 +33,7 @@ codecs = [
+     Blosc(cname='zlib', clevel=1, shuffle=0),
+     Blosc(cname='zstd', clevel=1, shuffle=1),
+     Blosc(cname='blosclz', clevel=1, shuffle=2),
+-    None,  # was snappy
++    Blosc(cname='snappy', clevel=1, shuffle=2),
+     Blosc(shuffle=Blosc.SHUFFLE, blocksize=0),
+     Blosc(shuffle=Blosc.SHUFFLE, blocksize=2**8),
+     Blosc(cname='lz4', clevel=1, shuffle=Blosc.NOSHUFFLE, blocksize=2**8),
+@@ -139,6 +139,7 @@ def test_compress_complib(use_threads):
+         'lz4': 'LZ4',
+         'lz4hc': 'LZ4',
+         'blosclz': 'BloscLZ',
++        'snappy': 'Snappy',
+         'zlib': 'Zlib',
+         'zstd': 'Zstd',
+     }
+-- 
+2.54.0
+

diff --git a/0002-Unbundle-zstd.patch b/0002-Unbundle-zstd.patch
deleted file mode 100644
index cf0bd8b..0000000
--- a/0002-Unbundle-zstd.patch
+++ /dev/null
@@ -1,62 +0,0 @@
-From 98eadd18511580289f46476adcca417717f0a672 Mon Sep 17 00:00:00 2001
-From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
-Date: Sat, 16 Mar 2019 00:21:57 -0400
-Subject: [PATCH 2/6] Unbundle zstd
-
-Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
----
- setup.py | 28 +++++-----------------------
- 1 file changed, 5 insertions(+), 23 deletions(-)
-
-diff --git a/setup.py b/setup.py
-index b5230b2..7fba864 100644
---- a/setup.py
-+++ b/setup.py
-@@ -102,39 +102,21 @@ def blosc_extension():
- def zstd_extension():
-     info('setting up Zstandard extension')
- 
--    zstd_sources = []
-     extra_compile_args = base_compile_args.copy()
--    include_dirs = []
--    define_macros = []
- 
--    # setup sources - use zstd bundled in blosc
--    zstd_sources += glob('c-blosc/internal-complibs/zstd*/common/*.c')
--    zstd_sources += glob('c-blosc/internal-complibs/zstd*/compress/*.c')
--    zstd_sources += glob('c-blosc/internal-complibs/zstd*/decompress/*.c')
--    zstd_sources += glob('c-blosc/internal-complibs/zstd*/dictBuilder/*.c')
--    include_dirs += [d for d in glob('c-blosc/internal-complibs/zstd*') if os.path.isdir(d)]
--    include_dirs += [d for d in glob('c-blosc/internal-complibs/zstd*/*') if os.path.isdir(d)]
--    # define_macros += [('CYTHON_TRACE', '1')]
-+    # setup sources - use external zstd
-+    libzstd = pkgconfig('libzstd')
-+    extra_compile_args += libzstd.cflags
- 
-     sources = ['numcodecs/zstd.pyx']
- 
--    # include assembly files
--    if cpuinfo.platform.machine() == 'x86_64':
--        extra_objects = [
--            S[:-1] + 'o' for S in glob("c-blosc/internal-complibs/zstd*/decompress/*amd64.S")
--        ]
--    else:
--        extra_objects = []
--
-     # define extension module
-     return [
-         Extension(
-             'numcodecs.zstd',
--            sources=sources + zstd_sources,
--            include_dirs=include_dirs,
--            define_macros=define_macros,
-+            sources=sources,
-             extra_compile_args=extra_compile_args,
--            extra_objects=extra_objects,
-+            extra_link_args=libzstd.libs,
-         ),
-     ]
- 
--- 
-2.50.0
-

diff --git a/0003-Fix-testing-setup-for-Fedora.patch b/0003-Fix-testing-setup-for-Fedora.patch
new file mode 100644
index 0000000..807b8bc
--- /dev/null
+++ b/0003-Fix-testing-setup-for-Fedora.patch
@@ -0,0 +1,38 @@
+From 3ab7a2ddb558465fafe5622f40c41f0c396f72bb Mon Sep 17 00:00:00 2001
+From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
+Date: Sun, 17 Nov 2024 03:23:22 -0500
+Subject: [PATCH 3/3] Fix testing setup for Fedora
+
+We don't need coverage for testing.
+
+Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
+---
+ pyproject.toml | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index 192df28..0e70e5e 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -68,9 +68,7 @@ docs = [
+     "myst-parser",
+ ]
+ test = [
+-    "coverage",
+     "pytest",
+-    "pytest-cov",
+     "pyzstd"
+ ]
+ test_extras = [
+@@ -121,7 +119,7 @@ exclude_lines = [
+ ignore = ["PY005", "PY007", "PP302", "PP308", "PP309", "GH103", "GH212", "PC111", "PC140", "PC160", "PC170", "PC180", "MY100", "RF103"]
+ 
+ [tool.pytest.ini_options]
+-addopts = "-ra --strict-config --strict-markers --cov=numcodecs --cov-report xml --doctest-modules --doctest-glob=*.pyx"
++addopts = "-ra --strict-config --strict-markers --doctest-modules --doctest-glob=*.pyx"
+ doctest_optionflags = [
+     "NORMALIZE_WHITESPACE",
+     "ELLIPSIS",
+-- 
+2.54.0
+

diff --git a/0003-Unbundle-lz4.patch b/0003-Unbundle-lz4.patch
deleted file mode 100644
index c4b4d6b..0000000
--- a/0003-Unbundle-lz4.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-From 1abe09a226a09aafb7d0835302b99d4dc895d76e Mon Sep 17 00:00:00 2001
-From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
-Date: Sat, 16 Mar 2019 00:23:50 -0400
-Subject: [PATCH 3/6] Unbundle lz4
-
-Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
----
- setup.py | 14 +++++---------
- 1 file changed, 5 insertions(+), 9 deletions(-)
-
-diff --git a/setup.py b/setup.py
-index 7fba864..f9fc555 100644
---- a/setup.py
-+++ b/setup.py
-@@ -125,13 +125,10 @@ def lz4_extension():
-     info('setting up LZ4 extension')
- 
-     extra_compile_args = base_compile_args.copy()
--    define_macros = []
- 
--    # setup sources - use LZ4 bundled in blosc
--    lz4_sources = glob('c-blosc/internal-complibs/lz4*/*.c')
--    include_dirs = [d for d in glob('c-blosc/internal-complibs/lz4*') if os.path.isdir(d)]
--    include_dirs += ['numcodecs']
--    # define_macros += [('CYTHON_TRACE', '1')]
-+    # setup LZ4
-+    liblz4 = pkgconfig('liblz4')
-+    extra_compile_args += liblz4.cflags
- 
-     sources = ['numcodecs/lz4.pyx']
- 
-@@ -139,10 +136,9 @@ def lz4_extension():
-     return [
-         Extension(
-             'numcodecs.lz4',
--            sources=sources + lz4_sources,
--            include_dirs=include_dirs,
--            define_macros=define_macros,
-+            sources=sources,
-             extra_compile_args=extra_compile_args,
-+            extra_link_args=liblz4.libs,
-         ),
-     ]
- 
--- 
-2.50.0
-

diff --git a/0004-Re-add-Snappy-to-tests.patch b/0004-Re-add-Snappy-to-tests.patch
deleted file mode 100644
index 4084231..0000000
--- a/0004-Re-add-Snappy-to-tests.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From 775f65d44ceabffa44df3a3a549371ab923384f9 Mon Sep 17 00:00:00 2001
-From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
-Date: Fri, 20 Aug 2021 04:22:34 -0400
-Subject: [PATCH 4/6] Re-add Snappy to tests
-
-Blosc on Fedora is not missing Snappy support.
-
-Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
----
- numcodecs/tests/test_blosc.py | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/numcodecs/tests/test_blosc.py b/numcodecs/tests/test_blosc.py
-index 52ef183..85db82f 100644
---- a/numcodecs/tests/test_blosc.py
-+++ b/numcodecs/tests/test_blosc.py
-@@ -30,7 +30,7 @@ codecs = [
-     Blosc(cname='zlib', clevel=1, shuffle=0),
-     Blosc(cname='zstd', clevel=1, shuffle=1),
-     Blosc(cname='blosclz', clevel=1, shuffle=2),
--    None,  # was snappy
-+    Blosc(cname='snappy', clevel=1, shuffle=2),
-     Blosc(shuffle=Blosc.SHUFFLE, blocksize=0),
-     Blosc(shuffle=Blosc.SHUFFLE, blocksize=2**8),
-     Blosc(cname='lz4', clevel=1, shuffle=Blosc.NOSHUFFLE, blocksize=2**8),
-@@ -136,6 +136,7 @@ def test_compress_complib(use_threads):
-         'lz4': 'LZ4',
-         'lz4hc': 'LZ4',
-         'blosclz': 'BloscLZ',
-+        'snappy': 'Snappy',
-         'zlib': 'Zlib',
-         'zstd': 'Zstd',
-     }
--- 
-2.50.0
-

diff --git a/0005-Fix-testing-setup-for-Fedora.patch b/0005-Fix-testing-setup-for-Fedora.patch
deleted file mode 100644
index 32667da..0000000
--- a/0005-Fix-testing-setup-for-Fedora.patch
+++ /dev/null
@@ -1,57 +0,0 @@
-From ae3c67b6df950abb7c81167193c5235dfa325412 Mon Sep 17 00:00:00 2001
-From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
-Date: Sun, 17 Nov 2024 03:23:22 -0500
-Subject: [PATCH 5/6] Fix testing setup for Fedora
-
-We don't need coverage for testing, and we don't want to use the current
-directory for tests, but the installed version.
-
-Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
----
- pyproject.toml | 13 +------------
- 1 file changed, 1 insertion(+), 12 deletions(-)
-
-diff --git a/pyproject.toml b/pyproject.toml
-index 5043738..e35cdac 100644
---- a/pyproject.toml
-+++ b/pyproject.toml
-@@ -54,9 +54,7 @@ docs = [
-     "numpydoc",
- ]
- test = [
--    "coverage",
-     "pytest",
--    "pytest-cov",
-     "pyzstd"
- ]
- test_extras = [
-@@ -117,25 +115,16 @@ write_to = "numcodecs/version.py"
- skip = "./.git,fixture"
- ignore-words-list = "ba, compiletime, hist, nd, unparseable"
- 
--[tool.coverage.report]
--exclude_lines = [
--    "pragma: no cover",
--    "pragma: ${PY_MAJOR_VERSION} no cover",
--]
--
- [tool.repo-review]
- ignore = ["PY005", "PY007", "PP302", "PP308", "PP309", "GH103", "GH212", "PC111", "PC140", "PC160", "PC170", "PC180", "MY100", "RF103"]
- 
- [tool.pytest.ini_options]
--addopts = "-ra --strict-config --strict-markers --cov=numcodecs --cov-report xml --doctest-modules --doctest-glob=*.pyx"
-+addopts = "-ra --strict-config --strict-markers --doctest-modules --doctest-glob=*.pyx"
- doctest_optionflags = [
-     "NORMALIZE_WHITESPACE",
-     "ELLIPSIS",
-     "IGNORE_EXCEPTION_DETAIL",
- ]
--testpaths = [
--    "numcodecs/tests",
--]
- norecursedirs = [
-     ".git",
-     ".github",
--- 
-2.50.0
-

diff --git a/0006-Reduce-numpy-build-requirement.patch b/0006-Reduce-numpy-build-requirement.patch
deleted file mode 100644
index a685d3e..0000000
--- a/0006-Reduce-numpy-build-requirement.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From c48fe1297c169f586ddc3bf0c082e8e1cc93487e Mon Sep 17 00:00:00 2001
-From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
-Date: Sun, 17 Nov 2024 02:21:57 -0500
-Subject: [PATCH 6/6] Reduce numpy build requirement
-
-This can match the runtime requirement since we don't mix build/install
-versions.
-
-Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
----
- pyproject.toml | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/pyproject.toml b/pyproject.toml
-index e35cdac..103124c 100644
---- a/pyproject.toml
-+++ b/pyproject.toml
-@@ -4,7 +4,7 @@ requires = [
-     "setuptools-scm[toml]>=6.2",
-     "Cython",
-     "py-cpuinfo",
--    "numpy>2",
-+    "numpy>=1.24",
- ]
- build-backend = "setuptools.build_meta"
- 
--- 
-2.50.0
-

diff --git a/README.packit b/README.packit
index a901bca..5fae86e 100644
--- a/README.packit
+++ b/README.packit
@@ -1,3 +1,3 @@
 This repository is maintained by packit.
 https://packit.dev/
-The file was generated using packit 1.12.0.post1.dev18+gc39b0e7d4.
+The file was generated using packit 1.16.3.post1.dev4+gbf42df0bb.

diff --git a/python-numcodecs.spec b/python-numcodecs.spec
index 938cc3b..d72667e 100644
--- a/python-numcodecs.spec
+++ b/python-numcodecs.spec
@@ -1,23 +1,25 @@
 %global srcname numcodecs
 
+%global build_backend_args %{shrink:
+  -Csetup-args="-Dsystem_blosc=enabled"
+  -Csetup-args="-Dsystem_zstd=enabled"
+  -Csetup-args="-Dsystem_lz4=enabled"
+}
+
 Name:           python-%{srcname}
-Version:        0.16.5
+Version:        0.17.0
 Release:        %autorelease
 Summary:        Buffer compression and transformation for data storage and communication
 
 License:        MIT
 URL:            https://github.com/zarr-developers/numcodecs
-Source0:        %pypi_source %{srcname}
-# Fedora specific
-Patch:          0001-Unbundle-blosc.patch
-Patch:          0002-Unbundle-zstd.patch
-Patch:          0003-Unbundle-lz4.patch
+Source:         %pypi_source %{srcname}
+# https://github.com/zarr-developers/numcodecs/pull/860
+Patch:          0001-Allow-building-against-a-system-Zlib.patch
 # Fedora is not missing Snappy support in Blosc.
-Patch:          0004-Re-add-Snappy-to-tests.patch
+Patch:          0002-Re-add-Snappy-to-tests.patch
 # We don't need coverage reports, and don't want to test the current directory.
-Patch:          0005-Fix-testing-setup-for-Fedora.patch
-# Allow older NumPy.
-Patch:          0006-Reduce-numpy-build-requirement.patch
+Patch:          0003-Fix-testing-setup-for-Fedora.patch
 
 # Stop building on i686
 # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
@@ -61,28 +63,25 @@ rm -rf c-blosc
 
 
 %generate_buildrequires
-%pyproject_buildrequires -x crc32c,docs,msgpack,test,test_extras
+%pyproject_buildrequires -p -x crc32c,docs,msgpack,test,test_extras
 
 
 %build
-%pyproject_wheel
-
-# generate html docs
-PYTHONPATH="$PWD/build/lib.%{python3_platform}-cpython-%{python3_version_nodots}" sphinx-build-3 docs html
-# remove the sphinx-build leftovers
-rm -rf html/.{doctrees,buildinfo} html/_static/donotdelete
+%pyproject_wheel %build_backend_args
 
 
 %install
 %pyproject_install
 %pyproject_save_files -l %{srcname}
 
+# generate html docs
+PYTHONPATH="%{buildroot}%{python3_sitearch}" sphinx-build-3 docs html
+# remove the sphinx-build leftovers
+rm -rf html/.{doctrees,buildinfo} html/_static/donotdelete
+
 
 %check
-rm pyproject.toml
-cd docs  # Avoid using unbuilt existing copy.
-ln -s ../fixture
-%{pytest} --pyargs numcodecs
+%{pytest}
 
 
 %files -n python3-%{srcname} -f %{pyproject_files}

diff --git a/sources b/sources
index 57a62c3..1e19a95 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (numcodecs-0.16.5.tar.gz) = 8a89808bda5b2dde983169127ce8dcc2edd943e9bcbf4b4aa6b0318e4d05937db81b0c18497e19f2baae729ab72be501d7eff6977fc519e6fe8d1a767026d13d
+SHA512 (numcodecs-0.17.0.tar.gz) = 1a7d66c2aaeb84a33ef6d7d709eb4234d50cc418d0c76d7986810d3b141c4bc31e3b327cd11be64d4b7dd8eb8e5a5ad1ca8bd756527d8e01db39a14a6a145598

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-18 19:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-18 19:15 [rpms/python-numcodecs] rawhide: Update to 0.17.0 upstream release Elliott Sales de Andrade

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox