1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
pip/.azure-pipelines/jobs/package.yml
2018-11-21 15:48:31 -05:00

38 lines
798 B
YAML

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 setuptools tox wheel invoke towncrier requests
displayName: Install dependencies
- bash: invoke generate.authors
displayName: Generate AUTHORS.txt
- bash: invoke 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