Skip to content

Commit 529b0dd

Browse files
committed
Fix: Require NumPy for GIL tests
1 parent 83e522a commit 529b0dd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

scripts/test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,6 +1418,7 @@ def test_cdist_hamming(ndim, out_dtype, capability):
14181418
np.testing.assert_allclose(result, expected, atol=SIMSIMD_ATOL, rtol=SIMSIMD_RTOL)
14191419

14201420

1421+
@pytest.mark.skipif(not numpy_available, reason="NumPy is not installed")
14211422
def test_gil_free_threading():
14221423
"""Test SimSIMD in Python 3.13t free-threaded mode if available."""
14231424
import sys

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
if _bad_dev_dir and (_bad_dev_dir == "public" or not Path(_bad_dev_dir).exists()):
2929
print(f"[SimSIMD] Ignoring invalid DEVELOPER_DIR={_bad_dev_dir!r}")
3030
os.environ.pop("DEVELOPER_DIR", None)
31-
31+
3232
# --------------------------------------------------------------------------- #
3333
# Compiler and linker flags common across attempts #
3434
# --------------------------------------------------------------------------- #
@@ -210,13 +210,14 @@ def _is_editable_install() -> bool:
210210
"Programming Language :: C",
211211
"Programming Language :: Python :: Implementation :: CPython",
212212
"Programming Language :: Python :: 3",
213-
"Programming Language :: Python :: 3.7",
214213
"Programming Language :: Python :: 3.8",
215214
"Programming Language :: Python :: 3.9",
216215
"Programming Language :: Python :: 3.10",
217216
"Programming Language :: Python :: 3.11",
218217
"Programming Language :: Python :: 3.12",
219218
"Programming Language :: Python :: 3.13",
219+
"Programming Language :: Python :: 3.14",
220+
"Programming Language :: Python :: Free Threading :: 3 - Stable",
220221
"Topic :: Scientific/Engineering :: Mathematics",
221222
"Topic :: Scientific/Engineering :: Information Analysis",
222223
"Topic :: Scientific/Engineering :: Bio-Informatics",

0 commit comments

Comments
 (0)