Skip to content

Commit

Permalink
Fix pytests and install pre-release Cython for free-threading support
Browse files Browse the repository at this point in the history
  • Loading branch information
thalassemia committed Dec 5, 2024
1 parent 6601b27 commit 609ffcf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,11 @@ jobs:
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }}
CIBW_TEST_REQUIRES: pytest psutil
CIBW_TEST_COMMAND: |
cp -r {project}/stochastic_arrow/test tmp_test_dir/
pytest tmp_test_dir
mkdir tmp_test_dir
cp -r {project}/stochastic_arrow/test tmp_test_dir/test
cp -r {project}/stochastic_arrow/data tmp_test_dir/data
cd tmp_test_dir
pytest
CIBW_ENVIRONMENT: USE_CYTHON=1
uses: pypa/[email protected]

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[build-system]
requires = ["setuptools", "wheel", "cython", "numpy"]
requires = ["setuptools", "wheel", "cython==3.1.0a1; python_version=='3.13t'", "cython; python_version!='3.13t'", "numpy"]
build-backend = "setuptools.build_meta"

0 comments on commit 609ffcf

Please sign in to comment.