Skip to content

Commit e035663

Browse files
committed
Update azure-pipelines.yml
1 parent 233c53e commit e035663

File tree

1 file changed

+47
-6
lines changed

1 file changed

+47
-6
lines changed

azure-pipelines.yml

Lines changed: 47 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,51 @@ jobs:
4747
displayName: 'Build package inplace'
4848
- script: python -u setup.py unittests
4949
displayName: 'Runs Unit Tests'
50-
- script: python -u setup.py bdist_wheel
51-
displayName: 'Build wheel'
52-
#- script: python -u setup.py build_sphinx
53-
# displayName: 'Builds Documentation'
50+
- script: |
51+
python -m pip install cibuildwheel
52+
export CIBW_MANYLINUX_X86_64_IMAGE="manylinux2014"
53+
export CIBW_BEFORE_BUILD="pip install ."
54+
export CIBW_BEFORE_BUILD="pip install pybind11 cython numpy scipy pyquickhelper scikit-learn pandas pandas_streaming"
55+
export CIBW_BUILD="cp37-manylinux_x86_64 cp38-manylinux_x86_64"
56+
# fails here cp39-manylinux_x86_64, succeeds locally
57+
python -m cibuildwheel --output-dir dist/wheelhouse --platform linux
58+
displayName: 'Build Package manylinux2014'
5459
- task: PublishPipelineArtifact@0
5560
inputs:
5661
artifactName: 'wheel-linux-$(python.version)'
5762
targetPath: 'dist'
5863

64+
- job: 'TestWindows'
65+
pool:
66+
vmImage: 'windows-latest'
67+
strategy:
68+
matrix:
69+
Python39-Windows:
70+
python.version: '3.9'
71+
maxParallel: 3
72+
steps:
73+
- task: UsePythonVersion@0
74+
inputs:
75+
versionSpec: '$(python.version)'
76+
architecture: 'x64'
77+
- script: python -m pip install --upgrade pip setuptools wheel
78+
displayName: 'Install tools'
79+
- script: pip install -r requirements.txt
80+
displayName: 'Install Requirements'
81+
- script: python -c "import platform;print(platform.version())"
82+
displayName: 'Platform'
83+
- script: |
84+
python -m pip install cibuildwheel
85+
set CIBW_BEFORE_BUILD=pip install .
86+
set CIBW_BEFORE_BUILD=pip install pybind11 cython numpy scipy pyquickhelper scikit-learn pandas pandas_streaming
87+
set CIBW_BUILD=cp37-win_amd64 cp38-win_amd64 cp39-win_amd64
88+
python -m cibuildwheel --output-dir dist/wheelhouse
89+
displayName: 'Build Package many'
90+
- task: PublishPipelineArtifact@0
91+
inputs:
92+
artifactName: 'wheel-windows-$(python.version)'
93+
targetPath: 'dist'
94+
5995
- job: 'TestMac'
6096
pool:
6197
vmImage: 'macOS-latest'
@@ -111,8 +147,13 @@ jobs:
111147
displayName: 'Build package inplace'
112148
- script: python -u setup.py unittests
113149
displayName: 'Runs Unit Tests'
114-
- script: python -u setup.py bdist_wheel
115-
displayName: 'Build wheel'
150+
- script: |
151+
python -m pip install cibuildwheel
152+
export CIBW_BEFORE_BUILD="pip install ."
153+
export CIBW_BEFORE_BUILD="pip install pybind11 cython numpy scipy pyquickhelper scikit-learn pandas pandas_streaming"
154+
export CIBW_BUILD="cp37-macosx_x86_64 cp38-macosx_x86_64 cp39-macosx_x86_64"
155+
python -m cibuildwheel --output-dir dist/wheelhouse
156+
displayName: 'Build Package many'
116157
- task: PublishPipelineArtifact@0
117158
inputs:
118159
artifactName: 'wheel-mac-$(python.version)'

0 commit comments

Comments
 (0)