Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e28bccc

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
1 parent 5925923 commit e28bccc

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

azure-pipelines.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
variables:
2-
# It seems pybind11 is already installed in CIBW docker image
3-
#CIBW_BEFORE_BUILD: pip install pybind11==2.4.3
2+
CIBW_BEFORE_BUILD: "pip install -U numpy"
3+
CIBW_BEFORE_BUILD_MACOS: "pip install -U pip setuptools"
4+
CIBW_BEFORE_BUILD_LINUX: "pip install -U pip setuptools"
45
#CIBW_TEST_COMMAND: TODO "python -c \"import tinyobjloader; tinyobjloader.test()\""
56
CIBW_BUILD_VERBOSITY: "2"
67
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
@@ -30,7 +31,7 @@ jobs:
3031
- task: UsePythonVersion@0
3132
- bash: |
3233
python -m pip install --upgrade pip
33-
pip install cibuildwheel==1.1.0
34+
pip install cibuildwheel twine
3435
# Make the header files available to the build.
3536
cp *.h python
3637
cd python
@@ -49,7 +50,7 @@ jobs:
4950
- task: UsePythonVersion@0
5051
- bash: |
5152
python -m pip install --upgrade pip
52-
pip install cibuildwheel==1.1.0
53+
pip install cibuildwheel
5354
# Make the header files available to the build.
5455
cp *.h python
5556
cd python
@@ -67,7 +68,7 @@ jobs:
6768
displayName: Install Visual C++ for Python 2.7
6869
- bash: |
6970
python -m pip install --upgrade pip
70-
pip install cibuildwheel==1.1.0
71+
pip install cibuildwheel
7172
# Make the header files available to the build.
7273
cp *.h python
7374
cd python
@@ -102,7 +103,12 @@ jobs:
102103
TWINE_PASSWORD: $(pypiToken2)
103104
104105
trigger:
105-
- master
106+
branches:
107+
include:
108+
- '*'
109+
tags:
110+
include:
111+
- 'v*'
106112

107113
pr:
108114
branches:

0 commit comments

Comments
 (0)