From 63778545453fd13b6ff7fc4621e8c238ebebcf16 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Sat, 6 Apr 2019 17:34:36 +0100 Subject: [PATCH] Add azure-template.yml for more compact config --- azure-template.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ setup.cfg | 4 ++++ 2 files changed, 48 insertions(+) create mode 100644 azure-template.yml diff --git a/azure-template.yml b/azure-template.yml new file mode 100644 index 00000000..620126a0 --- /dev/null +++ b/azure-template.yml @@ -0,0 +1,44 @@ +# Template config to build a Python package. You can either copy/paste this +# into your azure-pipelines.yml or reference it using the `template` syntax. +# See: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/templates?view=azure-devops#using-other-repositories + +jobs: +- job: linux + pool: {vmImage: 'Ubuntu-16.04'} + steps: + - task: UsePythonVersion@0 + - bash: | + python -m pip install --upgrade pip + pip install cibuildwheel==0.10.1 + cibuildwheel --output-dir wheelhouse . + - task: PublishBuildArtifacts@1 + inputs: {pathtoPublish: 'wheelhouse'} +- job: macos + pool: {vmImage: 'macOS-10.13'} + steps: + - task: UsePythonVersion@0 + - bash: | + python -m pip install --upgrade pip + pip install cibuildwheel==0.10.1 + cibuildwheel --output-dir wheelhouse . + - task: PublishBuildArtifacts@1 + inputs: {pathtoPublish: 'wheelhouse'} +- job: windows + pool: {vmImage: 'vs2017-win2016'} + steps: + - {task: UsePythonVersion@0, inputs: {versionSpec: '2.7', architecture: x86}} + - {task: UsePythonVersion@0, inputs: {versionSpec: '2.7', architecture: x64}} + - {task: UsePythonVersion@0, inputs: {versionSpec: '3.5', architecture: x86}} + - {task: UsePythonVersion@0, inputs: {versionSpec: '3.5', architecture: x64}} + - {task: UsePythonVersion@0, inputs: {versionSpec: '3.6', architecture: x86}} + - {task: UsePythonVersion@0, inputs: {versionSpec: '3.6', architecture: x64}} + - {task: UsePythonVersion@0, inputs: {versionSpec: '3.7', architecture: x86}} + - {task: UsePythonVersion@0, inputs: {versionSpec: '3.7', architecture: x64}} + - script: choco install vcpython27 -f -y + displayName: Install Visual C++ for Python 2.7 + - bash: | + python -m pip install --upgrade pip + pip install cibuildwheel==0.10.1 + cibuildwheel --output-dir wheelhouse . + - task: PublishBuildArtifacts@1 + inputs: {pathtoPublish: 'wheelhouse'} diff --git a/setup.cfg b/setup.cfg index 80361271..4ae17bd1 100644 --- a/setup.cfg +++ b/setup.cfg @@ -12,3 +12,7 @@ message = Bump version search = cibuildwheel=={current_version} replace = cibuildwheel=={new_version} +[bumpversion:file:azure-template.yml] +search = cibuildwheel=={current_version} +replace = cibuildwheel=={new_version} +