Browse Source

Merge branch 'renovate/python-3.x' into 'master'

Update python Docker tag to v3.13

See merge request glitchtip/glitchtip-backend!1174
David Burke 5 months ago
parent
commit
223598cc51
3 changed files with 6 additions and 5 deletions
  1. 2 2
      .gitlab-ci.yml
  2. 1 0
      CHANGELOG
  3. 3 3
      Dockerfile

+ 2 - 2
.gitlab-ci.yml

@@ -38,11 +38,11 @@ test:
     matrix:
       - VERSION: '3.11'
         POSTGRES_VERSION: '13'
-      - VERSION: '3.12'
+      - VERSION: '3.13'
         POSTGRES_VERSION: '16'
 
 lint:
-  image: python:3.12
+  image: python:3.13
   script:
     - curl -sSL https://install.python-poetry.org | python3 -
     - $POETRY_HOME/bin/poetry install --no-interaction --no-ansi

+ 1 - 0
CHANGELOG

@@ -1,6 +1,7 @@
 # Unreleased
 
 - Upgrade to django-allauth 65.0.0 
+- Upgrade Python to 3.13
 
 # v4.1.4
 

+ 3 - 3
Dockerfile

@@ -1,4 +1,4 @@
-FROM python:3.12 AS build-python
+FROM python:3.13 AS build-python
 ARG IS_CI
 ENV PYTHONUNBUFFERED=1 \
   PORT=8080 \
@@ -11,7 +11,7 @@ RUN curl -sSL https://install.python-poetry.org | python3 -
 COPY poetry.lock pyproject.toml /code/
 RUN $POETRY_HOME/bin/poetry install --no-interaction --no-ansi $(test "$IS_CI" = "True" && echo "--no-dev")
 
-FROM python:3.12-slim
+FROM python:3.13-slim
 ARG GLITCHTIP_VERSION=local
 ENV GLITCHTIP_VERSION ${GLITCHTIP_VERSION}
 ENV PYTHONUNBUFFERED=1 \
@@ -21,7 +21,7 @@ RUN apt-get update && apt-get install -y libxml2 libpq5 && apt-get clean && rm -
 
 WORKDIR /code
 
-COPY --from=build-python /usr/local/lib/python3.12/site-packages/ /usr/local/lib/python3.12/site-packages/
+COPY --from=build-python /usr/local/lib/python3.13/site-packages/ /usr/local/lib/python3.13/site-packages/
 COPY --from=build-python /usr/local/bin/ /usr/local/bin/
 
 EXPOSE 8080