Skip to content

Commit edca989

Browse files
committed
chunksize cannot be larger than 2**31-1
1 parent 7292fd7 commit edca989

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

pyproject.toml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools", "scikit-build", "cython<3", "cmake", "ninja", "oldest-supported-numpy"]
2+
requires = ["setuptools", "scikit-build", "cython", "ninja", "oldest-supported-numpy"]
33

44
[project]
55
name = "blosc2"
@@ -19,20 +19,26 @@ classifiers = [
1919
"Operating System :: Microsoft :: Windows",
2020
"Operating System :: Unix",
2121
"Programming Language :: Python :: 3",
22-
"Programming Language :: Python :: 3.8",
2322
"Programming Language :: Python :: 3.9",
2423
"Programming Language :: Python :: 3.10",
2524
"Programming Language :: Python :: 3.11",
25+
"Programming Language :: Python :: 3.12",
2626
]
27-
requires-python = ">=3.8, <4"
28-
dynamic = ["version", "dependencies"]
27+
requires-python = ">=3.9, <4"
28+
dependencies = [
29+
"numpy>=1.20.3",
30+
"ndindex>=1.4",
31+
"msgpack",
32+
"py-cpuinfo",
33+
]
34+
dynamic = ["version"]
2935

3036
[project.urls]
3137
homepage = "https://github.com/Blosc/python-blosc2"
3238
documentation = "https://www.blosc.org/python-blosc2/python-blosc2.html"
3339

3440
[tool.cibuildwheel]
35-
skip = "cp36-* cp37-* pp37-* *-manylinux_i686 *_ppc64le *_s390x *-musllinux*"
41+
skip = "cp36-* cp37-* pp37-* cp38-* pp38-* *-manylinux_i686 *_ppc64le *_s390x"
3642

3743
[tool.black]
3844
line-length = 109

setup.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,16 @@
88

99
from skbuild import setup
1010

11-
12-
def cmake_bool(cond):
13-
return "ON" if cond else "OFF"
14-
15-
1611
# Blosc version
1712
VERSION = open("VERSION").read().strip()
1813
# Create the version.py file
1914
open("blosc2/version.py", "w").write(f'__version__ = "{VERSION}"\n')
2015

16+
2117
def exclude_pkgconfig(cmake_manifest):
2218
"""remove pkgconfig file from installation: gh-110."""
23-
return list(filter(lambda name: not (name.endswith('.pc')), cmake_manifest))
19+
return list(filter(lambda name: not (name.endswith(".pc")), cmake_manifest))
20+
2421

2522
# These keywords need to be in setup()
2623
# https://scikit-build.readthedocs.io/en/latest/usage.html#setuptools-options
@@ -30,5 +27,5 @@ def exclude_pkgconfig(cmake_manifest):
3027
package_dir={"blosc2": "blosc2"},
3128
include_package_data=True,
3229
cmake_process_manifest_hook=exclude_pkgconfig,
33-
install_requires=open("requirements-runtime.txt").read().split(),
30+
# install_requires=open("requirements-runtime.txt").read().split(),
3431
)

tests/ndarray/test_zeros.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
{"abc": 123, "2": [0, 1, 24]},
4747
),
4848
(
49-
(2**32,),
50-
(2**31,),
49+
(2**31 - 1,),
50+
(2**30,),
5151
None,
5252
np.float32,
5353
{"codec": blosc2.Codec.LZ4, "clevel": 5, "nthreads": 2},

0 commit comments

Comments
 (0)