From a8f6e9e7a415b7d6f5ec266f9f7a28c20a6c7989 Mon Sep 17 00:00:00 2001 From: Alexander Minges Date: Tue, 22 Jul 2025 12:58:01 +0200 Subject: [PATCH] ci(release): use Python venv in release job --- .gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 59c18ec..fdc79b7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -114,9 +114,11 @@ release: image: registry.gitlab.com/gitlab-org/release-cli:latest needs: ["test", "build-package"] before_script: - - apk add --no-cache git python3 py3-pip - - python3 -m pip install setuptools_scm + - apk add --no-cache git python3 py3-virtualenv + - python3 -m virtualenv venv + - source venv/bin/activate script: + - pip install setuptools_scm - | # Get version from setuptools_scm VERSION=$(python3 -c "from setuptools_scm import get_version; print(get_version())")