9999 - [macos-14, macosx_arm64]
100100 - [windows-2022, win_amd64]
101101 # TODO: support PyPy?
102- python : [["cp39", "3.9"], ["cp310", "3.10"], ["cp311", "3.11"], ["cp312", "3.12"]]
102+ python : [["cp39", "3.9"], ["cp310", "3.10"], ["cp311", "3.11"], ["cp312", "3.12"], ["cp313", "3.13"], ["cp313t", "3.13"]]
103+ include :
104+ # TODO: Remove this plus installing build deps in cibw_before_build.sh
105+ # after pandas can be built with a released NumPy/Cython
106+ - python : ["cp313t", "3.13"]
107+ cibw_build_frontend : ' pip; args: --no-build-isolation'
108+ # TODO: Build free-threaded wheels for Windows
109+ exclude :
110+ - buildplat : [windows-2022, win_amd64]
111+ python : ["cp313t", "3.13"]
112+
103113 env :
104114 IS_PUSH : ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
105115 IS_SCHEDULE_DISPATCH : ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
@@ -140,12 +150,13 @@ jobs:
140150 run : echo "sdist_name=$(cd ./dist && ls -d */)" >> "$GITHUB_ENV"
141151
142152 - name : Build wheels
143- uses : pypa/cibuildwheel@v2.17 .0
153+ uses : pypa/cibuildwheel@v2.20 .0
144154 with :
145155 package-dir : ./dist/${{ startsWith(matrix.buildplat[1], 'macosx') && env.sdist_name || needs.build_sdist.outputs.sdist_file }}
146156 env :
147157 CIBW_PRERELEASE_PYTHONS : True
148158 CIBW_BUILD : ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }}
159+ CIBW_BUILD_FRONTEND : ${{ matrix.cibw_build_frontend || 'pip' }}
149160
150161 - name : Set up Python
151162 uses : mamba-org/setup-micromamba@v1
@@ -170,13 +181,13 @@ jobs:
170181 shell : pwsh
171182 run : |
172183 $TST_CMD = @"
173- python -m pip install hypothesis>=6.46.1 pytest>=7.3.2 pytest-xdist>=2.2.0;
184+ python -m pip install hypothesis>=6.46.1 pytest>=7.3.2 pytest-xdist>=2.2.0 pytz<2024.2 ;
174185 python -m pip install `$(Get-Item pandas\wheelhouse\*.whl);
175186 python -c `'import pandas as pd; pd.test(extra_args=[`\"--no-strict-data-files`\", `\"-m not clipboard and not single_cpu and not slow and not network and not db`\"])`';
176187 "@
177188 # add rc to the end of the image name if the Python version is unreleased
178- docker pull python:${{ matrix.python[1] == '3.12 ' && '3.12 -rc' || format('{0}-windowsservercore', matrix.python[1]) }}
179- docker run --env PANDAS_CI='1' -v ${PWD}:C:\pandas python:${{ matrix.python[1] == '3.12 ' && '3.12 -rc' || format('{0}-windowsservercore', matrix.python[1]) }} powershell -Command $TST_CMD
189+ docker pull python:${{ matrix.python[1] == '3.13 ' && '3.13 -rc' || format('{0}-windowsservercore', matrix.python[1]) }}
190+ docker run --env PANDAS_CI='1' -v ${PWD}:C:\pandas python:${{ matrix.python[1] == '3.13 ' && '3.13 -rc' || format('{0}-windowsservercore', matrix.python[1]) }} powershell -Command $TST_CMD
180191
181192 - uses : actions/upload-artifact@v4
182193 with :
0 commit comments