@@ -7,14 +7,9 @@ permissions:
7
7
8
8
env :
9
9
CIBW_BEFORE_BUILD : pip install setuptools oldest-supported-numpy pytest
10
- CIBW_ENVIRONMENT_LINUX : >
11
- IS_FREETHREADED=$(python -c "import sysconfig;print(sysconfig.get_config_var('Py_GIL_DISABLED'))")
12
- PYTEST_RUN_PARALLEL=$([ "$IS_FREETHREADED" == "1" ] && echo "pytest-run-parallel" || echo "")
13
- PARALLEL_THREADS=$([ "$IS_FREETHREADED" == "1" ] && echo "--parallel-threads=4" || echo "")
14
- CIBW_BEFORE_BUILD_LINUX : >
15
- pip install setuptools oldest-supported-numpy pytest $PYTEST_RUN_PARALLEL
10
+ CIBW_BEFORE_TEST : pip install pytest
16
11
CIBW_BUILD_VERBOSITY : 1
17
- CIBW_TEST_COMMAND : pytest $PARALLEL_THREADS numexpr/tests
12
+ CIBW_TEST_COMMAND : pytest numexpr/tests
18
13
CIBW_TEST_SKIP : " *macosx*arm64*"
19
14
# Building for musllinux and aarch64 takes way too much time.
20
15
# Moreover, NumPy is not providing musllinux for x86_64 either, so it's not worth it.
35
30
matrix :
36
31
os : [ubuntu-latest, windows-latest, macos-latest]
37
32
arch : [x86_64, aarch64]
38
- cibw_build : ["cp3{10,11,12,13,13t} -*"]
33
+ cibw_build : ["cp3{10,11,12,13}-*", "cp313t -*"]
39
34
p_ver : ["3.10-3.13+3.13t"]
40
35
exclude :
41
36
- os : windows-latest
60
55
if : ${{ matrix.arch == 'aarch64' }}
61
56
name : Set up QEMU
62
57
58
+ - name : Setup free-threading variables
59
+ shell : bash -l {0}
60
+ run : |
61
+ echo "CIBW_BEFORE_BUILD=pip install setuptools numpy" >> "$GITHUB_ENV"
62
+ echo "CIBW_BEFORE_TEST=pip install pytest pytest-run-parallel" >> "$GITHUB_ENV"
63
+ echo "CIBW_TEST_COMMAND=pytest --parallel-threads=4 numexpr/tests" >> "$GITHUB_ENV"
64
+
63
65
- name : Build wheels
64
66
run : |
65
67
python -m cibuildwheel --output-dir wheelhouse
0 commit comments