Skip to content

Commit cac121a

Browse files
authored
chore: update examples to use python 3.12 (#1919)
1 parent 604da87 commit cac121a

6 files changed

+36
-26
lines changed

examples/cirrus-ci-intel-mac.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ macos_task:
1111
name: Build macOS x86_64 and arm64 wheels.
1212
macos_instance:
1313
image: ghcr.io/cirruslabs/macos-sonoma-xcode
14-
1514
env:
16-
PATH: /opt/homebrew/opt/[email protected]/libexec/bin:$PATH
15+
VENV_ROOT: ${HOME}/venv-cibuildwheel
16+
PATH: ${VENV_ROOT}/bin:${PATH}
1717
CIBW_ARCHS_MACOS: x86_64 arm64
1818
install_pre_requirements_script:
19-
- brew install [email protected]
19+
- brew install [email protected]
20+
- python3.12 -m venv ${VENV_ROOT}
2021
<<: *BUILD_AND_STORE_WHEELS

examples/cirrus-ci-minimal.yml

+19-8
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,14 @@ linux_x86_task:
1515
platform: linux
1616
cpu: 4
1717
memory: 4G
18-
18+
env:
19+
VENV_ROOT: ${HOME}/venv-cibuildwheel
20+
PATH: ${VENV_ROOT}/bin:${PATH}
1921
install_pre_requirements_script:
20-
- apt install -y python3-venv python-is-python3
22+
- add-apt-repository -y ppa:deadsnakes/ppa
23+
- apt-get update
24+
- apt-get install -y python3.12-venv
25+
- python3.12 -m venv ${VENV_ROOT}
2126
<<: *BUILD_AND_STORE_WHEELS
2227

2328
linux_aarch64_task:
@@ -29,9 +34,14 @@ linux_aarch64_task:
2934
platform: linux
3035
cpu: 4
3136
memory: 4G
32-
37+
env:
38+
VENV_ROOT: ${HOME}/venv-cibuildwheel
39+
PATH: ${VENV_ROOT}/bin:${PATH}
3340
install_pre_requirements_script:
34-
- apt install -y python3-venv python-is-python3
41+
- add-apt-repository -y ppa:deadsnakes/ppa
42+
- apt-get update
43+
- apt-get install -y python3.12-venv
44+
- python3.12 -m venv ${VENV_ROOT}
3545
<<: *BUILD_AND_STORE_WHEELS
3646

3747
windows_x86_task:
@@ -42,7 +52,7 @@ windows_x86_task:
4252
memory: 4G
4353

4454
install_pre_requirements_script:
45-
- choco install -y --no-progress python3 --version 3.10.6
55+
- choco install -y --no-progress python3 --version 3.12.4
4656
- refreshenv
4757
- echo PATH=%PATH% >> "%CIRRUS_ENV%"
4858
<<: *BUILD_AND_STORE_WHEELS
@@ -51,9 +61,10 @@ macos_arm64_task:
5161
name: Build macOS arm64 wheels.
5262
macos_instance:
5363
image: ghcr.io/cirruslabs/macos-sonoma-xcode
54-
5564
env:
56-
PATH: /opt/homebrew/opt/[email protected]/libexec/bin:$PATH
65+
VENV_ROOT: ${HOME}/venv-cibuildwheel
66+
PATH: ${VENV_ROOT}/bin:${PATH}
5767
install_pre_requirements_script:
58-
- brew install [email protected]
68+
- brew install [email protected]
69+
- python3.12 -m venv ${VENV_ROOT}
5970
<<: *BUILD_AND_STORE_WHEELS

examples/gitlab-with-qemu.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
linux:
2-
image: python:3.8
2+
image: python:3.12
33
# make a docker daemon available for cibuildwheel to use
44
services:
55
- name: docker:dind

examples/travis-ci-deploy.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
os: linux
55
dist: focal
66
language: python
7-
python: "3.9"
7+
python: "3.12"
88

99
jobs:
1010
include:
@@ -14,10 +14,10 @@ jobs:
1414
- os: windows
1515
language: shell
1616
before_install:
17-
- choco upgrade python -y --version 3.8.6
18-
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
17+
- choco upgrade python -y --version 3.12.4
18+
- export PATH="/c/Python312:/c/Python312/Scripts:$PATH"
1919
# make sure it's on PATH as 'python3'
20-
- ln -s /c/Python38/python.exe /c/Python38/python3.exe
20+
- ln -s /c/Python312/python.exe /c/Python312/python3.exe
2121

2222
install:
2323
- python3 -m pip install cibuildwheel==2.19.2

examples/travis-ci-minimal.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
os: linux
22
dist: focal
33
language: python
4-
python: "3.9"
4+
python: "3.12"
55

66
jobs:
77
include:
@@ -20,10 +20,10 @@ jobs:
2020
- os: windows
2121
language: shell
2222
before_install:
23-
- choco upgrade python -y --version 3.8.6
24-
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
23+
- choco upgrade python -y --version 3.12.4
24+
- export PATH="/c/Python312:/c/Python312/Scripts:$PATH"
2525
# make sure it's on PATH as 'python3'
26-
- ln -s /c/Python38/python.exe /c/Python38/python3.exe
26+
- ln -s /c/Python312/python.exe /c/Python312/python3.exe
2727

2828
install:
2929
- python3 -m pip install cibuildwheel==2.19.2

examples/travis-ci-test-and-deploy.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,15 @@
88
os: linux
99
dist: focal
1010
language: python
11-
python:
12-
- 3.7
13-
- 3.8
11+
python: "3.12"
1412

1513
before_install:
1614
- |
1715
if [[ "$TRAVIS_OS_NAME" = windows ]]; then
18-
choco upgrade python -y --version 3.8.6
19-
export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
16+
choco upgrade python -y --version 3.12.4
17+
export PATH="/c/Python312:/c/Python312/Scripts:$PATH"
2018
# make sure it's on PATH as 'python3'
21-
ln -s /c/Python38/python.exe /c/Python38/python3.exe
19+
ln -s /c/Python312/python.exe /c/Python312/python3.exe
2220
fi
2321
2422
install:

0 commit comments

Comments
 (0)