python-poetry
Package main provides functionality for managing Python projects with Poetry.
Installation
dagger install github.com/felipepimentel/daggerverse/python-poetry@v1.10.0Entrypoint
Return Type
PythonPoetry ! Example
dagger -m github.com/felipepimentel/daggerverse/python-poetry@f42c56f237ada75e07d197e095a787f4d71c0a8f call \
func (m *MyModule) Example() *dagger.PythonPoetry {
return dag.
PythonPoetry()
}@function
def example() -> dagger.PythonPoetry:
return (
dag.python_poetry()
)@func()
example(): PythonPoetry {
return dag
.pythonPoetry()
}Types
PythonPoetry 🔗
PythonPoetry handles Python project management with Poetry.
install() 🔗
Install installs project dependencies using Poetry. Parameters: - ctx: The context for the operation - source: The source directory containing the Python project Returns: - *dagger.Directory: The directory with installed dependencies - error: Any error that occurred during installation
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/felipepimentel/daggerverse/python-poetry@f42c56f237ada75e07d197e095a787f4d71c0a8f call \
install --source DIR_PATHfunc (m *MyModule) Example(source *dagger.Directory) *dagger.Directory {
return dag.
PythonPoetry().
Install(source)
}@function
def example(source: dagger.Directory) -> dagger.Directory:
return (
dag.python_poetry()
.install(source)
)@func()
example(source: Directory): Directory {
return dag
.pythonPoetry()
.install(source)
}build() 🔗
Build builds the Python package using Poetry. Parameters: - ctx: The context for the operation - source: The source directory containing the Python project Returns: - *dagger.Directory: The directory containing the built package - error: Any error that occurred during build
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/felipepimentel/daggerverse/python-poetry@f42c56f237ada75e07d197e095a787f4d71c0a8f call \
build --source DIR_PATHfunc (m *MyModule) Example(source *dagger.Directory) *dagger.Directory {
return dag.
PythonPoetry().
Build(source)
}@function
def example(source: dagger.Directory) -> dagger.Directory:
return (
dag.python_poetry()
.build(source)
)@func()
example(source: Directory): Directory {
return dag
.pythonPoetry()
.build(source)
}test() 🔗
Test runs tests using Poetry. Parameters: - ctx: The context for the operation - source: The source directory containing the Python project Returns: - string: The test output - error: Any error that occurred during testing
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/felipepimentel/daggerverse/python-poetry@f42c56f237ada75e07d197e095a787f4d71c0a8f call \
test --source DIR_PATHfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string {
return dag.
PythonPoetry().
Test(ctx, source)
}@function
async def example(source: dagger.Directory) -> str:
return await (
dag.python_poetry()
.test(source)
)@func()
async example(source: Directory): Promise<string> {
return dag
.pythonPoetry()
.test(source)
}lock() 🔗
Lock updates the poetry.lock file. Parameters: - ctx: The context for the operation - source: The source directory containing the Python project Returns: - *dagger.Directory: The directory containing the updated lock file - error: Any error that occurred during lock update
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/felipepimentel/daggerverse/python-poetry@f42c56f237ada75e07d197e095a787f4d71c0a8f call \
lock --source DIR_PATHfunc (m *MyModule) Example(source *dagger.Directory) *dagger.Directory {
return dag.
PythonPoetry().
Lock(source)
}@function
def example(source: dagger.Directory) -> dagger.Directory:
return (
dag.python_poetry()
.lock(source)
)@func()
example(source: Directory): Directory {
return dag
.pythonPoetry()
.lock(source)
}update() 🔗
Update updates dependencies to their latest versions. Parameters: - ctx: The context for the operation - source: The source directory containing the Python project Returns: - *dagger.Directory: The directory with updated dependencies - error: Any error that occurred during update
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/felipepimentel/daggerverse/python-poetry@f42c56f237ada75e07d197e095a787f4d71c0a8f call \
update --source DIR_PATHfunc (m *MyModule) Example(source *dagger.Directory) *dagger.Directory {
return dag.
PythonPoetry().
Update(source)
}@function
def example(source: dagger.Directory) -> dagger.Directory:
return (
dag.python_poetry()
.update(source)
)@func()
example(source: Directory): Directory {
return dag
.pythonPoetry()
.update(source)
}