From e035663f3d3cf8d578018b608b9e9e026841b00a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?xavier=20dupr=C3=A9?= Date: Sat, 9 Jan 2021 10:51:43 +0100 Subject: [PATCH 1/2] Update azure-pipelines.yml --- azure-pipelines.yml | 53 ++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 47 insertions(+), 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9592423d..bb135bbb 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -47,15 +47,51 @@ jobs: displayName: 'Build package inplace' - script: python -u setup.py unittests displayName: 'Runs Unit Tests' - - script: python -u setup.py bdist_wheel - displayName: 'Build wheel' - #- script: python -u setup.py build_sphinx - # displayName: 'Builds Documentation' + - 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 scikit-learn pandas pandas_streaming" + export CIBW_BUILD="cp37-manylinux_x86_64 cp38-manylinux_x86_64" + # fails here cp39-manylinux_x86_64, succeeds locally + python -m cibuildwheel --output-dir dist/wheelhouse --platform linux + displayName: 'Build Package manylinux2014' - task: PublishPipelineArtifact@0 inputs: artifactName: 'wheel-linux-$(python.version)' targetPath: 'dist' +- job: 'TestWindows' + pool: + vmImage: 'windows-latest' + strategy: + matrix: + Python39-Windows: + 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 -m pip install cibuildwheel + set CIBW_BEFORE_BUILD=pip install . + set CIBW_BEFORE_BUILD=pip install pybind11 cython numpy scipy pyquickhelper scikit-learn pandas pandas_streaming + 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-windows-$(python.version)' + targetPath: 'dist' + - job: 'TestMac' pool: vmImage: 'macOS-latest' @@ -111,8 +147,13 @@ jobs: displayName: 'Build package inplace' - script: python -u setup.py unittests displayName: 'Runs Unit Tests' - - script: python -u setup.py bdist_wheel - displayName: 'Build wheel' + - script: | + python -m pip install cibuildwheel + export CIBW_BEFORE_BUILD="pip install ." + export CIBW_BEFORE_BUILD="pip install pybind11 cython numpy scipy pyquickhelper scikit-learn pandas pandas_streaming" + 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 inputs: artifactName: 'wheel-mac-$(python.version)' From 595e9941b2aea4e670bf48f1568ac7ed9b854a30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?xavier=20dupr=C3=A9?= Date: Sat, 9 Jan 2021 11:07:07 +0100 Subject: [PATCH 2/2] Update azure-pipelines.yml --- azure-pipelines.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index bb135bbb..63b28739 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -52,8 +52,7 @@ jobs: export CIBW_MANYLINUX_X86_64_IMAGE="manylinux2014" export CIBW_BEFORE_BUILD="pip install ." export CIBW_BEFORE_BUILD="pip install pybind11 cython numpy scipy pyquickhelper scikit-learn pandas pandas_streaming" - export CIBW_BUILD="cp37-manylinux_x86_64 cp38-manylinux_x86_64" - # fails here cp39-manylinux_x86_64, succeeds locally + 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' - task: PublishPipelineArtifact@0 @@ -115,7 +114,8 @@ jobs: displayName: 'gcc version' - script: brew install libomp displayName: 'Install omp' - - script: brew install p7zip + - script: brew upgrade p7zip + continueOnError: true displayName: 'Install p7zip' - script: brew install pandoc displayName: 'Install Pandoc'