python-package
Closed Dagger contracts for auditable Python package candidates.
Installation
dagger install github.com/hseshadr/ci/modules/python-package@95c72573fc11ea6732abb7f7fe8b59c7d245d927Entrypoint
Return Type
PythonPackage ! Example
dagger -m github.com/hseshadr/ci/modules/python-package@95c72573fc11ea6732abb7f7fe8b59c7d245d927 call \
func (m *MyModule) Example() *dagger.PythonPackage {
return dag.
Pythonpackage()
}@function
def example() -> dagger.PythonPackage:
return (
dag.python_package()
)@func()
example(): PythonPackage {
return dag
.pythonPackage()
}Types
PythonPackageBuiltPythonPackage 🔗
A validated unprivileged build result.
directory() 🔗
Return Type
Directory ! Example
dagger -m github.com/hseshadr/ci/modules/python-package@95c72573fc11ea6732abb7f7fe8b59c7d245d927 call \
build --source DIR_PATH --repository string --commit-sha string --project-name string \
directoryfunc (m *MyModule) Example(source *dagger.Directory, repository string, commitSha string, projectName string) *dagger.Directory {
return dag.
Pythonpackage().
Build(source, repository, commitSha, projectName).
Directory()
}@function
def example(source: dagger.Directory, repository: str, commitsha: str, projectname: str) -> dagger.Directory:
return (
dag.python_package()
.build(source, repository, commitsha, projectname)
.directory()
)@func()
example(source: Directory, repository: string, commitSha: string, projectName: string): Directory {
return dag
.pythonPackage()
.build(source, repository, commitSha, projectName)
.directory()
}project() 🔗
Return Type
String ! Example
dagger -m github.com/hseshadr/ci/modules/python-package@95c72573fc11ea6732abb7f7fe8b59c7d245d927 call \
build --source DIR_PATH --repository string --commit-sha string --project-name string \
projectfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory, repository string, commitSha string, projectName string) string {
return dag.
Pythonpackage().
Build(source, repository, commitSha, projectName).
Project(ctx)
}@function
async def example(source: dagger.Directory, repository: str, commitsha: str, projectname: str) -> str:
return await (
dag.python_package()
.build(source, repository, commitsha, projectname)
.project()
)@func()
async example(source: Directory, repository: string, commitSha: string, projectName: string): Promise<string> {
return dag
.pythonPackage()
.build(source, repository, commitSha, projectName)
.project()
}version() 🔗
Return Type
String ! Example
dagger -m github.com/hseshadr/ci/modules/python-package@95c72573fc11ea6732abb7f7fe8b59c7d245d927 call \
build --source DIR_PATH --repository string --commit-sha string --project-name string \
versionfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory, repository string, commitSha string, projectName string) string {
return dag.
Pythonpackage().
Build(source, repository, commitSha, projectName).
Version(ctx)
}@function
async def example(source: dagger.Directory, repository: str, commitsha: str, projectname: str) -> str:
return await (
dag.python_package()
.build(source, repository, commitsha, projectname)
.version()
)@func()
async example(source: Directory, repository: string, commitSha: string, projectName: string): Promise<string> {
return dag
.pythonPackage()
.build(source, repository, commitSha, projectName)
.version()
}wheelFilename() 🔗
Return Type
String ! Example
dagger -m github.com/hseshadr/ci/modules/python-package@95c72573fc11ea6732abb7f7fe8b59c7d245d927 call \
build --source DIR_PATH --repository string --commit-sha string --project-name string \
wheel-filenamefunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory, repository string, commitSha string, projectName string) string {
return dag.
Pythonpackage().
Build(source, repository, commitSha, projectName).
Wheelfilename(ctx)
}@function
async def example(source: dagger.Directory, repository: str, commitsha: str, projectname: str) -> str:
return await (
dag.python_package()
.build(source, repository, commitsha, projectname)
.wheelfilename()
)@func()
async example(source: Directory, repository: string, commitSha: string, projectName: string): Promise<string> {
return dag
.pythonPackage()
.build(source, repository, commitSha, projectName)
.wheelFilename()
}wheelSha256() 🔗
Return Type
String ! Example
dagger -m github.com/hseshadr/ci/modules/python-package@95c72573fc11ea6732abb7f7fe8b59c7d245d927 call \
build --source DIR_PATH --repository string --commit-sha string --project-name string \
wheel-sha-2-5-6func (m *MyModule) Example(ctx context.Context, source *dagger.Directory, repository string, commitSha string, projectName string) string {
return dag.
Pythonpackage().
Build(source, repository, commitSha, projectName).
Wheelsha256(ctx)
}@function
async def example(source: dagger.Directory, repository: str, commitsha: str, projectname: str) -> str:
return await (
dag.python_package()
.build(source, repository, commitsha, projectname)
.wheelsha256()
)@func()
async example(source: Directory, repository: string, commitSha: string, projectName: string): Promise<string> {
return dag
.pythonPackage()
.build(source, repository, commitSha, projectName)
.wheelSha256()
}sdistFilename() 🔗
Return Type
String ! Example
dagger -m github.com/hseshadr/ci/modules/python-package@95c72573fc11ea6732abb7f7fe8b59c7d245d927 call \
build --source DIR_PATH --repository string --commit-sha string --project-name string \
sdist-filenamefunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory, repository string, commitSha string, projectName string) string {
return dag.
Pythonpackage().
Build(source, repository, commitSha, projectName).
Sdistfilename(ctx)
}@function
async def example(source: dagger.Directory, repository: str, commitsha: str, projectname: str) -> str:
return await (
dag.python_package()
.build(source, repository, commitsha, projectname)
.sdistfilename()
)@func()
async example(source: Directory, repository: string, commitSha: string, projectName: string): Promise<string> {
return dag
.pythonPackage()
.build(source, repository, commitSha, projectName)
.sdistFilename()
}sdistSha256() 🔗
Return Type
String ! Example
dagger -m github.com/hseshadr/ci/modules/python-package@95c72573fc11ea6732abb7f7fe8b59c7d245d927 call \
build --source DIR_PATH --repository string --commit-sha string --project-name string \
sdist-sha-2-5-6func (m *MyModule) Example(ctx context.Context, source *dagger.Directory, repository string, commitSha string, projectName string) string {
return dag.
Pythonpackage().
Build(source, repository, commitSha, projectName).
Sdistsha256(ctx)
}@function
async def example(source: dagger.Directory, repository: str, commitsha: str, projectname: str) -> str:
return await (
dag.python_package()
.build(source, repository, commitsha, projectname)
.sdistsha256()
)@func()
async example(source: Directory, repository: string, commitSha: string, projectName: string): Promise<string> {
return dag
.pythonPackage()
.build(source, repository, commitSha, projectName)
.sdistSha256()
}PythonPackageCandidate 🔗
A Foundation envelope safe for a separate source-free publisher job.
envelope() 🔗
Return Type
Directory ! Example
dagger -m github.com/hseshadr/ci/modules/python-package@95c72573fc11ea6732abb7f7fe8b59c7d245d927 call \
verify-candidate --envelope DIR_PATH --repository string --commit-sha string --project-name string --central-module-sha string --workflow-run-id string --run-attempt integer \
envelopefunc (m *MyModule) Example(envelope *dagger.Directory, repository string, commitSha string, projectName string, centralModuleSha string, workflowRunId string, runAttempt int) *dagger.Directory {
return dag.
Pythonpackage().
Verifycandidate(envelope, repository, commitSha, projectName, centralModuleSha, workflowRunId, runAttempt).
Envelope()
}@function
def example(envelope: dagger.Directory, repository: str, commitsha: str, projectname: str, centralmodulesha: str, workflowrunid: str, runattempt: int) -> dagger.Directory:
return (
dag.python_package()
.verifycandidate(envelope, repository, commitsha, projectname, centralmodulesha, workflowrunid, runattempt)
.envelope()
)@func()
example(envelope: Directory, repository: string, commitSha: string, projectName: string, centralModuleSha: string, workflowRunId: string, runAttempt: number): Directory {
return dag
.pythonPackage()
.verifyCandidate(envelope, repository, commitSha, projectName, centralModuleSha, workflowRunId, runAttempt)
.envelope()
}repository() 🔗
Return Type
String ! Example
dagger -m github.com/hseshadr/ci/modules/python-package@95c72573fc11ea6732abb7f7fe8b59c7d245d927 call \
verify-candidate --envelope DIR_PATH --repository string --commit-sha string --project-name string --central-module-sha string --workflow-run-id string --run-attempt integer \
repositoryfunc (m *MyModule) Example(ctx context.Context, envelope *dagger.Directory, repository string, commitSha string, projectName string, centralModuleSha string, workflowRunId string, runAttempt int) string {
return dag.
Pythonpackage().
Verifycandidate(envelope, repository, commitSha, projectName, centralModuleSha, workflowRunId, runAttempt).
Repository(ctx)
}@function
async def example(envelope: dagger.Directory, repository: str, commitsha: str, projectname: str, centralmodulesha: str, workflowrunid: str, runattempt: int) -> str:
return await (
dag.python_package()
.verifycandidate(envelope, repository, commitsha, projectname, centralmodulesha, workflowrunid, runattempt)
.repository()
)@func()
async example(envelope: Directory, repository: string, commitSha: string, projectName: string, centralModuleSha: string, workflowRunId: string, runAttempt: number): Promise<string> {
return dag
.pythonPackage()
.verifyCandidate(envelope, repository, commitSha, projectName, centralModuleSha, workflowRunId, runAttempt)
.repository()
}commitSha() 🔗
Return Type
String ! Example
dagger -m github.com/hseshadr/ci/modules/python-package@95c72573fc11ea6732abb7f7fe8b59c7d245d927 call \
verify-candidate --envelope DIR_PATH --repository string --commit-sha string --project-name string --central-module-sha string --workflow-run-id string --run-attempt integer \
commit-shafunc (m *MyModule) Example(ctx context.Context, envelope *dagger.Directory, repository string, commitSha string, projectName string, centralModuleSha string, workflowRunId string, runAttempt int) string {
return dag.
Pythonpackage().
Verifycandidate(envelope, repository, commitSha, projectName, centralModuleSha, workflowRunId, runAttempt).
Commitsha(ctx)
}@function
async def example(envelope: dagger.Directory, repository: str, commitsha: str, projectname: str, centralmodulesha: str, workflowrunid: str, runattempt: int) -> str:
return await (
dag.python_package()
.verifycandidate(envelope, repository, commitsha, projectname, centralmodulesha, workflowrunid, runattempt)
.commitsha()
)@func()
async example(envelope: Directory, repository: string, commitSha: string, projectName: string, centralModuleSha: string, workflowRunId: string, runAttempt: number): Promise<string> {
return dag
.pythonPackage()
.verifyCandidate(envelope, repository, commitSha, projectName, centralModuleSha, workflowRunId, runAttempt)
.commitSha()
}tag() 🔗
Return Type
String ! Example
dagger -m github.com/hseshadr/ci/modules/python-package@95c72573fc11ea6732abb7f7fe8b59c7d245d927 call \
verify-candidate --envelope DIR_PATH --repository string --commit-sha string --project-name string --central-module-sha string --workflow-run-id string --run-attempt integer \
tagfunc (m *MyModule) Example(ctx context.Context, envelope *dagger.Directory, repository string, commitSha string, projectName string, centralModuleSha string, workflowRunId string, runAttempt int) string {
return dag.
Pythonpackage().
Verifycandidate(envelope, repository, commitSha, projectName, centralModuleSha, workflowRunId, runAttempt).
Tag(ctx)
}@function
async def example(envelope: dagger.Directory, repository: str, commitsha: str, projectname: str, centralmodulesha: str, workflowrunid: str, runattempt: int) -> str:
return await (
dag.python_package()
.verifycandidate(envelope, repository, commitsha, projectname, centralmodulesha, workflowrunid, runattempt)
.tag()
)@func()
async example(envelope: Directory, repository: string, commitSha: string, projectName: string, centralModuleSha: string, workflowRunId: string, runAttempt: number): Promise<string> {
return dag
.pythonPackage()
.verifyCandidate(envelope, repository, commitSha, projectName, centralModuleSha, workflowRunId, runAttempt)
.tag()
}project() 🔗
Return Type
String ! Example
dagger -m github.com/hseshadr/ci/modules/python-package@95c72573fc11ea6732abb7f7fe8b59c7d245d927 call \
verify-candidate --envelope DIR_PATH --repository string --commit-sha string --project-name string --central-module-sha string --workflow-run-id string --run-attempt integer \
projectfunc (m *MyModule) Example(ctx context.Context, envelope *dagger.Directory, repository string, commitSha string, projectName string, centralModuleSha string, workflowRunId string, runAttempt int) string {
return dag.
Pythonpackage().
Verifycandidate(envelope, repository, commitSha, projectName, centralModuleSha, workflowRunId, runAttempt).
Project(ctx)
}@function
async def example(envelope: dagger.Directory, repository: str, commitsha: str, projectname: str, centralmodulesha: str, workflowrunid: str, runattempt: int) -> str:
return await (
dag.python_package()
.verifycandidate(envelope, repository, commitsha, projectname, centralmodulesha, workflowrunid, runattempt)
.project()
)@func()
async example(envelope: Directory, repository: string, commitSha: string, projectName: string, centralModuleSha: string, workflowRunId: string, runAttempt: number): Promise<string> {
return dag
.pythonPackage()
.verifyCandidate(envelope, repository, commitSha, projectName, centralModuleSha, workflowRunId, runAttempt)
.project()
}version() 🔗
Return Type
String ! Example
dagger -m github.com/hseshadr/ci/modules/python-package@95c72573fc11ea6732abb7f7fe8b59c7d245d927 call \
verify-candidate --envelope DIR_PATH --repository string --commit-sha string --project-name string --central-module-sha string --workflow-run-id string --run-attempt integer \
versionfunc (m *MyModule) Example(ctx context.Context, envelope *dagger.Directory, repository string, commitSha string, projectName string, centralModuleSha string, workflowRunId string, runAttempt int) string {
return dag.
Pythonpackage().
Verifycandidate(envelope, repository, commitSha, projectName, centralModuleSha, workflowRunId, runAttempt).
Version(ctx)
}@function
async def example(envelope: dagger.Directory, repository: str, commitsha: str, projectname: str, centralmodulesha: str, workflowrunid: str, runattempt: int) -> str:
return await (
dag.python_package()
.verifycandidate(envelope, repository, commitsha, projectname, centralmodulesha, workflowrunid, runattempt)
.version()
)@func()
async example(envelope: Directory, repository: string, commitSha: string, projectName: string, centralModuleSha: string, workflowRunId: string, runAttempt: number): Promise<string> {
return dag
.pythonPackage()
.verifyCandidate(envelope, repository, commitSha, projectName, centralModuleSha, workflowRunId, runAttempt)
.version()
}workflowRunId() 🔗
Return Type
String ! Example
dagger -m github.com/hseshadr/ci/modules/python-package@95c72573fc11ea6732abb7f7fe8b59c7d245d927 call \
verify-candidate --envelope DIR_PATH --repository string --commit-sha string --project-name string --central-module-sha string --workflow-run-id string --run-attempt integer \
workflow-run-idfunc (m *MyModule) Example(ctx context.Context, envelope *dagger.Directory, repository string, commitSha string, projectName string, centralModuleSha string, workflowRunId string, runAttempt int) string {
return dag.
Pythonpackage().
Verifycandidate(envelope, repository, commitSha, projectName, centralModuleSha, workflowRunId, runAttempt).
Workflowrunid(ctx)
}@function
async def example(envelope: dagger.Directory, repository: str, commitsha: str, projectname: str, centralmodulesha: str, workflowrunid: str, runattempt: int) -> str:
return await (
dag.python_package()
.verifycandidate(envelope, repository, commitsha, projectname, centralmodulesha, workflowrunid, runattempt)
.workflowrunid()
)@func()
async example(envelope: Directory, repository: string, commitSha: string, projectName: string, centralModuleSha: string, workflowRunId: string, runAttempt: number): Promise<string> {
return dag
.pythonPackage()
.verifyCandidate(envelope, repository, commitSha, projectName, centralModuleSha, workflowRunId, runAttempt)
.workflowRunId()
}runAttempt() 🔗
Return Type
Integer ! Example
dagger -m github.com/hseshadr/ci/modules/python-package@95c72573fc11ea6732abb7f7fe8b59c7d245d927 call \
verify-candidate --envelope DIR_PATH --repository string --commit-sha string --project-name string --central-module-sha string --workflow-run-id string --run-attempt integer \
run-attemptfunc (m *MyModule) Example(ctx context.Context, envelope *dagger.Directory, repository string, commitSha string, projectName string, centralModuleSha string, workflowRunId string, runAttempt int) int {
return dag.
Pythonpackage().
Verifycandidate(envelope, repository, commitSha, projectName, centralModuleSha, workflowRunId, runAttempt).
Runattempt(ctx)
}@function
async def example(envelope: dagger.Directory, repository: str, commitsha: str, projectname: str, centralmodulesha: str, workflowrunid: str, runattempt: int) -> int:
return await (
dag.python_package()
.verifycandidate(envelope, repository, commitsha, projectname, centralmodulesha, workflowrunid, runattempt)
.runattempt()
)@func()
async example(envelope: Directory, repository: string, commitSha: string, projectName: string, centralModuleSha: string, workflowRunId: string, runAttempt: number): Promise<number> {
return dag
.pythonPackage()
.verifyCandidate(envelope, repository, commitSha, projectName, centralModuleSha, workflowRunId, runAttempt)
.runAttempt()
}manifestSha256() 🔗
Return Type
String ! Example
dagger -m github.com/hseshadr/ci/modules/python-package@95c72573fc11ea6732abb7f7fe8b59c7d245d927 call \
verify-candidate --envelope DIR_PATH --repository string --commit-sha string --project-name string --central-module-sha string --workflow-run-id string --run-attempt integer \
manifest-sha-2-5-6func (m *MyModule) Example(ctx context.Context, envelope *dagger.Directory, repository string, commitSha string, projectName string, centralModuleSha string, workflowRunId string, runAttempt int) string {
return dag.
Pythonpackage().
Verifycandidate(envelope, repository, commitSha, projectName, centralModuleSha, workflowRunId, runAttempt).
Manifestsha256(ctx)
}@function
async def example(envelope: dagger.Directory, repository: str, commitsha: str, projectname: str, centralmodulesha: str, workflowrunid: str, runattempt: int) -> str:
return await (
dag.python_package()
.verifycandidate(envelope, repository, commitsha, projectname, centralmodulesha, workflowrunid, runattempt)
.manifestsha256()
)@func()
async example(envelope: Directory, repository: string, commitSha: string, projectName: string, centralModuleSha: string, workflowRunId: string, runAttempt: number): Promise<string> {
return dag
.pythonPackage()
.verifyCandidate(envelope, repository, commitSha, projectName, centralModuleSha, workflowRunId, runAttempt)
.manifestSha256()
}serialization() 🔗
Return the only non-secret candidate handoff metadata needed by a publisher.
Return Type
String ! Example
dagger -m github.com/hseshadr/ci/modules/python-package@95c72573fc11ea6732abb7f7fe8b59c7d245d927 call \
verify-candidate --envelope DIR_PATH --repository string --commit-sha string --project-name string --central-module-sha string --workflow-run-id string --run-attempt integer \
serializationfunc (m *MyModule) Example(ctx context.Context, envelope *dagger.Directory, repository string, commitSha string, projectName string, centralModuleSha string, workflowRunId string, runAttempt int) string {
return dag.
Pythonpackage().
Verifycandidate(envelope, repository, commitSha, projectName, centralModuleSha, workflowRunId, runAttempt).
Serialization(ctx)
}@function
async def example(envelope: dagger.Directory, repository: str, commitsha: str, projectname: str, centralmodulesha: str, workflowrunid: str, runattempt: int) -> str:
return await (
dag.python_package()
.verifycandidate(envelope, repository, commitsha, projectname, centralmodulesha, workflowrunid, runattempt)
.serialization()
)@func()
async example(envelope: Directory, repository: string, commitSha: string, projectName: string, centralModuleSha: string, workflowRunId: string, runAttempt: number): Promise<string> {
return dag
.pythonPackage()
.verifyCandidate(envelope, repository, commitSha, projectName, centralModuleSha, workflowRunId, runAttempt)
.serialization()
}PythonPackage 🔗
Build and verify packages without registry or publication authority.
build() 🔗
Build exactly one pure wheel and one source distribution.
Return Type
PythonPackageBuiltPythonPackage !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | A directory. |
| repository | String ! | - | No description provided |
| commitSha | String ! | - | No description provided |
| projectName | String ! | - | No description provided |
Example
dagger -m github.com/hseshadr/ci/modules/python-package@95c72573fc11ea6732abb7f7fe8b59c7d245d927 call \
build --source DIR_PATH --repository string --commit-sha string --project-name stringfunc (m *MyModule) Example(source *dagger.Directory, repository string, commitSha string, projectName string) *dagger.PythonPackageBuiltPythonPackage {
return dag.
Pythonpackage().
Build(source, repository, commitSha, projectName)
}@function
def example(source: dagger.Directory, repository: str, commitsha: str, projectname: str) -> dagger.PythonPackageBuiltPythonPackage:
return (
dag.python_package()
.build(source, repository, commitsha, projectname)
)@func()
example(source: Directory, repository: string, commitSha: string, projectName: string): PythonPackageBuiltPythonPackage {
return dag
.pythonPackage()
.build(source, repository, commitSha, projectName)
}candidate() 🔗
Create a retry-bound Foundation envelope after exact-green checks.
Return Type
PythonPackageCandidate !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | A directory. |
| githubToken | Secret ! | - | A reference to a secret value, which can be handled more safely than the value itself. |
| repository | String ! | - | No description provided |
| commitSha | String ! | - | No description provided |
| projectName | String ! | - | No description provided |
| centralModuleSha | String ! | - | No description provided |
| workflowRunId | String ! | - | No description provided |
| runAttempt | Integer ! | - | No description provided |
Example
dagger -m github.com/hseshadr/ci/modules/python-package@95c72573fc11ea6732abb7f7fe8b59c7d245d927 call \
candidate --source DIR_PATH --github-token env:MYSECRET --repository string --commit-sha string --project-name string --central-module-sha string --workflow-run-id string --run-attempt integerfunc (m *MyModule) Example(source *dagger.Directory, githubToken *dagger.Secret, repository string, commitSha string, projectName string, centralModuleSha string, workflowRunId string, runAttempt int) *dagger.PythonPackageCandidate {
return dag.
Pythonpackage().
Candidate(source, githubToken, repository, commitSha, projectName, centralModuleSha, workflowRunId, runAttempt)
}@function
def example(source: dagger.Directory, githubtoken: dagger.Secret, repository: str, commitsha: str, projectname: str, centralmodulesha: str, workflowrunid: str, runattempt: int) -> dagger.PythonPackageCandidate:
return (
dag.python_package()
.candidate(source, githubtoken, repository, commitsha, projectname, centralmodulesha, workflowrunid, runattempt)
)@func()
example(source: Directory, githubToken: Secret, repository: string, commitSha: string, projectName: string, centralModuleSha: string, workflowRunId: string, runAttempt: number): PythonPackageCandidate {
return dag
.pythonPackage()
.candidate(source, githubToken, repository, commitSha, projectName, centralModuleSha, workflowRunId, runAttempt)
}dependencyAudit() 🔗
Audit the locked dependency graph in a bound source tree.
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | A directory. |
| repository | String ! | - | No description provided |
| commitSha | String ! | - | No description provided |
Example
dagger -m github.com/hseshadr/ci/modules/python-package@95c72573fc11ea6732abb7f7fe8b59c7d245d927 call \
dependency-audit --source DIR_PATH --repository string --commit-sha stringfunc (m *MyModule) Example(source *dagger.Directory, repository string, commitSha string) *dagger.Container {
return dag.
Pythonpackage().
Dependencyaudit(source, repository, commitSha)
}@function
def example(source: dagger.Directory, repository: str, commitsha: str) -> dagger.Container:
return (
dag.python_package()
.dependencyaudit(source, repository, commitsha)
)@func()
example(source: Directory, repository: string, commitSha: string): Container {
return dag
.pythonPackage()
.dependencyAudit(source, repository, commitSha)
}verifyCandidate() 🔗
Revalidate a candidate without source, credentials, or provider access.
Return Type
PythonPackageCandidate !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| envelope | Directory ! | - | A directory. |
| repository | String ! | - | No description provided |
| commitSha | String ! | - | No description provided |
| projectName | String ! | - | No description provided |
| centralModuleSha | String ! | - | No description provided |
| workflowRunId | String ! | - | No description provided |
| runAttempt | Integer ! | - | No description provided |
Example
dagger -m github.com/hseshadr/ci/modules/python-package@95c72573fc11ea6732abb7f7fe8b59c7d245d927 call \
verify-candidate --envelope DIR_PATH --repository string --commit-sha string --project-name string --central-module-sha string --workflow-run-id string --run-attempt integerfunc (m *MyModule) Example(envelope *dagger.Directory, repository string, commitSha string, projectName string, centralModuleSha string, workflowRunId string, runAttempt int) *dagger.PythonPackageCandidate {
return dag.
Pythonpackage().
Verifycandidate(envelope, repository, commitSha, projectName, centralModuleSha, workflowRunId, runAttempt)
}@function
def example(envelope: dagger.Directory, repository: str, commitsha: str, projectname: str, centralmodulesha: str, workflowrunid: str, runattempt: int) -> dagger.PythonPackageCandidate:
return (
dag.python_package()
.verifycandidate(envelope, repository, commitsha, projectname, centralmodulesha, workflowrunid, runattempt)
)@func()
example(envelope: Directory, repository: string, commitSha: string, projectName: string, centralModuleSha: string, workflowRunId: string, runAttempt: number): PythonPackageCandidate {
return dag
.pythonPackage()
.verifyCandidate(envelope, repository, commitSha, projectName, centralModuleSha, workflowRunId, runAttempt)
}