-
Notifications
You must be signed in to change notification settings - Fork 309
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
Add pip_extra_args #3081
Add pip_extra_args #3081
Conversation
Thank you for opening this pull request! 🙌 These tips will help get your PR across the finish line:
|
Code Review Agent Run #bf76cdActionable Suggestions - 1
Review Details
|
Changelist by BitoThis pull request implements the following key changes.
|
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.
Can you update a list to make sure that the new argument is used?
5a2c44f
to
4281029
Compare
Code Review Agent Run #110b04Actionable Suggestions - 1
Review Details
|
3757b78
to
f65bc86
Compare
Signed-off-by: amitani <[email protected]>
f65bc86
to
31a8f47
Compare
Code Review Agent Run #581024Actionable Suggestions - 0Additional Suggestions - 1
Review Details
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3081 +/- ##
==========================================
+ Coverage 74.82% 79.66% +4.83%
==========================================
Files 202 202
Lines 21446 21461 +15
Branches 2763 2766 +3
==========================================
+ Hits 16048 17097 +1049
+ Misses 4626 3595 -1031
+ Partials 772 769 -3 ☔ View full report in Codecov by Sentry. |
Signed-off-by: amitani <[email protected]>
Code Review Agent Run #c147c6Actionable Suggestions - 0Review Details
|
Congrats on merging your first pull request! 🎉 |
Signed-off-by: amitani <[email protected]> Signed-off-by: lu00122 <[email protected]>
Tracking issue
Related to flyteorg/flyte#6119
Why are the changes needed?
We have a few path dependencies in
pyproject.toml
andpoetry.lock
, and only want to install packages from external sources, which requires adding--no-directory
topoetry install
. This is a standard practice when installing dependencies without code.See
https://python-poetry.org/docs/faq/#poetry-busts-my-docker-cache-because-it-requires-me-to-copy-my-source-files-in-before-installing-3rd-party-dependencies
What changes were proposed in this pull request?
pip_extra_args
is a specifiable parameter forImageSpec
, and appended when runningpoetry install
,uv sync
andpip install
.How was this patch tested?
I tested locally with a poetry project with internal path dependency by running
pyflyte build
. Planning to add unit tests once the implementation get LGTM.Setup process
Screenshots
Check all the applicable boxes
Related PRs
#3025
Docs link
Summary by Bito
Added new pip_extra_args parameter to ImageSpec class for enhanced package installation flexibility, enabling custom pip installation arguments for path dependencies in poetry projects. Enhanced test suite implementation to validate pip_extra_args parameter, including test cases for --no-install-package flag and path dependency handling with --no-directory option. Tests ensure proper integration with both poetry and pip installation workflows.Unit tests added: True
Estimated effort to review (1-5, lower is better): 1