diff options
Diffstat (limited to 'azure-pipelines/template/build_packages.yml')
-rw-r--r-- | azure-pipelines/template/build_packages.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/azure-pipelines/template/build_packages.yml b/azure-pipelines/template/build_packages.yml new file mode 100644 index 0000000..ca99144 --- /dev/null +++ b/azure-pipelines/template/build_packages.yml @@ -0,0 +1,31 @@ +jobs: + - job: BuildPkg + displayName: Build package + + pool: + vmImage: windows-latest + + steps: + - task: UsePythonVersion@0 + displayName: "Use Python 3.7" + inputs: + versionSpec: 3.7 + + - script: python -m pip install -U pip + displayName: Upgrade Pip + + # For faster/better builds of sdists. + - script: python -m pip install wheel + displayName: Install build pre-requisite + + - script: python -m pip install nox + displayName: Install nox + + - script: python -m nox --session build + displayName: Build sdist and wheels + + - task: PublishBuildArtifacts@1 + displayName: "Publish Artifact" + inputs: + pathToPublish: "$(Build.SourcesDirectory)/packages/python/dist" + artifactName: dist |