summaryrefslogtreecommitdiffstats
path: root/azure-pipelines/template/build_packages.yml
blob: ca99144f9c56ee38e37b228aa1a4b90071ea5319 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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