poetry
Package main provides functionality for managing Python projects with Poetry.
Installation
dagger install github.com/felipepimentel/daggerverse/libraries/poetry@v0.0.0
Entrypoint
Return Type
Poetry !
Example
dagger -m github.com/felipepimentel/daggerverse/libraries/poetry@08f1a24d050d53e3be53f69eb42a49f58db44856 call \
func (m *myModule) example() *Poetry {
return dag.
Poetry()
}
@function
def example() -> dag.Poetry:
return (
dag.poetry()
)
@func()
example(): Poetry {
return dag
.poetry()
}
Types
Poetry 🔗
Poetry 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/libraries/poetry@08f1a24d050d53e3be53f69eb42a49f58db44856 call \
install --source DIR_PATH
func (m *myModule) example(source *Directory) *Directory {
return dag.
Poetry().
Install(source)
}
@function
def example(source: dagger.Directory) -> dagger.Directory:
return (
dag.poetry()
.install(source)
)
@func()
example(source: Directory): Directory {
return dag
.poetry()
.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/libraries/poetry@08f1a24d050d53e3be53f69eb42a49f58db44856 call \
build --source DIR_PATH
func (m *myModule) example(source *Directory) *Directory {
return dag.
Poetry().
Build(source)
}
@function
def example(source: dagger.Directory) -> dagger.Directory:
return (
dag.poetry()
.build(source)
)
@func()
example(source: Directory): Directory {
return dag
.poetry()
.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/libraries/poetry@08f1a24d050d53e3be53f69eb42a49f58db44856 call \
test --source DIR_PATH
func (m *myModule) example(ctx context.Context, source *Directory) string {
return dag.
Poetry().
Test(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
return await (
dag.poetry()
.test(source)
)
@func()
async example(source: Directory): Promise<string> {
return dag
.poetry()
.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/libraries/poetry@08f1a24d050d53e3be53f69eb42a49f58db44856 call \
lock --source DIR_PATH
func (m *myModule) example(source *Directory) *Directory {
return dag.
Poetry().
Lock(source)
}
@function
def example(source: dagger.Directory) -> dagger.Directory:
return (
dag.poetry()
.lock(source)
)
@func()
example(source: Directory): Directory {
return dag
.poetry()
.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/libraries/poetry@08f1a24d050d53e3be53f69eb42a49f58db44856 call \
update --source DIR_PATH
func (m *myModule) example(source *Directory) *Directory {
return dag.
Poetry().
Update(source)
}
@function
def example(source: dagger.Directory) -> dagger.Directory:
return (
dag.poetry()
.update(source)
)
@func()
example(source: Directory): Directory {
return dag
.poetry()
.update(source)
}