Dagger
Search

pypi

It uses Poetry for package publishing.

Installation

dagger install github.com/felipepimentel/daggerverse/libraries/pypi@v0.0.0

Entrypoint

Return Type
Pypi !
Example
dagger -m github.com/felipepimentel/daggerverse/libraries/pypi@08f1a24d050d53e3be53f69eb42a49f58db44856 call \
func (m *myModule) example() *Pypi  {
	return dag.
			Pypi()
}
@function
def example() -> dag.Pypi:
	return (
		dag.pypi()
	)
@func()
example(): Pypi {
	return dag
		.pypi()
}

Types

Pypi 🔗

Pypi handles publishing Python packages to PyPI.

publish() 🔗

Publish publishes a Python package to PyPI using Poetry. The process includes: 1. Setting up a Python container with Poetry 2. Building the package 3. Publishing to PyPI

Parameters: - ctx: The context for the operation - source: The source directory containing the Python project - token: The PyPI authentication token

Returns: - error: Any error that occurred during the publishing process

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
tokenSecret !-No description provided
Example
dagger -m github.com/felipepimentel/daggerverse/libraries/pypi@08f1a24d050d53e3be53f69eb42a49f58db44856 call \
 publish --source DIR_PATH --token env:MYSECRET
func (m *myModule) example(ctx context.Context, source *Directory, token *Secret)   {
	return dag.
			Pypi().
			Publish(ctx, source, token)
}
@function
async def example(source: dagger.Directory, token: dagger.Secret) -> None:
	return await (
		dag.pypi()
		.publish(source, token)
	)
@func()
async example(source: Directory, token: Secret): Promise<void> {
	return dag
		.pypi()
		.publish(source, token)
}