|
42 | 42 | if: ${{ matrix.os == 'windows-2019' }} |
43 | 43 |
|
44 | 44 | - name: Build wheels |
45 | | - |
| 45 | + |
46 | 46 | env: |
47 | 47 | # override setting in pyproject.toml to use msys2 instead of msys64 bash |
48 | 48 | CIBW_BEFORE_ALL_WINDOWS: msys2 -c bin/cibw_before_all_windows.sh |
|
86 | 86 | os: [ubuntu-24.04, ubuntu-24.04-arm, windows-2019, macos-13, macos-14] |
87 | 87 | # This list to be kept in sync with cibuildwheel config |
88 | 88 | # and python-requires in pyproject.toml. |
89 | | - python-version: ['3.11', '3.12', '3.13'] # , 'pypy3.10'] |
| 89 | + python-version: ['3.11', '3.12', '3.13', '3.13t'] # , 'pypy3.10'] |
90 | 90 |
|
91 | 91 | steps: |
92 | 92 | - uses: actions/setup-python@v5 |
|
97 | 97 | name: wheels-${{ matrix.os }} |
98 | 98 | path: wheelhouse |
99 | 99 | - run: pip install --no-index --find-links wheelhouse python_flint |
| 100 | + |
| 101 | + # Check if the GIL is disabled in the free-threading build after import. |
| 102 | + - run: | |
| 103 | + python --version --version |
| 104 | + which python |
| 105 | + python -c "import sysconfig; print(sysconfig.get_config_var('Py_GIL_DISABLED'))" |
| 106 | + python -c "import sys; print(getattr(sys, '_is_gil_enabled', lambda: True)())" |
| 107 | + python -c "import sys; import flint; print(getattr(sys, '_is_gil_enabled', lambda: True)())" |
| 108 | +
|
100 | 109 | - run: python -m flint.test --verbose |
101 | 110 |
|
102 | 111 | # On new enough Ubuntu we can build against the system deb. |
@@ -227,37 +236,6 @@ jobs: |
227 | 236 | - run: pip install -r requirements-dev.txt |
228 | 237 | - run: bin/coverage.sh |
229 | 238 |
|
230 | | - # On new enough Ubuntu we can build against the system deb. |
231 | | - test_freethreaded: |
232 | | - name: Free-threaded ${{ matrix.python-version }} on ${{ matrix.os }} |
233 | | - runs-on: ${{ matrix.os }} |
234 | | - strategy: |
235 | | - fail-fast: false |
236 | | - matrix: |
237 | | - os: [ubuntu-24.04] |
238 | | - python-version: ['3.13', '3.14-dev'] |
239 | | - steps: |
240 | | - - uses: actions/checkout@v4 |
241 | | - # Can't use actions/setup-python |
242 | | - # https://github.com/actions/setup-python/issues/771 |
243 | | - # deadsnakes only works for Ubuntu... |
244 | | - - uses: deadsnakes/[email protected] |
245 | | - with: |
246 | | - python-version: ${{ matrix.python-version }} |
247 | | - nogil: true |
248 | | - - run: | |
249 | | - python --version --version |
250 | | - which python |
251 | | - python -c "import sysconfig; print(sysconfig.get_config_var('Py_GIL_DISABLED'))" |
252 | | - python -c "import sys; print(sys._is_gil_enabled())" |
253 | | - - run: sudo apt-get update |
254 | | - - run: sudo apt-get install libflint-dev |
255 | | - # Need Cython master until 3.1 is released |
256 | | - - run: pip install git+https://github.com/cython/cython.git@master |
257 | | - - run: pip install -r requirements-dev.txt |
258 | | - - run: pip install --no-build-isolation . |
259 | | - - run: python -m flint.test --verbose |
260 | | - |
261 | 239 | # Run SymPy test suite against python-flint master |
262 | 240 | test_sympy: |
263 | 241 | name: Test SymPy ${{ matrix.sympy-version }} |
@@ -302,7 +280,7 @@ jobs: |
302 | 280 | run: mkdir dist && cp wheelhouse/*.whl dist |
303 | 281 |
|
304 | 282 | - name: Upload wheels |
305 | | - uses: scientific-python/upload-nightly-action@82396a2ed4269ba06c6b2988bb4fd568ef3c3d6b # 0.6.1 |
| 283 | + uses: scientific-python/upload-nightly-action@b36e8c0c10dbcfd2e05bf95f17ef8c14fd708dbf # 0.6.2 |
306 | 284 | with: |
307 | 285 | artifacts_path: dist |
308 | 286 | # This token is generated from anaconda.org |
|
0 commit comments