summaryrefslogtreecommitdiff
path: root/.azure-pipelines/jobs/package.yml
blob: 5ab5be31f9211898308dc93726533c4f728e081f (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 twine 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: python setup.py sdist bdist_wheel
    displayName: Create sdist and wheel

  - bash: twine check dist/*
    displayName: Check distributions with twine

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