Skip to content
Snippets Groups Projects
Commit 2738adfa authored by Philipp Middendorf's avatar Philipp Middendorf
Browse files

Replace cibuildwheels with custom jobs

parent ead813c7
No related branches found
Tags 2.1.0
No related merge requests found
Pipeline #167539 canceled
# Gitlab pipeline for CFELPyUtils
image: python:3.8-buster
image: python:3.9
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
......@@ -33,28 +33,49 @@ test:
coverage_format: cobertura
path: coverage.xml
build-wheels:
build-wheel39:
image: python:3.9
stage: build
image: python:3.8-buster
# make a docker daemon available for cibuildwheel to use
services:
- name: docker:dind
variables:
DOCKER_HOST: tcp://docker:2376
DOCKER_TLS_CERTDIR: "/certs"
CIBW_PLATFORM: "linux"
CIBW_BUILD: "cp36-manylinux_x86_64 cp37-manylinux_x86_64 cp38-manylinux_x86_64 cp39-manylinux_x86_64"
script:
- curl -sSL https://get.docker.com/ | sh
- python -m pip install cibuildwheel==2.1.2
- python -m pip config set global.timeout 100
- cibuildwheel --output-dir packages
- python -m pip --timeout 100 install numpy cython
- python setup.py bdist_wheel
- mkdir -p packages/ && mv dist/*.whl packages/
artifacts:
paths:
- packages/*.whl
build-wheel310:
image: python:3.10
stage: build
script:
- python -m pip --timeout 100 install numpy cython
- python setup.py bdist_wheel
- mkdir -p packages/ && mv dist/*.whl packages/
artifacts:
paths:
- packages/*.whl
build-wheel311:
image: python:3.11
stage: build
script:
- python -m pip --timeout 100 install numpy cython
- python setup.py bdist_wheel
- mkdir -p packages/ && mv dist/*.whl packages/
artifacts:
paths:
- packages/*.whl
build-wheel312:
image: python:3.12
stage: build
script:
- python -m pip --timeout 100 install numpy cython
- python setup.py bdist_wheel
- mkdir -p packages/ && mv dist/*.whl packages/
artifacts:
paths:
- packages/*.whl
only:
- tags
- main
build-sdist:
stage: build
......@@ -81,22 +102,20 @@ pages:
deploy-to-gitlab:
stage: deploy
needs: ["build-wheels", "build-sdist"]
needs: ["build-wheel39", "build-wheel310", "build-wheel311", "build-wheel312", "build-sdist"]
script:
- ls -l packages/
- pip install twine
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url https://gitlab.desy.de/api/v4/projects/${CI_PROJECT_ID}/packages/pypi packages/*
only:
- tags
- main
deploy-to-pypi:
stage: deploy
needs: ["build-wheels", "build-sdist"]
needs: ["build-wheel39", "build-wheel310", "build-wheel311", "build-wheel312", "build-sdist"]
script:
- ls -l packages/
- pip install twine
- TWINE_PASSWORD="$PYPI" TWINE_USERNAME=cfelsc python -m twine upload packages/*
only:
- tags
- main
......@@ -17,4 +17,4 @@ This is the CFELPyUtils package, which contains all modules of the library.
Please refer to the individual modules to learn more about their function.
"""
__version__ = "2.0.6"
__version__ = "2.1.0"
......@@ -31,10 +31,10 @@ platforms = unix, linux, osx, cygwin, win32
classifiers =
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Natural Language :: English
Intended Audience :: Science/Research
......
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