From ca2696d6f55f8bbfd0a145e8596a407d1680e3dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?xavier=20dupr=C3=A9?= Date: Fri, 8 Jan 2021 14:57:49 +0100 Subject: [PATCH] Add mnylinux compilation --- azure-pipelines.yml | 50 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3d31c18..538664f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -45,6 +45,14 @@ jobs: displayName: 'Runs Unit Tests' - script: python -u setup.py bdist_wheel displayName: 'Build Package' + - script: | + python -m pip install cibuildwheel + export CIBW_MANYLINUX_X86_64_IMAGE="manylinux2014" + export CIBW_BEFORE_BUILD="pip install ." + export CIBW_BEFORE_BUILD="pip install pybind11 cython numpy scipy pyquickhelper" + export CIBW_BUILD="cp37-manylinux_x86_64 cp38-manylinux_x86_64 cp39-manylinux_x86_64" + python -m cibuildwheel --output-dir dist/wheelhouse --platform linux + displayName: 'Build Package manylinux2014' #- script: python -u setup.py build_sphinx # displayName: 'Builds Documentation' - task: PublishPipelineArtifact@0 @@ -102,7 +110,49 @@ jobs: displayName: 'Runs Unit Tests' - script: python -u setup.py bdist_wheel displayName: 'Build Package' + - script: | + python -m pip install cibuildwheel + export CIBW_BEFORE_BUILD="pip install ." + export CIBW_BEFORE_BUILD="pip install pybind11 cython numpy scipy pyquickhelper" + export CIBW_BUILD="cp37-macosx_x86_64 cp38-macosx_x86_64 cp39-macosx_x86_64" + python -m cibuildwheel --output-dir dist/wheelhouse + displayName: 'Build Package many' + - task: PublishPipelineArtifact@0 - task: PublishPipelineArtifact@0 inputs: artifactName: 'wheel-mac-$(python.version)' targetPath: 'dist' + +- job: 'TestWindows' + pool: + vmImage: 'windows-latest' + strategy: + matrix: + Python39-Linux: + python.version: '3.9' + maxParallel: 3 + steps: + - task: UsePythonVersion@0 + inputs: + versionSpec: '$(python.version)' + architecture: 'x64' + - script: python -m pip install --upgrade pip setuptools wheel + displayName: 'Install tools' + - script: pip install -r requirements.txt + displayName: 'Install Requirements' + - script: python -c "import platform;print(platform.version())" + displayName: 'Platform' + - script: | + python -u setup.py bdist_wheel + displayName: 'Build Package' + - script: | + python -m pip install cibuildwheel + set CIBW_BEFORE_BUILD=pip install . + set CIBW_BEFORE_BUILD=pip install pybind11 cython numpy scipy pyquickhelper + set CIBW_BUILD=cp37-win_amd64 cp38-win_amd64 cp39-win_amd64 + python -m cibuildwheel --output-dir dist/wheelhouse + displayName: 'Build Package many' + - task: PublishPipelineArtifact@0 + inputs: + artifactName: 'wheel-linux-$(python.version)' + targetPath: 'dist'