Skip to content

Commit c744bea

Browse files
Merge pull request #2228 from IFRCGo/feature/python-3-11
Upgrade to python 3.11
2 parents 25bd790 + 2f7962e commit c744bea

File tree

4 files changed

+313
-506
lines changed

4 files changed

+313
-506
lines changed

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.8.12
1+
3.11.10

Dockerfile

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

33
ENV PYTHONUNBUFFERED=1
44
EXPOSE 80
@@ -35,7 +35,7 @@ RUN playwright install \
3535

3636
# TODO: Refactor the whole Azure storage part. (Upgrade is not enough, was tested.)
3737
# Until then avoid some SyntaxWarnings ("is" with a literal):
38-
ENV AZUREROOT=/usr/local/lib/python3.9/site-packages/azure/storage/
38+
ENV AZUREROOT=/usr/local/lib/python3.11/site-packages/azure/storage/
3939
RUN perl -pi -e 's/ is 0 / == 0 /' ${AZUREROOT}blob/_upload_chunking.py
4040
RUN perl -pi -e 's/ is not -1 / != 1 /' ${AZUREROOT}blob/baseblobservice.py
4141
RUN perl -pi -e "s/ is '' / == '' /" ${AZUREROOT}common/_connection.py

0 commit comments

Comments
 (0)