Skip to content

Commit 30e8606

Browse files
committed
Fix pytests and install pre-release Cython for free-threading support
1 parent 6601b27 commit 30e8606

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,11 @@ jobs:
112112
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }}
113113
CIBW_TEST_REQUIRES: pytest psutil
114114
CIBW_TEST_COMMAND: |
115-
cp -r {project}/stochastic_arrow/test tmp_test_dir/
116-
pytest tmp_test_dir
115+
mkdir tmp_test_dir
116+
cp -r {project}/stochastic_arrow/test tmp_test_dir/test
117+
cp -r {project}/data tmp_test_dir/data
118+
cd tmp_test_dir
119+
pytest
117120
CIBW_ENVIRONMENT: USE_CYTHON=1
118121
uses: pypa/[email protected]
119122

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[build-system]
2-
requires = ["setuptools", "wheel", "cython", "numpy"]
2+
requires = ["setuptools", "wheel", "cython==3.1.0a1; python_version=='3.13'", "cython; python_version!='3.13'", "numpy"]
33
build-backend = "setuptools.build_meta"

0 commit comments

Comments
 (0)