Skip to content

Instantly share code, notes, and snippets.

@FilBot3
Created February 18, 2022 14:04
Show Gist options
  • Select an option

  • Save FilBot3/34c15f2bab11085eb195306c74c6d3cf to your computer and use it in GitHub Desktop.

Select an option

Save FilBot3/34c15f2bab11085eb195306c74c6d3cf to your computer and use it in GitHub Desktop.
Install and use Python Poetry in an Azure DevOps Pipeline
---
trigger: none
pool:
vmImage: ubuntu-latest
stages:
- stage: BuildAndTest
displayName: Build and Test
jobs:
- job: BuildWithPoetry
displayName: Build with Poetry
workspace:
clean: all
steps:
- task: Bash@3
displayName: Install Poetry
inputs:
targetType: inline
script: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python -
env:
POETRY_HOME: '/opt/poetry'
- task: Bash@3
displayName: Get Poetry Version
inputs:
targetType: inline
script: |
/opt/poetry/bin/poetry --version
/opt/poetry/bin/poetry --help
export PATH="$PATH:/opt/poetry/bin"
poetry --version
poetry --help
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment