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

Make Fondant installable via git #849

Merged
merged 4 commits into from
Feb 9, 2024
Merged

Make Fondant installable via git #849

merged 4 commits into from
Feb 9, 2024

Conversation

RobbeSneyders
Copy link
Member

This PR moves our components into the source folder so Fondant becomes installable via git.

The reason to have them at the top level before was because we didn't have a hub. Now that we have the hub page on the fondant.ai site, I think the trade-off has shifted.

I will update the references in the use case repositories as well.

Copy link
Contributor

@mrchtr mrchtr left a comment

Choose a reason for hiding this comment

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

Is the merge to feature/remove-reusable-RAG-components on purpose?

@RobbeSneyders
Copy link
Member Author

Yes, since I didn't want to move the components that you are deleting. We can wait with merging until after that one is merged.

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 QoL

Base automatically changed from feature/remove-reusable-RAG-components to main February 9, 2024 13:30
@RobbeSneyders RobbeSneyders merged commit 8c7250e into main Feb 9, 2024
11 checks passed
@RobbeSneyders RobbeSneyders deleted the feature/packaging branch February 9, 2024 13:30
RobbeSneyders added a commit that referenced this pull request Feb 12, 2024
This PR updates the components path which was changed in #849.
RobbeSneyders added a commit that referenced this pull request Feb 20, 2024
The new packaging strategy introduced in #849 doesn't work correctly for
wheels due to a bug in poetry
(python-poetry/poetry#8994), which breaks
installing both from Github and PyPi. This PR introduces a workaround.

Since the bug is related to the `src` directory, this workaround adds a
`pre-build/sh` script which unpacks the `src` directory before building,
and a `post-build.sh` script which moves the package back into the `src`
directory afterwards.

This leads to the following result:
- Installing from Github leads to an installation including all
component files
- Installing locally without running the build script leads to an
installation including all component files
- Installing from PyPi leads to an installation with only the
`fondant_component.yaml` files for each component

In the ideal case, we get the same result for all installation methods,
but this already at least leads to a working result for each method.
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.

3 participants