Skip to content

Commit ed4e9d1

Browse files
committed
Set up CI for Python 3.13
1 parent 5464525 commit ed4e9d1

File tree

7 files changed

+24
-19
lines changed

7 files changed

+24
-19
lines changed

ci/docker/python-wheel-windows-test-vs2019.dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ ARG python=3.8
4040
RUN (if "%python%"=="3.8" setx PYTHON_VERSION "3.8.10" && setx PATH "%PATH%;C:\Python38;C:\Python38\Scripts") & \
4141
(if "%python%"=="3.9" setx PYTHON_VERSION "3.9.13" && setx PATH "%PATH%;C:\Python39;C:\Python39\Scripts") & \
4242
(if "%python%"=="3.10" setx PYTHON_VERSION "3.10.11" && setx PATH "%PATH%;C:\Python310;C:\Python310\Scripts") & \
43-
(if "%python%"=="3.11" setx PYTHON_VERSION "3.11.5" && setx PATH "%PATH%;C:\Python311;C:\Python311\Scripts") & \
44-
(if "%python%"=="3.12" setx PYTHON_VERSION "3.12.0" && setx PATH "%PATH%;C:\Python312;C:\Python312\Scripts")
43+
(if "%python%"=="3.11" setx PYTHON_VERSION "3.11.9" && setx PATH "%PATH%;C:\Python311;C:\Python311\Scripts") & \
44+
(if "%python%"=="3.12" setx PYTHON_VERSION "3.12.4" && setx PATH "%PATH%;C:\Python312;C:\Python312\Scripts") & \
45+
(if "%python%"=="3.13" setx PYTHON_VERSION "3.13.0-rc1" && setx PATH "%PATH%;C:\Python313;C:\Python313\Scripts")
4546

4647
# Install archiver to extract xz archives
4748
RUN choco install -r -y --no-progress python --version=%PYTHON_VERSION% & \

ci/docker/python-wheel-windows-vs2019.dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ ARG python=3.8
8383
RUN (if "%python%"=="3.8" setx PYTHON_VERSION "3.8.10" && setx PATH "%PATH%;C:\Python38;C:\Python38\Scripts") & \
8484
(if "%python%"=="3.9" setx PYTHON_VERSION "3.9.13" && setx PATH "%PATH%;C:\Python39;C:\Python39\Scripts") & \
8585
(if "%python%"=="3.10" setx PYTHON_VERSION "3.10.11" && setx PATH "%PATH%;C:\Python310;C:\Python310\Scripts") & \
86-
(if "%python%"=="3.11" setx PYTHON_VERSION "3.11.5" && setx PATH "%PATH%;C:\Python311;C:\Python311\Scripts") & \
87-
(if "%python%"=="3.12" setx PYTHON_VERSION "3.12.0" && setx PATH "%PATH%;C:\Python312;C:\Python312\Scripts")
86+
(if "%python%"=="3.11" setx PYTHON_VERSION "3.11.9" && setx PATH "%PATH%;C:\Python311;C:\Python311\Scripts") & \
87+
(if "%python%"=="3.12" setx PYTHON_VERSION "3.12.4" && setx PATH "%PATH%;C:\Python312;C:\Python312\Scripts") & \
88+
(if "%python%"=="3.13" setx PYTHON_VERSION "3.13.0-rc1" && setx PATH "%PATH%;C:\Python313;C:\Python313\Scripts")
8889
RUN choco install -r -y --no-progress python --version=%PYTHON_VERSION%
8990
RUN python -m pip install -U pip setuptools
9091

ci/scripts/install_python.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ declare -A versions
2828
versions=([3.8]=3.8.10
2929
[3.9]=3.9.13
3030
[3.10]=3.10.11
31-
[3.11]=3.11.5
32-
[3.12]=3.12.0)
31+
[3.11]=3.11.9
32+
[3.12]=3.12.4
33+
[3.13]=3.13.0rc1)
3334

3435
if [ "$#" -ne 2 ]; then
3536
echo "Usage: $0 <platform> <version>"
@@ -46,7 +47,7 @@ full_version=${versions[$2]}
4647
if [ $platform = "macOS" ]; then
4748
echo "Downloading Python installer..."
4849

49-
if [ "$(uname -m)" = "arm64" ] || [ "$version" = "3.10" ] || [ "$version" = "3.11" ] || [ "$version" = "3.12" ]; then
50+
if [ "$(uname -m)" = "arm64" ] || [ "$version" = "3.10" ] || [ "$version" = "3.11" ] || [ "$version" = "3.12" ] || [ "$version" = "3.13" ]; then
5051
fname="python-${full_version}-macos11.pkg"
5152
else
5253
fname="python-${full_version}-macosx10.9.pkg"

