From cafc32121de9a78e63db4d85fd0dbdabd244c541 Mon Sep 17 00:00:00 2001
From: Thomas Kluyver <thomas@kluyver.me.uk>
Date: Fri, 10 Jan 2025 13:06:49 +0000
Subject: [PATCH] Try building in manylinux container to use auditwheel

---
 .gitlab-ci.yml | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cb6a14c..851a1f0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,25 +1,25 @@
-image: python:3.11
+image: quay.io/pypa/manylinux_2_34_x86_64
 
 variables:
   PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
+  PYTHON: "/opt/python/cp311-cp311/bin/python"
 
 cache:
   paths:
     - .cache/pip
 
 before_script:
-  - python --version ; pip --version  # For debugging
-  - python -m venv venv
-  - source venv/bin/activate
+  - $PYTHON --version ; $PYTHON -m pip --version  # For debugging
+  - $PYTHON -m venv venv
 
 test:
   script:
-    - pip install build auditwheel abi3audit pytest
-    - python -m build
+    - $PYTHON -m build
     - auditwheel repair dist/*.whl
-    - abi3audit -vs wheelhouse/*.whl
-    - pip install wheelhouse/*.whl
-    - pytest
+    - venv/bin/pip install pytest abi3audit
+    - venv/bin/abi3audit -vs wheelhouse/*.whl
+    - venv/bin/pip install wheelhouse/*.whl
+    - venv/bin/pytest
   artifacts:
     paths:
       - dist/*.tar.gz
-- 
GitLab