kopia lustrzana https://github.com/wagtail/bakerydemo
Upgrade Docker, Heroku, CI to Python 3.12
rodzic
4fa8d9ae8d
commit
e7e36b97aa
|
@ -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
|
||||
|
|
|
@ -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/*
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
python-3.10.2
|
||||
python-3.12.1
|
||||
|
|
Ładowanie…
Reference in New Issue