dev/release/verify-release-candidate.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ test_linux_wheels() {
11461146
local arch="x86_64"
11471147
fi
11481148

1149-
local python_versions="${TEST_PYTHON_VERSIONS:-3.8 3.9 3.10 3.11 3.12}"
1149+
local python_versions="${TEST_PYTHON_VERSIONS:-3.8 3.9 3.10 3.11 3.12 3.13}"
11501150
local platform_tags="${TEST_WHEEL_PLATFORM_TAGS:-manylinux_2_17_${arch}.manylinux2014_${arch} manylinux_2_28_${arch}}"
11511151

11521152
for python in ${python_versions}; do
@@ -1170,11 +1170,11 @@ test_macos_wheels() {
11701170

11711171
# apple silicon processor
11721172
if [ "$(uname -m)" = "arm64" ]; then
1173-
local python_versions="3.8 3.9 3.10 3.11 3.12"
1173+
local python_versions="3.8 3.9 3.10 3.11 3.12 3.13"
11741174
local platform_tags="macosx_11_0_arm64"
11751175
local check_flight=OFF
11761176
else
1177-
local python_versions="3.8 3.9 3.10 3.11 3.12"
1177+
local python_versions="3.8 3.9 3.10 3.11 3.12 3.13"
11781178
local platform_tags="macosx_10_15_x86_64"
11791179
fi
11801180

dev/tasks/tasks.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,8 @@ tasks:
387387
("3.9", "cp39", "cp39"),
388388
("3.10", "cp310", "cp310"),
389389
("3.11", "cp311", "cp311"),
390-
("3.12", "cp312", "cp312")] %}
390+
("3.12", "cp312", "cp312"),
391+
("3.13", "cp313", "cp313")] %}
391392

392393
{############################## Wheel Linux ##################################}
393394

@@ -1191,7 +1192,7 @@ tasks:
11911192
UBUNTU: 22.04
11921193
image: ubuntu-cpp-emscripten
11931194

1194-
{% for python_version in ["3.8", "3.9", "3.10", "3.11", "3.12"] %}
1195+
{% for python_version in ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] %}
11951196
test-conda-python-{{ python_version }}:
11961197
ci: github
11971198
template: docker-tests/github.linux.yml

python/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ classifiers = [
4848
'Programming Language :: Python :: 3.10',
4949
'Programming Language :: Python :: 3.11',
5050
'Programming Language :: Python :: 3.12',
51+
'Programming Language :: Python :: 3.13',
5152
]
5253
maintainers = [
5354
{name = "Apache Arrow Developers", email = "dev@arrow.apache.org"}

python/requirements-wheel-test.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ pytest
55
pytz
66
tzdata; sys_platform == 'win32'
77

8-
numpy==1.21.3; platform_system == "Linux" and platform_machine == "aarch64" and python_version < "3.11"
9-
numpy==1.23.4; python_version == "3.11"
10-
numpy==1.26.0; python_version >= "3.12"
8+
numpy==1.21.6; platform_system == "Linux" and platform_machine == "aarch64" and python_version < "3.11"
9+
numpy==1.23.5; python_version == "3.11"
10+
numpy==1.26.4; python_version >= "3.12"
1111
numpy==1.19.5; platform_system == "Linux" and platform_machine != "aarch64" and python_version < "3.9"
12-
numpy==1.21.3; platform_system == "Linux" and platform_machine != "aarch64" and python_version >= "3.9" and python_version < "3.11"
13-
numpy==1.21.3; platform_system == "Darwin" and platform_machine == "arm64" and python_version < "3.11"
12+
numpy==1.21.6; platform_system == "Linux" and platform_machine != "aarch64" and python_version >= "3.9" and python_version < "3.11"
13+
numpy==1.21.6; platform_system == "Darwin" and platform_machine == "arm64" and python_version < "3.11"
1414
numpy==1.19.5; platform_system == "Darwin" and platform_machine != "arm64" and python_version < "3.9"
15-
numpy==1.21.3; platform_system == "Darwin" and platform_machine != "arm64" and python_version >= "3.9" and python_version < "3.11"
15+
numpy==1.21.6; platform_system == "Darwin" and platform_machine != "arm64" and python_version >= "3.9" and python_version < "3.11"
1616
numpy==1.19.5; platform_system == "Windows" and python_version < "3.9"
17-
numpy==1.21.3; platform_system == "Windows" and python_version >= "3.9" and python_version < "3.11"
17+
numpy==1.21.6; platform_system == "Windows" and python_version >= "3.9" and python_version < "3.11"
1818

1919
pandas<1.1.0; platform_system == "Linux" and platform_machine != "aarch64" and python_version < "3.8"
2020
pandas; platform_system == "Linux" and platform_machine != "aarch64" and python_version >= "3.8"

0 commit comments

Comments
 (0)