Skip to content

Zenith: Use class instead of top-level functions in template - #6729

Merged
helderco merged 1 commit into
dagger:mainfrom
helderco:helder/oss-132-zenith-default-to-use-a-class-instead-of-top-level-functions
Feb 26, 2024
Merged

helderco merged 1 commit into
dagger:mainfrom
helderco:helder/oss-132-zenith-default-to-use-a-class-instead-of-top-level-functions

Conversation

@helderco

@helderco helderco commented Feb 24, 2024 •

Copy link
Copy Markdown
Contributor

Fixes #6728

@helderco
helderco requested a review from sipsma February 24, 2024 01:52
@helderco
helderco force-pushed the helder/oss-132-zenith-default-to-use-a-class-instead-of-top-level-functions branch from a0c4c52 to c0b7cdf Compare February 24, 2024 02:00
@helderco helderco added this to the v0.10.0 milestone Feb 24, 2024
return &PythonSdk{
SDKSourceDir: sdkSourceDir,
RequiredPaths: []string{
"**/pyproject.toml",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does the integ test TestModulePythonInit/respects existing pyproject.toml pass with this removed? I remember talking about this whole topic somewhere but forget where, apologies if you are repeating something 😅

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The one that matters is included in the mount of the module source, within the codegen function. This just includes all other pyproject.toml in the repo, which includes core testdata.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be clear, it's not necessary to get the one in sdk/python/pyproject.toml since the sdk is available in /sdk, from the engine container.

@sipsma sipsma left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@helderco

This comment was marked as duplicate.

@helderco
helderco merged commit 4b7ab1e into dagger:main Feb 26, 2024
@helderco
helderco deleted the helder/oss-132-zenith-default-to-use-a-class-instead-of-top-level-functions branch February 26, 2024 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zenith: default to use a class instead of top-level functions in Python

2 participants