Skip to content

Commit c3d5e20

Browse files
committed
Update to Python 3.12.x
1 parent 2179c6e commit c3d5e20

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

.github/workflows/fluent_linter.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Set up Python 3
2727
uses: actions/setup-python@v5
2828
with:
29-
python-version: "3.11"
29+
python-version: "3.12"
3030
- name: Install Python dependencies
3131
run: |
3232
pip install moz-fluent-linter==0.4.*

.github/workflows/pull_request_tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- uses: actions/checkout@v4
2929
- uses: actions/setup-python@v5
3030
with:
31-
python-version: "3.11" # matches current Python in production
31+
python-version: "3.12" # matches current Python in production
3232
- name: "Run Python tests (on Docker)"
3333
run: |
3434
make clean test-image

.readthedocs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version: 2
88
build:
99
os: ubuntu-20.04
1010
tools:
11-
python: "3.11"
11+
python: "3.12"
1212

1313
# Build documentation in the docs/ directory with Sphinx
1414
sphinx:

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
########
22
# Python dependencies builder
33
#
4-
FROM python:3.11-slim-bookworm AS python-builder
4+
FROM python:3.12-slim-bookworm AS python-builder
55

66
WORKDIR /app
77
ENV LANG=C.UTF-8
@@ -52,7 +52,7 @@ RUN npm run build --verbose
5252
########
5353
# django app container
5454
#
55-
FROM python:3.11-slim-bookworm AS app-base
55+
FROM python:3.12-slim-bookworm AS app-base
5656

5757
# Extra python env
5858
ENV PYTHONDONTWRITEBYTECODE=1

docs/install.rst

+11-11
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Local Installation
110110
These instructions assume you have Python, pip, and NodeJS installed. If you don't have `pip` installed
111111
(you probably do) you can install it with the instructions in `the pip docs <https://pip.pypa.io/en/stable/installing/>`_.
112112

113-
Bedrock currently uses Python 3.11.x. The recommended way to install and use that version is
113+
Bedrock currently uses Python 3.12.x. The recommended way to install and use that version is
114114
with `pyenv <https://github.com/pyenv/pyenv>`_ and to create a virtualenv using
115115
`pyenv-virtualenv <https://github.com/pyenv/pyenv-virtualenv>`_ that will isolate Bedrock's
116116
dependencies from other things installed on the system.
@@ -119,7 +119,7 @@ The following assumes you are on MacOS, using ``zsh`` as your shell and `Homebre
119119
as your package manager. If you are not, there are installation instructions for a variety of
120120
platforms and shells in the READMEs for the two pyenv projects.
121121

122-
**Install Python 3.11.x with pyenv**
122+
**Install Python 3.12.x with pyenv**
123123

124124
1. Install ``pyenv`` itself ::
125125

@@ -138,23 +138,23 @@ using ``zsh``, the ``pyenv`` docs have other routes ::
138138

139139
$ zsh -l
140140

141-
4. Install the latest Python 3.11.x (e.g. 3.11.8), then test it's there::
141+
4. Install the latest Python 3.12.x (e.g. 3.12.6), then test it's there::
142142

143-
$ pyenv install 3.11.8
143+
$ pyenv install 3.12.6
144144

145-
If you'd like to make Python 3.11 your default globally, you can do so with::
145+
If you'd like to make Python 3.12 your default globally, you can do so with::
146146

147-
$ pyenv global 3.11.8
147+
$ pyenv global 3.12.6
148148

149-
If you only want to make Python 3.11 available in the current shell, while you set up the
149+
If you only want to make Python 3.12 available in the current shell, while you set up the
150150
Python virtualenv (below), you can do so with::
151151

152-
$ pyenv shell 3.11.8
152+
$ pyenv shell 3.12.6
153153

154154
5. Verify that you have the correct version of Python installed::
155155

156156
$ python --version
157-
Python 3.11.8
157+
Python 3.12.6
158158

159159

160160
**Install a plugin to manage virtualenvs via pyenv and create a virtualenv for Bedrock's dependencies**
@@ -176,7 +176,7 @@ pyenv-virtualenv installed::
176176

177177
4. Make a virtualenv we can use - in this example we'll call it ``bedrock`` but use whatever you want ::
178178

179-
$ pyenv virtualenv 3.11.8 bedrock
179+
$ pyenv virtualenv 3.12.6 bedrock
180180

181181
**Use the virtualenv**
182182

@@ -201,7 +201,7 @@ deactivate it when you exit the directory, you can do so with::
201201

202202
If you are on OSX and some of the compiled dependencies fails to compile, try explicitly setting
203203
the arch flags and try again. The following are relevant to Intel Macs only. If you're on Apple
204-
Silicon, 3.11.8 should 'just work':
204+
Silicon, 3.12.6 should 'just work':
205205

206206
.. code-block:: bash
207207

0 commit comments

Comments
 (0)