File size: 1,628 Bytes
fc0f7bd | 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 41 42 43 44 45 46 47 48 49 | # Step templates to create the wheels and file specifying the current version
# Note that this uses the DEV_VERSION variable
parameters:
pyVer: 3.6
targetType: ''
versionFilename: ''
packageArtifactName: ''
versionArtifactName: ''
freezeArtifactStem:
freezeFile:
steps:
- task: UsePythonVersion@0
displayName: 'Use Python ${{parameters.pyVer}}'
inputs:
versionSpec: ${{parameters.pyVer}}
addToPath: true
- template: python-infra-upgrade-steps-template.yml
- script: pip install setuptools wheel
displayName: 'Install setuptools'
- script: pip install -r requirements.txt
displayName: "Install fairlearn requirements"
- template: pip-freeze-to-artifact-steps-template.yml
parameters:
freezeArtifact: '${{parameters.freezeArtifactStem}}CreateWheel'
freezeFile: ${{parameters.FreezeFile}}
# TODO: add --assert-no-changes to validate that no changes happened to widget files (Issue #270)
- script: python ./scripts/build_widget.py --yarn-path /usr/bin/yarn
displayName: 'Build widget'
- script: python ./scripts/build_wheels.py --target-type ${{parameters.targetType}} --version-filename ${{parameters.versionFilename}} --dev-version $(DEV_VERSION)
displayName: 'Build wheels'
- task: PublishPipelineArtifact@1
displayName: "Publish wheels"
inputs:
path: $(System.DefaultWorkingDirectory)/dist
artifact: '${{parameters.packageArtifactName}}'
- task: PublishPipelineArtifact@1
displayName: "Publish version information file"
inputs:
path: '$(System.DefaultWorkingDirectory)/${{parameters.versionFilename}}'
artifact: '${{parameters.versionArtifactName}}' |