summaryrefslogtreecommitdiff
path: root/.azure-pipelines/jobs/package.yml
blob: 510fa3e4d6859c965b87436c8134fa3de3fee76f (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
32
33
34
35
36
37
parameters:
  vmImage:

jobs:
- job: Package
  dependsOn:
    - Test_Primary
    - Test_Secondary
  pool:
    vmImage: ${{ parameters.vmImage }}

  steps:
  - task: UsePythonVersion@0
    displayName: Use Python 3 latest
    inputs:
      versionSpec: '3'

  - bash: pip install tox nox setuptools wheel
    displayName: Install dependencies

  - bash: nox -s generate_authors
    displayName: Generate AUTHORS.txt

  - bash: nox -s generate_news --yes
    displayName: Generate NEWS.rst

  - bash: tox -e packaging
    displayName: Run Tox packaging

  - bash: python setup.py sdist bdist_wheel
    displayName: Create sdist and wheel

  - task: PublishBuildArtifacts@1
    displayName: 'Publish Artifact: dist'
    inputs:
      pathtoPublish: dist
      artifactName: dist