Skip to content

Commit 4e6a274

Browse files
committed
MNT: Use backports.zstd instead of pyzstd as primary dependency
1 parent 5fc51bc commit 4e6a274

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ repos:
3131
- types-Pillow
3232
- pydicom
3333
- numpy
34-
- pyzstd
34+
- backports.zstd
3535
- importlib_resources
3636
args: ["nibabel"]
3737
pass_filenames: false

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ dicomfs = ["nibabel[dicom]", "pillow >=8.4"]
5858
minc2 = ["h5py >=3.5"]
5959
spm = ["scipy >=1.8"]
6060
viewers = ["matplotlib >=3.5"]
61-
zstd = ["pyzstd >=0.15.2"]
61+
zstd = ["backports.zstd; python_version<'3.14'"]
6262
# For doc and test, make easy to use outside of tox
6363
# tox should use these with extras instead of duplicating
6464
doc = [

tox.ini

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,15 @@ extras =
7777
# Simple, thanks Hugo and Paul
7878
!none: dicomfs
7979
!none: indexed_gzip
80+
!none: zstd
8081

8182
# Minimum dependencies
8283
min: minc2
8384
min: spm
8485
min: viewers
85-
min: zstd
8686

8787
# Matplotlib has wheels for everything except win32 (x86)
8888
{full,pre}-{x,arm}64: viewers
89-
# No free-threaded wheels for: zstd
90-
py3{9,10,11,12,13,14}-{full,pre}-{x,arm}64: zstd
9189

9290
{full,pre}-{x,arm}64: spm
9391

@@ -179,7 +177,7 @@ deps =
179177
types-Pillow
180178
pydicom
181179
numpy
182-
pyzstd
180+
backports.zstd
183181
importlib_resources
184182
typing_extensions
185183
skip_install = true

0 commit comments

Comments
 (0)