Upgrade Docker, Heroku, CI to Python 3.12

pull/497/head
Thibaud Colas 2024-01-04 22:24:41 +00:00 zatwierdzone przez Matt Westcott
rodzic 4fa8d9ae8d
commit e7e36b97aa
3 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -16,7 +16,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: '3.12'
cache: 'pip'
cache-dependency-path: 'requirements/*.txt'
- name: Install dependencies

Wyświetl plik

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

Wyświetl plik

@ -1 +1 @@
python-3.10.2
python-3.12.1