I have tried a few different ways to install poetry:
Here, with pipx:
image: python:3.9This fails with
pipelines:
default:
- step:
caches:
- pip
script:
- python3 -m pip install --user pipx
- python3 -m pipx ensurepath
- pipx install poetry
- poetry install
- poetry run pytest -v tests/* --junitxml=test-reports/report.xml
bash: pipx: command not found
image: python:3.9
pipelines:
default:
- step:
script:
- curl -sSL https://install.python-poetry.org | python3 -
- export PATH="$HOME/.poetry/bin:$PATH"
- poetry install
You can also setup Poetry via a pipe now:
script:
- pipe: atlassian/poetry-cli-setup:0.2.0
- ./setup-poetry.sh
- poetry install
See here for more details: https://bitbucket.org/product/features/pipelines/integrations?search=poetry&p=atlassian/poetry-cli-setup
Hi @Scott Fay,
Can you try the following commands? I was able to install poetry using these commands.
- curl -sSL https://install.python-poetry.org | python3 -
- export PATH="$HOME/.local/bin:$PATH"
- poetry --version
Bitbucket Pipelines builds run in Docker containers with Linux platform, so I used the instructions detailed below for Linux:
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.