Skip to content
Snippets Groups Projects
Commit c6132516 authored by Dan Villiom Podlaski Christiansen's avatar Dan Villiom Podlaski Christiansen
Browse files

ci: just build our own wheel for now

After numerous failed attempts to build Mercurial and Dulwich
reliably, I came to the conclusion that this just isn't our job.
Dulwich is rather good at distributing binary wheels; so should
Mercurial be!
parent 7b52dc1b
No related branches found
No related tags found
1 merge request!134Use setuptools & setuptools_scm
Pipeline #29623 passed
......@@ -228,8 +228,8 @@
--cleanup
--destination registry.heptapod.net:443/mercurial/hg-git/git-server
x86 Wheels:
image: quay.io/pypa/${PLATFORM}
Wheels:
image: python
timeout: 15m
stage: archives
rules:
......@@ -239,6 +239,4 @@
- if: '$CI_COMMIT_REF_PROTECTED == "true"'
# and when explicitly requested
- if: '$CI_BUILD_ARCHIVES == "1"'
variables:
PYPI_REPOSITORY: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi
script:
......@@ -244,5 +242,4 @@
script:
- yum install -y gettext
- |
cat > ~/.pypirc <<EOF
[distutils]
......@@ -254,12 +251,6 @@
username = gitlab-ci-token
password = ${CI_JOB_TOKEN}
EOF
- |
for pythondir in /opt/python/${ABI}*
do
# setuptools_scm needs hg in its path
export PATH=$pythondir/bin:$PATH
$pythondir/bin/pip install docutils pygments mercurial twine
$pythondir/bin/pip wheel -w wheelhouse mercurial .
done
- pip install mercurial twine build
- pyproject-build
- |
......@@ -265,20 +256,8 @@
- |
for whl in wheelhouse/*-linux_*.whl
do
auditwheel repair --plat ${PLATFORM} -w wheelhouse $whl
rm -v $whl
done
# rely on our PATH adjustment above
- |
for whl in wheelhouse/*-${PLATFORM}.whl wheelhouse/hg_git-*.whl
do
twine upload \
--disable-progress-bar --verbose --skip-existing \
--repository gitlab \
$whl \
&& echo "upload of $whl success" \
|| echo "upload of $whl failed"
done
twine upload \
--disable-progress-bar --verbose --skip-existing \
--repository gitlab \
dist/*
artifacts:
paths:
- wheelhouse
......@@ -282,30 +261,3 @@
artifacts:
paths:
- wheelhouse
parallel:
matrix:
- PLATFORM: manylinux2014_x86_64
ABI:
- cp36
- cp37
- cp38
- cp39
- PLATFORM: manylinux_2_24
ABI:
- cp310
ARM Wheels:
extends: "x86 Wheels"
tags:
- arm64
parallel:
matrix:
- PLATFORM: manylinux2014_aarch64
ABI:
- cp36
- cp37
- cp38
- cp39
- PLATFORM: manylinux_2_24
ABI:
- cp310
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment