Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split component and pipeline SDKs #587

Merged
merged 1 commit into from
Oct 31, 2023
Merged

Split component and pipeline SDKs #587

merged 1 commit into from
Oct 31, 2023

Conversation

RobbeSneyders
Copy link
Member

Fixes #554

This PR splits the component and pipeline SDKs. Some things I want to add in follow-up PRs:

  • Revisit the install extras. Eg. Dask is not needed in the pipeline
  • Automatically check that the pipeline and component SDKs don't import from each other

Copy link
Contributor

@PhilippeMoussalli PhilippeMoussalli left a comment

Choose a reason for hiding this comment

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

Thanks Robbe!

@@ -27,7 +28,7 @@ def build_sidebar(base_path: str) -> Tuple[Manifest, str, Dict[str, str]]:
Tuple[Optional[str], Optional[str], Optional[Dict]: Tuple with manifest path,
subset name and fields
"""
fs = get_filesystem(base_path)
fs, _ = fsspec.core.url_to_fs(base_path)
Copy link
Contributor

Choose a reason for hiding this comment

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

nice find

)
from fondant.pipeline import Pipeline
from fondant.runner import DockerRunner, KubeflowRunner, VertexRunner
if t.TYPE_CHECKING:
Copy link
Contributor

Choose a reason for hiding this comment

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

what does this do?

Copy link
Member Author

Choose a reason for hiding this comment

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

It only imports the guarded imports during type checking, not at runtime. See docs.

Copy link
Collaborator

@GeorgesLorre GeorgesLorre left a comment

Choose a reason for hiding this comment

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

nice! Going to be clean

@RobbeSneyders RobbeSneyders merged commit 2fbcda6 into main Oct 31, 2023
5 of 6 checks passed
@RobbeSneyders RobbeSneyders deleted the feature/split-sdks branch October 31, 2023 14:20
RobbeSneyders added a commit that referenced this pull request Nov 6, 2023
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.

Split component and pipeline SDK
3 participants