Python operations with uv for pipelines.
164
Pipe for installing, checking and building Python projects with uv on CI/CD.
pipe-python [GLOBAL FLAGS] [COMMAND] [FLAGS]
CLI
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$LOG_LEVEL | Define the log level for the application. | stringenum("panic", "fatal", "warn", "info", "debug", "trace") | "info" |
$ENV_FILE | Environment files to inject. | string[] |
pipe-python installInstall the locked dependencies of the project.
pipe-python install [FLAGS]
Install
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$PYTHON_INSTALL_LOCKED | Fail when the lockfile is out of date with the project. Otherwise the lockfile is installed as it is. | bool | true |
$PYTHON_INSTALL_ARGS | Arguments to append to the install command. | string |
Setup
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$PYTHON_CWD | Working directory of the uv project. | string | "." |
$PYTHON_CACHE | Cache directory for uv. Leave empty to use the environment defaults. | string | "./.uv/" |
pipe-python lintRun the lint commands inside the installed environment.
pipe-python lint [FLAGS]
Lint
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$PYTHON_LINT_COMMANDS | Commands to lint with, each run in order inside the installed environment. | stringformat(yaml([]string)) | "[\"ruff format --check .\", \"ruff check .\", \"ty check .\"]" |
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$PYTHON_CWD | Working directory of the uv project. | string | "." |
$PYTHON_CACHE | Cache directory for uv. Leave empty to use the environment defaults. | string | "./.uv/" |
pipe-python testRun the test commands inside the installed environment.
pipe-python test [FLAGS]
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$PYTHON_CWD | Working directory of the uv project. | string | "." |
$PYTHON_CACHE | Cache directory for uv. Leave empty to use the environment defaults. | string | "./.uv/" |
Test
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$PYTHON_TEST_COMMANDS | Commands to test with, each run in order inside the installed environment. | stringformat(yaml([]string)) | "[\"pytest --junitxml=junit.xml\"]" |
pipe-python buildBuild the source distribution and the wheel of the project.
pipe-python build [FLAGS]
Build
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$PYTHON_BUILD_OUTPUT | Directory the distributions are written to, relative to the working directory. | string | "dist" |
$PYTHON_BUILD_ARGS | Arguments to append to the build command. | string |
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$PYTHON_CWD | Working directory of the uv project. | string | "." |
$PYTHON_CACHE | Cache directory for uv. Leave empty to use the environment defaults. | string | "./.uv/" |
pipe-python runRun a command inside the installed environment.
pipe-python run [FLAGS] Command to run inside the installed environment.
| Argument | Usage | Type | Values |
|---|---|---|---|
arg* | Command to run inside the installed environment. | string[] | 1..* |
* required
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$PYTHON_CWD | Working directory of the uv project. | string | "." |
$PYTHON_CACHE | Cache directory for uv. Leave empty to use the environment defaults. | string | "./.uv/" |
Content type
Image
Digest
sha256:4d2dbee38…
Size
46.5 MB
Last updated
about 14 hours ago
docker pull cenk1cenk2/pipe-python