Skip to content

Commit e7e36b9

Browse files
thibaudcolasgasman
authored andcommitted
Upgrade Docker, Heroku, CI to Python 3.12
1 parent 4fa8d9a commit e7e36b9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Python
1717
uses: actions/setup-python@v4
1818
with:
19-
python-version: 3.9
19+
python-version: '3.12'
2020
cache: 'pip'
2121
cache-dependency-path: 'requirements/*.txt'
2222
- name: Install dependencies

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9-slim
1+
FROM python:3.12-slim
22

33
# Install packages needed to run your application (not build deps):
44
# We need to recreate the /usr/share/man/man{1..8} directories first because
@@ -33,9 +33,9 @@ RUN set -ex \
3333
zlib1g-dev \
3434
" \
3535
&& apt-get update && apt-get install -y --no-install-recommends $BUILD_DEPS \
36-
&& python3.9 -m venv ${VIRTUAL_ENV} \
37-
&& pip install -U pip \
38-
&& pip install --no-cache-dir -r /requirements/production.txt \
36+
&& python3.12 -m venv ${VIRTUAL_ENV} \
37+
&& python3.12 -m pip install -U pip \
38+
&& python3.12 -m pip install --no-cache-dir -r /requirements/production.txt \
3939
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $BUILD_DEPS \
4040
&& rm -rf /var/lib/apt/lists/*
4141

runtime.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python-3.10.2
1+
python-3.12.1

0 commit comments

Comments
 (0)