2023-03-28 17:33:34 +01:00
|
|
|
trigger:
|
|
|
|
|
- main
|
|
|
|
|
|
2023-06-30 10:24:59 +01:00
|
|
|
pool:
|
|
|
|
|
vmImage: ubuntu-latest
|
2023-03-28 17:33:34 +01:00
|
|
|
strategy:
|
|
|
|
|
matrix:
|
2023-06-30 10:24:59 +01:00
|
|
|
Python310:
|
2023-03-28 17:33:34 +01:00
|
|
|
python.version: '3.10'
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- task: UsePythonVersion@0
|
|
|
|
|
inputs:
|
|
|
|
|
versionSpec: '$(python.version)'
|
|
|
|
|
displayName: 'Use Python $(python.version)'
|
|
|
|
|
|
|
|
|
|
- script: |
|
2023-05-25 10:52:29 +01:00
|
|
|
python -m pip install --upgrade pip==23.0.1
|
|
|
|
|
pip install wheel==0.38.4 --upgrade
|
|
|
|
|
pip install setuptools==66 --upgrade
|
|
|
|
|
pip install build==0.10.0
|
2023-03-28 17:33:34 +01:00
|
|
|
pip install twine
|
|
|
|
|
pip install keyring
|
|
|
|
|
pip install artifacts-keyring
|
|
|
|
|
displayName: 'Install build dependencies'
|
|
|
|
|
|
|
|
|
|
- script: |
|
2023-05-25 10:52:29 +01:00
|
|
|
python -m build
|
2023-03-28 17:33:34 +01:00
|
|
|
displayName: 'Build PrimAITE sdist and wheel'
|
|
|
|
|
|
|
|
|
|
- task: TwineAuthenticate@1
|
|
|
|
|
displayName: 'Twine Authenticate'
|
|
|
|
|
inputs:
|
|
|
|
|
artifactFeed: PrimAITE/PrimAITE
|
|
|
|
|
|
|
|
|
|
- script: |
|
2023-05-25 10:52:29 +01:00
|
|
|
python -m twine upload --verbose -r PrimAITE --config-file $(PYPIRC_PATH) dist/*.whl
|
2023-03-28 17:33:34 +01:00
|
|
|
displayName: 'Artifact Upload'
|