Sign inSign up

bitbucketpipelines/uv-cli-setup

By bitbucketpipelines

•Updated over 1 year ago

Image
0

1.7K

bitbucketpipelines/uv-cli-setup repository overview

⁠Bitbucket Pipelines Pipe: uv CLI Setup

Atlassian license PRs Welcome

This pipe installs uv⁠, so that it can be used as part of your Pipelines YAML configuration.

⁠YAML Definition

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

⁠Variables

VariableUsage
UV_HOMESpecify a directory where uv will be installed. If not specified, uv will be installed at /opt/uv.
UV_VERSIONSpecify a version of uv to install. If not specified, the latest version will be installed.

⁠Examples

⁠Basic usage
script:
  - pipe: atlassian/uv-cli-setup:0.1.1
  - ./setup-uv.sh
  - uv sync
  - uv run pytest
⁠Specifying a version for uv
script:
  - pipe: atlassian/uv-cli-setup:0.1.1
  - UV_VERSION=0.7.12 ./setup-uv.sh
  - uv install
  - uv run pytest
⁠Configuring uv settings
script:
  - pipe: atlassian/uv-cli-setup:0.1.1
  - UV_HOME=/usr/local ./setup-uv.sh
  - uv install
  - uv run pytest
⁠Caching uv and virtual environment

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

⁠Support

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:

  • the version of the pipe
  • relevant logs and error messages
  • steps to reproduce

⁠Contributions

Contributions to Setup Poetry Pipe are welcome! Please see CONTRIBUTING.md⁠ for details.

⁠License

Copyright (c) 2025 Atlassian US., Inc. Apache 2.0 licensed, see LICENSE⁠ file.

With ❤️ from Atlassian

Tag summary

Content type

Image

Digest

sha256:69522b0af…

Size

5.8 MB

Last updated

over 1 year ago

docker pull bitbucketpipelines/uv-cli-setup