From 09fd48fe9c5a77794c97339961ccec85dd0f410f Mon Sep 17 00:00:00 2001 From: JuniorJPDJ Date: Sat, 26 Nov 2022 01:31:26 +0000 Subject: [PATCH] dont source venv, force rm if no musllinux wheels found --- .gitlab-ci.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e555ed02b..b7c3d4349 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -50,13 +50,11 @@ build_dep_wheels: before_script: - > apk add - musl-dev - gcc - postgresql-dev + alpine-sdk python3-dev - libldap + postgresql-dev + libldap-dev libffi-dev - make zlib-dev jpeg-dev openldap-dev @@ -64,19 +62,16 @@ build_dep_wheels: cargo libxml2-dev libxslt-dev - curl poetry py3-pip - cd api - poetry export --without-hashes > ../requirements.txt - cd .. - python -m venv venv - - source venv/bin/activate - - pip install --upgrade pip wheel + - venv/bin/pip install --upgrade pip wheel script: - - source venv/bin/activate - - pip wheel --check-build-dependencies -w wheelhome -r requirements.txt - - rm wheelhome/*-none-any.whl wheelhome/*-musllinux_*.whl + - venv/bin/pip wheel --check-build-dependencies -w wheelhome -r requirements.txt + - rm -f wheelhome/*-none-any.whl wheelhome/*-musllinux_*.whl - ls -l wheelhome artifacts: paths: