Fix build for Python 3.11

pull/1/head
radex 2023-09-19 22:14:09 +02:00
parent 4e8fcf28b8
commit fee93310d0
4 changed files with 9 additions and 9 deletions

View File

@ -1 +1 @@
3.9
3.11

View File

@ -1,5 +1,5 @@
# The builder image, used to build the virtual environment
FROM python:3.9-bookworm as builder
FROM python:3.11-buster as builder
RUN apt-get update && \
apt-get install -y libkrb5-dev libsasl2-dev libldap2-dev libssl-dev && \
@ -22,7 +22,7 @@ RUN poetry install --no-root && \
rm -rf $POETRY_CACHE_DIR
# The runtime image, used to just run the code provided its virtual environment
FROM python:3.9-slim-bookworm as runtime
FROM python:3.11-slim-buster as runtime
RUN apt-get update && \
apt-get install -y libldap2-dev krb5-user libxml2 --no-install-recommends && \
rm -rf /var/lib/apt/lists/*

8
poetry.lock generated
View File

@ -202,12 +202,12 @@ pyasn1_modules = ">=0.1.5"
[[package]]
name = "uwsgi"
version = "2.0.18"
version = "2.0.22"
description = "The uWSGI server"
optional = false
python-versions = "*"
files = [
{file = "uwsgi-2.0.18.tar.gz", hash = "sha256:4972ac538800fb2d421027f49b4a1869b66048839507ccf0aa2fda792d99f583"},
{file = "uwsgi-2.0.22.tar.gz", hash = "sha256:4cc4727258671ac5fa17ab422155e9aaef8a2008ebb86e4404b66deaae965db2"},
]
[[package]]
@ -242,5 +242,5 @@ locale = ["Babel (>=1.3)"]
[metadata]
lock-version = "2.0"
python-versions = "~3.9"
content-hash = "616abf1d52f6061fb3883ceba7ca4b824caedb1f9e354e5bfe4171a7a83d04b9"
python-versions = "~3.11"
content-hash = "43c28130d297e78b025890027b0c147309f3b61b93b458cc9e5bbfa92bb982c6"

View File

@ -6,7 +6,7 @@ authors = []
readme = "README.md"
[tool.poetry.dependencies]
python = "~3.9"
python = "~3.11"
Flask = "1.1.1"
Flask-WTF = "0.14.2"
itsdangerous = "1.1.0"
@ -14,7 +14,7 @@ Jinja2 = "2.10.3"
kerberos = "1.3.0"
MarkupSafe = "1.1.1"
python-ldap = "3.2.0"
uWSGI = "2.0.18"
uWSGI = "^2.0"
Werkzeug = "0.16.0"
WTForms = "2.2.1"