From 382641507a48ac8fead6b4ae6725f3245505664a Mon Sep 17 00:00:00 2001 From: mayeut Date: Sun, 27 Feb 2022 11:22:36 +0100 Subject: BLD: move cibuildwheel configuration to `pyproject.toml` [wheel build] This allows to share the configuration between GitHub Actions and Travis-CI. This also allows to easily run cibuildwheel locally to debug build issues when they arise. --- .travis.yml | 37 ------------------------------------- 1 file changed, 37 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index d74758588..4ee14ca75 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,25 +45,12 @@ jobs: - ATLAS=None # Wheel builders - # TODO: de-dup env vars in between steps? - python: "3.8" os: linux arch: arm64 virt: vm env: - CIBW_BUILD: cp38-manylinux_aarch64 - - CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014 - - CIBW_BUILD_VERBOSITY: 3 - - CIBW_BEFORE_BUILD: "'bash {project}/tools/wheels/cibw_before_build.sh {project}'" - - CIBW_BEFORE_TEST: "'pip install -r {project}/test_requirements.txt'" - - CIBW_TEST_COMMAND: "'bash {project}/tools/wheels/cibw_test_command.sh {project}'" - # Workaround Travis limitations - # set each variable separately and use cibw pass env to pass through - - CFLAGS: "'-std=c99 -fno-strict-aliasing'" - - LDFLAGS: "'-Wl,--strip-debug'" - - OPENBLAS64_: /usr/local - - RUNNER_OS: Linux - - CIBW_ENVIRONMENT_PASS_LINUX: "'CFLAGS LDFLAGS OPENBLAS64_ RUNNER_OS'" install: python3 -m pip install cibuildwheel==2.3.1 script: | cibuildwheel --output-dir wheelhouse @@ -77,18 +64,6 @@ jobs: virt: vm env: - CIBW_BUILD: cp39-manylinux_aarch64 - - CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014 - - CIBW_BUILD_VERBOSITY: 3 - - CIBW_BEFORE_BUILD: "'bash {project}/tools/wheels/cibw_before_build.sh {project}'" - - CIBW_BEFORE_TEST: "'pip install -r {project}/test_requirements.txt'" - - CIBW_TEST_COMMAND: "'bash {project}/tools/wheels/cibw_test_command.sh {project}'" - # Workaround Travis limitations - # set each variable separately and use cibw pass env to pass through - - CFLAGS: "'-std=c99 -fno-strict-aliasing'" - - LDFLAGS: "'-Wl,--strip-debug'" - - OPENBLAS64_: /usr/local - - RUNNER_OS: Linux - - CIBW_ENVIRONMENT_PASS_LINUX: "'CFLAGS LDFLAGS OPENBLAS64_ RUNNER_OS'" install: python3 -m pip install cibuildwheel==2.3.1 script: | cibuildwheel --output-dir wheelhouse @@ -102,18 +77,6 @@ jobs: virt: vm env: - CIBW_BUILD: cp310-manylinux_aarch64 - - CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014 - - CIBW_BUILD_VERBOSITY: 3 - - CIBW_BEFORE_BUILD: "'bash {project}/tools/wheels/cibw_before_build.sh {project}'" - - CIBW_BEFORE_TEST: "'pip install -r {project}/test_requirements.txt'" - - CIBW_TEST_COMMAND: "'bash {project}/tools/wheels/cibw_test_command.sh {project}'" - # Workaround Travis limitations - # set each variable separately and use cibw pass env to pass through - - CFLAGS: "'-std=c99 -fno-strict-aliasing'" - - LDFLAGS: "'-Wl,--strip-debug'" - - OPENBLAS64_: /usr/local - - RUNNER_OS: Linux - - CIBW_ENVIRONMENT_PASS_LINUX: "'CFLAGS LDFLAGS OPENBLAS64_ RUNNER_OS'" install: python3 -m pip install cibuildwheel==2.3.1 script: | cibuildwheel --output-dir wheelhouse -- cgit v1.2.1