Skip to content
Snippets Groups Projects
Commit 9dc7584a authored by Corné Lukken's avatar Corné Lukken
Browse files

Use recommend setup for building wheels on ci

parent 677aecf7
No related branches found
No related tags found
1 merge request!1Initial binary wheel setup
Pipeline #52991 passed with warnings
Pipeline: Python Binary Wheel Package

#52992

    ...@@ -28,6 +28,16 @@ default: ...@@ -28,6 +28,16 @@ default:
    - python -m pip install --upgrade pip - python -m pip install --upgrade pip
    - pip install --upgrade tox twine - pip install --upgrade tox twine
    # override package files before script
    package_files:
    before_script:
    - pip install cookiecutter
    - !reference [default, before_script]
    artifacts:
    expire_in: 1w
    paths:
    - my_awesome_app/dist/*
    # Override artifact directories # Override artifact directories
    run_unit_tests_coverage: run_unit_tests_coverage:
    artifacts: artifacts:
    ......
    ...@@ -79,12 +79,25 @@ run_unit_tests_coverage: ...@@ -79,12 +79,25 @@ run_unit_tests_coverage:
    package_files: package_files:
    stage: package stage: package
    image: python:3.8
    # make a docker daemon available for cibuildwheel to use
    # services:
    # - name: docker:dind
    # entrypoint: [ "env", "-u", "DOCKER_HOST" ]
    # command: [ "dockerd-entrypoint.sh" ]
    # variables:
    # DOCKER_HOST: tcp://docker:2375/
    # DOCKER_DRIVER: overlay2
    # # See https://github.com/docker-library/docker/pull/166
    # DOCKER_TLS_CERTDIR: ""
    artifacts: artifacts:
    expire_in: 1w expire_in: 1w
    paths: paths:
    - dist/* - dist/*
    script: script:
    - tox -e build-ci-linux - curl -sSL https://get.docker.com/ | sh
    - python -m pip install cibuildwheel==2.13.1 cookiecutter
    - cibuildwheel --platform linux --output-dir dist
    package_docs: package_docs:
    stage: package stage: package
    ......
    ...@@ -11,7 +11,7 @@ name = "{{cookiecutter.project_slug}}" ...@@ -11,7 +11,7 @@ name = "{{cookiecutter.project_slug}}"
    dynamic = ["version"] dynamic = ["version"]
    description="{{cookiecutter.description}}" description="{{cookiecutter.description}}"
    readme = "README.md" readme = "README.md"
    requires-python = ">=3.7" requires-python = ">=3.8"
    classifiers = [ classifiers = [
    "Development Status :: 4 - Beta", "Development Status :: 4 - Beta",
    "License :: OSI Approved :: MIT License", "License :: OSI Approved :: MIT License",
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment