Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P72709
python-builder-uv.feature
Active
Public
Actions
Authored by
gkyziridis
on Jan 29 2025, 8:56 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Tags
Release Pipeline (Blubber)
Referenced Files
F58306861: python-builder-uv.feature
Jan 29 2025, 8:56 AM
2025-01-29 08:56:12 (UTC+0)
Subscribers
gkyziridis
Feature:
Python builder
Blubber supports a specialized Python builder for easy and consistent
dependency installation and setup for Python projects.
Background:
Given
"
examples/hello-world-python
" as a working directory
@set3
Scenario:
Installing Python application dependencies via Poetry
Given
this "
blubber.yaml
"
"""
version: v4
variants:
hello:
base: python:3.10-bullseye
builders:
- python:
version: python3
poetry:
version: ==1.5.1
requirements: [pyproject.toml, poetry.lock]
copies: [local]
entrypoint: [poetry, run, python3, hello.py]
"""
When
you build and run the "
hello
" variant
Then
the entrypoint will have run successfully
@set5
Scenario:
Installing Python application dependencies via Uv
Given
this "
blubber.yaml
"
"""
version: v4
variants:
hello_uv:
base: python:3.10-bullseye
builders:
- python:
version: python3
uv:
version: ==0.5.23
requirements: [pyproject.toml, uv.lock]
copies: [local]
entrypoint: [uv, run, python3, hello.py]
"""
When
you build and run the "
hello
" variant
Then
the entrypoint will have run successfully
Event Timeline
gkyziridis
created this paste.
Jan 29 2025, 8:56 AM
2025-01-29 08:56:12 (UTC+0)
Log In to Comment