Skip to content

Commit abe5214

Browse files
committed
⬆️ Upgrade to python 3.11
1 parent 9d3926a commit abe5214

File tree

7 files changed

+10
-50
lines changed

7 files changed

+10
-50
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
- uses: actions/checkout@v2
8080
- uses: actions/setup-python@v2
8181
with:
82-
python-version: '3.10'
82+
python-version: '3.11'
8383
- uses: actions/setup-node@v2-beta
8484
with:
8585
node-version: '17'

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ build:
1515
- libxmlsec1-openssl
1616
- wget
1717
tools:
18-
python: '3.10'
18+
python: '3.11'
1919

2020
python:
2121
install:

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Stage 1 - Compile needed python dependencies
2-
FROM python:3.10-slim-bookworm AS build
2+
FROM python:3.11-slim-bookworm AS build
33

44
RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends \
55
pkg-config \
66
build-essential \
77
libpq-dev \
8+
git \
89
&& rm -rf /var/lib/apt/lists/*
910

1011
WORKDIR /app
@@ -34,7 +35,7 @@ RUN npm run build
3435

3536

3637
# Stage 3 - Build docker image suitable for execution and deployment
37-
FROM python:3.10-slim-bookworm AS production
38+
FROM python:3.11-slim-bookworm AS production
3839

3940
# Stage 3.1 - Set up the needed production dependencies
4041
# install all the dependencies for GeoDjango
@@ -65,7 +66,7 @@ RUN mkdir /app/log /app/config /app/media /app/private-media
6566
VOLUME ["/app/log", "/app/media", "/app/private-media"]
6667

6768
# copy backend build deps
68-
COPY --from=build /usr/local/lib/python3.10 /usr/local/lib/python3.10
69+
COPY --from=build /usr/local/lib/python3.11 /usr/local/lib/python3.11
6970
COPY --from=build /usr/local/bin/uwsgi /usr/local/bin/uwsgi
7071
COPY --from=build /usr/local/bin/celery /usr/local/bin/celery
7172

INSTALL.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Prerequisites
1818

1919
You need the following libraries and/or programs:
2020

21-
* `Python`_ 3.10
21+
* `Python`_ 3.11
2222
* Python `Virtualenv`_ and `Pip`_
2323
* `PostgreSQL`_ 11 or above
2424
* `Node.js`_

requirements/base.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.10
2+
# This file is autogenerated by pip-compile with Python 3.11
33
# by the following command:
44
#
55
# ./bin/compile_dependencies.sh
@@ -10,8 +10,6 @@ asgiref==3.7.2
1010
# via
1111
# django
1212
# django-cors-headers
13-
async-timeout==4.0.3
14-
# via redis
1513
attrs==23.2.0
1614
# via
1715
# glom
@@ -278,8 +276,6 @@ sqlparse==0.4.4
278276
# via django
279277
tornado==6.4
280278
# via flower
281-
typing-extensions==4.9.0
282-
# via asgiref
283279
uritemplate==4.1.1
284280
# via
285281
# coreapi

requirements/ci.txt

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.10
2+
# This file is autogenerated by pip-compile with Python 3.11
33
# by the following command:
44
#
55
# ./bin/compile_dependencies.sh
@@ -19,11 +19,6 @@ asgiref==3.7.2
1919
# django-cors-headers
2020
astroid==3.0.2
2121
# via pylint
22-
async-timeout==4.0.3
23-
# via
24-
# -c requirements/base.txt
25-
# -r requirements/base.txt
26-
# redis
2722
attrs==23.2.0
2823
# via
2924
# -c requirements/base.txt
@@ -594,24 +589,13 @@ sqlparse==0.4.4
594589
# django
595590
tblib==3.0.0
596591
# via -r requirements/test-tools.in
597-
tomli==2.0.1
598-
# via
599-
# black
600-
# pylint
601592
tomlkit==0.12.3
602593
# via pylint
603594
tornado==6.4
604595
# via
605596
# -c requirements/base.txt
606597
# -r requirements/base.txt
607598
# flower
608-
typing-extensions==4.9.0
609-
# via
610-
# -c requirements/base.txt
611-
# -r requirements/base.txt
612-
# asgiref
613-
# astroid
614-
# black
615599
uritemplate==4.1.1
616600
# via
617601
# -c requirements/base.txt

requirements/dev.txt

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.10
2+
# This file is autogenerated by pip-compile with Python 3.11
33
# by the following command:
44
#
55
# ./bin/compile_dependencies.sh
@@ -25,11 +25,6 @@ astroid==3.0.2
2525
# -c requirements/ci.txt
2626
# -r requirements/ci.txt
2727
# pylint
28-
async-timeout==4.0.3
29-
# via
30-
# -c requirements/ci.txt
31-
# -r requirements/ci.txt
32-
# redis
3328
attrs==23.2.0
3429
# via
3530
# -c requirements/ci.txt
@@ -715,15 +710,6 @@ tblib==3.0.0
715710
# via
716711
# -c requirements/ci.txt
717712
# -r requirements/ci.txt
718-
tomli==2.0.1
719-
# via
720-
# -c requirements/ci.txt
721-
# -r requirements/ci.txt
722-
# black
723-
# build
724-
# pip-tools
725-
# pylint
726-
# pyproject-hooks
727713
tomlkit==0.12.3
728714
# via
729715
# -c requirements/ci.txt
@@ -734,13 +720,6 @@ tornado==6.4
734720
# -c requirements/ci.txt
735721
# -r requirements/ci.txt
736722
# flower
737-
typing-extensions==4.9.0
738-
# via
739-
# -c requirements/ci.txt
740-
# -r requirements/ci.txt
741-
# asgiref
742-
# astroid
743-
# black
744723
uritemplate==4.1.1
745724
# via
746725
# -c requirements/ci.txt

0 commit comments

Comments
 (0)