From 3306a0e3b4c7ce0ac9fe95a4dfb7e7ab43216109 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@ericsson.com>
Date: Sat, 3 Aug 2024 19:31:04 +0200
Subject: [PATCH] fix

---
 .gitlab-ci.yml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b3f4902..ee351e2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -68,10 +68,10 @@ test_python311:
     - branches
   stage: build
   script:
-    - pip install --break-system-packages --upgrade Cython setuptools pip
+    - pip install --break-system-packages --upgrade Cython setuptools pip repairwheel
     - pip install --break-system-packages -r requirements.txt
     - python setup.py bdist_wheel
-    - cp dist/*.whl .
+    - repairwheel dist/*.whl -o .
   after_script:
     - pip install twine
     - TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python3 -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
@@ -82,6 +82,9 @@ upload_python311_armv7l:
   dependencies:
     - build_python311_armv7l
   script:
+    - mkdir dist2
+    - mv *.whl dist2
+    - repairwheel dist2/*.whl -o .
     - TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python3 -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
   only:
     - tags
-- 
GitLab