From 91ee3bea6d3d247ff93323e14233f7d099be63ca Mon Sep 17 00:00:00 2001 From: jadera Date: Thu, 20 Nov 2025 00:43:47 +0200 Subject: [PATCH 1/3] testing pip upgrade to bump packages --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 10d098f..54018f1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,6 +31,7 @@ audit: - poetry config virtualenvs.create false - poetry install --no-interaction --no-ansi script: + - pip install --upgrade pip - safety check test: From d0557ffb79a4c069dcebb431f1e4a0d3c8636f8c Mon Sep 17 00:00:00 2001 From: jadera Date: Thu, 20 Nov 2025 00:59:30 +0200 Subject: [PATCH 2/3] added more pip upgrades --- .gitlab-ci.yml | 3 ++- Dockerfile | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 54018f1..6cd50bd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,11 +27,11 @@ audit: - pushes needs: [] before_script: + - pip install --upgrade pip - pip install poetry==2.1.1 - poetry config virtualenvs.create false - poetry install --no-interaction --no-ansi script: - - pip install --upgrade pip - safety check test: @@ -49,6 +49,7 @@ test: DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB" DB_HOST: postgres before_script: + - pip install --upgrade pip - pip install poetry==2.1.1 - poetry config virtualenvs.create false - poetry install --no-interaction --no-ansi diff --git a/Dockerfile b/Dockerfile index e54efbf..5b3513c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ COPY . ./ ENV POETRY_VERSION=2.1.1 +RUN pip install --upgrade pip RUN pip install "poetry==$POETRY_VERSION" RUN poetry self add poetry-plugin-export RUN poetry export --without-hashes --format=requirements.txt --output requirements.txt @@ -23,6 +24,7 @@ ENV PYTHONUNBUFFERED=1 \ PIP_DEFAULT_TIMEOUT=100 RUN apt-get update && apt-get install --no-install-recommends -y build-essential +RUN pip install --upgrade pip RUN pip install --no-deps -r requirements.txt RUN python manage.py collectstatic --noinput From 66932793487db1abde1bc4d5c5c1710bc5828b46 Mon Sep 17 00:00:00 2001 From: jadera Date: Thu, 20 Nov 2025 18:45:13 +0200 Subject: [PATCH 3/3] use strict version --- .gitlab-ci.yml | 4 ++-- Dockerfile | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6cd50bd..84a6aa8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,7 +27,7 @@ audit: - pushes needs: [] before_script: - - pip install --upgrade pip + - pip install pip==25.3 - pip install poetry==2.1.1 - poetry config virtualenvs.create false - poetry install --no-interaction --no-ansi @@ -49,7 +49,7 @@ test: DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB" DB_HOST: postgres before_script: - - pip install --upgrade pip + - pip install pip==25.3 - pip install poetry==2.1.1 - poetry config virtualenvs.create false - poetry install --no-interaction --no-ansi diff --git a/Dockerfile b/Dockerfile index 5b3513c..5b696ae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,8 @@ FROM python:3.12.9-slim-bullseye AS builder ENV PYTHONUNBUFFERED 1 COPY . ./ - ENV POETRY_VERSION=2.1.1 - -RUN pip install --upgrade pip +RUN pip install pip==25.3 RUN pip install "poetry==$POETRY_VERSION" RUN poetry self add poetry-plugin-export RUN poetry export --without-hashes --format=requirements.txt --output requirements.txt @@ -24,7 +22,7 @@ ENV PYTHONUNBUFFERED=1 \ PIP_DEFAULT_TIMEOUT=100 RUN apt-get update && apt-get install --no-install-recommends -y build-essential -RUN pip install --upgrade pip +RUN pip install pip==25.3 RUN pip install --no-deps -r requirements.txt RUN python manage.py collectstatic --noinput