This pipe installs uv, so that it can be used as part of your Pipelines YAML configuration.
Add the following snippet to the script section of your bitbucket-pipelines.yml file:
script:
- pipe: atlassian/uv-cli-setup:0.1.1
- ./setup-uv.sh
| Variable | Usage |
|---|---|
UV_HOME | Specify a directory where uv will be installed. If not specified, uv will be installed at /opt/uv. |
UV_VERSION | Specify a version of uv to install. If not specified, the latest version will be installed. |
script:
- pipe: atlassian/uv-cli-setup:0.1.1
- ./setup-uv.sh
- uv sync
- uv run pytest
script:
- pipe: atlassian/uv-cli-setup:0.1.1
- UV_VERSION=0.7.12 ./setup-uv.sh
- uv install
- uv run pytest
script:
- pipe: atlassian/uv-cli-setup:0.1.1
- UV_HOME=/usr/local ./setup-uv.sh
- uv install
- uv run pytest
You can cache the uv CLI and the virtual environment to speed up your builds.
definitions:
caches:
# Define the cache for the uv CLI. uv defaults to be installed at /opt/uv so we cache that directory.
uv-cli-cache:
key:
files:
- bitbucket-pipelines.yml
path: /opt/uv
# Define the cache for the virtual environment.
uv-venv-cache:
key:
files:
- uv.lock
path: .venv
pipelines:
default:
- step:
name: Setup uv
caches:
- uv-cli-cache
- uv-venv-cache
script:
- pipe: atlassian/uv-cli-setup:0.1.1
- ./setup-uv.sh
- uv install
If you'd like help with this pipe, or you have an issue or feature request, let us know on the Atlassian Community.
If you're reporting an issue, please include:
Contributions to Setup Poetry Pipe are welcome! Please see CONTRIBUTING.md for details.
Copyright (c) 2025 Atlassian US., Inc. Apache 2.0 licensed, see LICENSE file.
Content type
Image
Digest
sha256:69522b0af…
Size
5.8 MB
Last updated
over 1 year ago
docker pull bitbucketpipelines/uv-cli-setup