blob: ed885d8ef431f460b59d6649cbad5e1e883c647e (
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
38
39
40
|
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: tox -e packaging
displayName: Run Tox packaging
- 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
|