Skip to content

Add uv #4563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add uv #4563

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions sites/platform/src/languages/python/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,19 @@ hooks:
```
{{< /codetabs >}}

## UV

[uv](https://docs.astral.sh/uv/) is an extremely fast Python package and project
manager, written in Rust.

```yaml {configFile="app"}
{{< snippet name="myapp" config="app" root="myapp" >}}
type: 'python:{{% latest "python" %}}'
dependencies:
python3:
uv: "*"
```

## Poetry

[Poetry](https://python-poetry.org/docs/) is a tool for dependency management and packaging in Python.
Expand Down
47 changes: 31 additions & 16 deletions sites/upsun/src/languages/python/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,21 @@ hooks:
```
{{< /codetabs >}}

## UV

[uv](https://docs.astral.sh/uv/) is an extremely fast Python package and project
manager, written in Rust.

```yaml {configFile="app"}
applications:
# The app's name, which must be unique within the project.
myapp:
type: 'python:{{% latest "python" %}}'
dependencies:
python3:
uv: "*"
```

## Poetry

[Poetry](https://python-poetry.org/docs/) is a tool for dependency management and packaging in Python.
Expand Down Expand Up @@ -183,22 +198,22 @@ applications:
# The location of the application's code.
source:
root: "myapp"
type: 'python:{{% latest "python" %}}'
dependencies:
python3:
poetry: '*'
variables:
env:
POETRY_VIRTUALENVS_IN_PROJECT: true
POETRY_VIRTUALENVS_CREATE: true
hooks:
build: |
# Fail the build if any errors occur
set -eu
# Download the latest version of pip
python{{% latest "python" %}} -m pip install --upgrade pip
# Install dependencies
poetry install
type: 'python:{{% latest "python" %}}'
dependencies:
python3:
poetry: '*'
variables:
env:
POETRY_VIRTUALENVS_IN_PROJECT: true
POETRY_VIRTUALENVS_CREATE: true
hooks:
build: |
# Fail the build if any errors occur
set -eu
# Download the latest version of pip
python{{% latest "python" %}} -m pip install --upgrade pip
# Install dependencies
poetry install
```
<--->
+++
Expand Down
Loading