-
Notifications
You must be signed in to change notification settings - Fork 25
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
Conversation
There was a problem hiding this 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?
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice QoL
This PR updates the components path which was changed in #849.
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.
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.