Skip to content

Commit 24e9b37

Browse files
Merge main
2 parents 4e49877 + 04f5ba5 commit 24e9b37

28 files changed

+2186
-223
lines changed

.github/workflows/buildwheel.yml

Lines changed: 12 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
if: ${{ matrix.os == 'windows-2019' }}
4343

4444
- name: Build wheels
45-
uses: pypa/[email protected].0
45+
uses: pypa/[email protected].3
4646
env:
4747
# override setting in pyproject.toml to use msys2 instead of msys64 bash
4848
CIBW_BEFORE_ALL_WINDOWS: msys2 -c bin/cibw_before_all_windows.sh
@@ -86,7 +86,7 @@ jobs:
8686
os: [ubuntu-24.04, ubuntu-24.04-arm, windows-2019, macos-13, macos-14]
8787
# This list to be kept in sync with cibuildwheel config
8888
# 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']
9090

9191
steps:
9292
- uses: actions/setup-python@v5
@@ -97,6 +97,15 @@ jobs:
9797
name: wheels-${{ matrix.os }}
9898
path: wheelhouse
9999
- 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+
100109
- run: python -m flint.test --verbose
101110

102111
# On new enough Ubuntu we can build against the system deb.
@@ -227,37 +236,6 @@ jobs:
227236
- run: pip install -r requirements-dev.txt
228237
- run: bin/coverage.sh
229238

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-
261239
# Run SymPy test suite against python-flint master
262240
test_sympy:
263241
name: Test SymPy ${{ matrix.sympy-version }}
@@ -302,7 +280,7 @@ jobs:
302280
run: mkdir dist && cp wheelhouse/*.whl dist
303281

304282
- 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
306284
with:
307285
artifacts_path: dist
308286
# This token is generated from anaconda.org

.github/workflows/ci-sage.yml

Lines changed: 0 additions & 108 deletions
This file was deleted.

0 commit comments

Comments
 (0)