Skip to content

Commit 96ac0b9

Browse files
authored
Ci support py39 (#384)
* add python 3.9 * fix formatting issue * fixed wrong version ref
1 parent 9890a54 commit 96ac0b9

1 file changed

Lines changed: 70 additions & 48 deletions

File tree

azurePipeline.yml

Lines changed: 70 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -5,56 +5,67 @@ stages:
55
# Need to install development libraries for manylinux container
66
CIBW_BEFORE_BUILD_LINUX: 'yum install -y libffi-devel atlas-devel'
77
# Only build for Python36+, and x64 arch
8-
CIBW_BUILD: 'cp38-* cp37-* cp36-*'
8+
CIBW_BUILD: 'cp39-* cp38-* cp37-* cp36-*'
99
CIBW_SKIP: '*-win32 *-manylinux_i686'
1010
jobs:
11-
- job: linux_38
12-
displayName: Linux + Python3.8
13-
pool:
14-
vmImage: 'ubuntu-16.04'
15-
variables:
16-
CIBW_BUILD: 'cp38-*'
17-
steps:
18-
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.8', architecture: x64}}
19-
- template: .azurePipeline/cibuildwheel_steps.yml
20-
- job: linux_37
21-
displayName: Linux + Python3.7
22-
pool:
23-
vmImage: 'ubuntu-16.04'
24-
variables:
25-
CIBW_BUILD: 'cp37-*'
26-
steps:
27-
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.7', architecture: x64}}
28-
- template: .azurePipeline/cibuildwheel_steps.yml
29-
- job: linux_36
30-
displayName: Linux + Python3.6
31-
pool:
32-
vmImage: 'ubuntu-16.04'
33-
variables:
34-
CIBW_BUILD: 'cp36-*'
35-
steps:
36-
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.6', architecture: x64}}
37-
- template: .azurePipeline/cibuildwheel_steps.yml
38-
- job: macos
39-
displayName: MacOS
40-
pool:
41-
vmImage: 'macOS-10.14'
42-
variables:
43-
MACOSX_DEPLOYMENT_TARGET: '10.14'
44-
steps:
45-
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.6', architecture: x64}}
46-
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.7', architecture: x64}}
47-
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.8', architecture: x64}}
48-
- template: .azurePipeline/cibuildwheel_steps.yml
49-
- job: windows
50-
displayName: Windows
51-
pool:
52-
vmImage: 'vs2017-win2016'
53-
steps:
54-
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.6', architecture: x64}}
55-
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.7', architecture: x64}}
56-
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.8', architecture: x64}}
57-
- template: .azurePipeline/cibuildwheel_steps.yml
11+
- job: linux_39
12+
displayName: Linux + Python3.9
13+
pool:
14+
vmImage: 'ubuntu-16.04'
15+
variables:
16+
CIBW_BUILD: 'cp39-*'
17+
steps:
18+
- { task: UsePythonVersion@0, inputs: { versionSpec: '3.9', architecture: x64 } }
19+
- template: .azurePipeline/cibuildwheel_steps.yml
20+
- job: linux_38
21+
displayName: Linux + Python3.8
22+
pool:
23+
vmImage: 'ubuntu-16.04'
24+
variables:
25+
CIBW_BUILD: 'cp38-*'
26+
steps:
27+
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.8', architecture: x64}}
28+
- template: .azurePipeline/cibuildwheel_steps.yml
29+
- job: linux_37
30+
displayName: Linux + Python3.7
31+
pool:
32+
vmImage: 'ubuntu-16.04'
33+
variables:
34+
CIBW_BUILD: 'cp37-*'
35+
steps:
36+
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.7', architecture: x64}}
37+
- template: .azurePipeline/cibuildwheel_steps.yml
38+
- job: linux_36
39+
displayName: Linux + Python3.6
40+
pool:
41+
vmImage: 'ubuntu-16.04'
42+
variables:
43+
CIBW_BUILD: 'cp36-*'
44+
steps:
45+
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.6', architecture: x64}}
46+
- template: .azurePipeline/cibuildwheel_steps.yml
47+
- job: macos
48+
displayName: MacOS
49+
pool:
50+
vmImage: 'macOS-10.14'
51+
variables:
52+
MACOSX_DEPLOYMENT_TARGET: '10.14'
53+
steps:
54+
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.6', architecture: x64}}
55+
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.7', architecture: x64}}
56+
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.8', architecture: x64}}
57+
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.9', architecture: x64}}
58+
- template: .azurePipeline/cibuildwheel_steps.yml
59+
- job: windows
60+
displayName: Windows
61+
pool:
62+
vmImage: 'vs2017-win2016'
63+
steps:
64+
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.6', architecture: x64}}
65+
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.7', architecture: x64}}
66+
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.8', architecture: x64}}
67+
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.9', architecture: x64}}
68+
- template: .azurePipeline/cibuildwheel_steps.yml
5869

5970
- stage: test
6071
displayName: Unit tests
@@ -75,6 +86,9 @@ stages:
7586
Python3.8:
7687
pythonVersion: '3.8'
7788
artifactName: 'wheels.linux38'
89+
Python3.9:
90+
pythonVersion: '3.9'
91+
artifactName: 'wheels.linux39'
7892
steps:
7993
- template: .azurePipeline/unittest_wheel_steps.yml
8094
parameters:
@@ -95,6 +109,10 @@ stages:
95109
pythonVersion: '3.8'
96110
artifactName: 'wheels.macos'
97111
artifactPattern: '**/*cp38*.whl'
112+
Python3.9:
113+
pythonVersion: '3.9'
114+
artifactName: 'wheels.macos'
115+
artifactPattern: '**/*cp39*.whl'
98116
steps:
99117
- template: .azurePipeline/unittest_wheel_steps.yml
100118
parameters:
@@ -120,6 +138,10 @@ stages:
120138
pythonVersion: '3.8'
121139
artifactName: 'wheels.windows'
122140
artifactPattern: '**/*cp38*.whl'
141+
Python3.9:
142+
pythonVersion: '3.9'
143+
artifactName: 'wheels.windows'
144+
artifactPattern: '**/*cp39*.whl'
123145
steps:
124146
- template: .azurePipeline/unittest_wheel_steps.yml
125147
parameters:

0 commit comments

Comments
 (0)