-
Notifications
You must be signed in to change notification settings - Fork 996
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
Use pip-tools to lock versions of dependent packages #2093
Conversation
Hi @ysk24ok. Thanks for your PR. I'm waiting for a feast-dev member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Signed-off-by: Yusuke Nishioka <yusuke.nishioka.0713@gmail.com>
Signed-off-by: Yusuke Nishioka <yusuke.nishioka.0713@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #2093 +/- ##
===========================================
- Coverage 83.44% 57.99% -25.45%
===========================================
Files 100 100
Lines 8077 8088 +11
===========================================
- Hits 6740 4691 -2049
- Misses 1337 3397 +2060
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
More of a general question / comment. I haven't messed around personally with Seems like generally, people have very mixed feelings about pipenv and that poetry is the strongly preferred alternative. |
Yes,
I also think |
@ysk24ok Is the idea with this diff that we'd |
my personal preference likely is to use pip tools to start |
@achals @adchia |
@adchia Replaced pipenv with pip-tools (pip-compile/pip-sync). Could you take a look? Several changes to note are the followings.
|
Asking achal to take a look since he's had experience with pip-tools! |
@ysk24ok The PR looks pretty good! Can you update the description so that it matches the new approach? |
@achals Thank you. I've updated the description. |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: achals, ysk24ok The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
This PR introduces pip-tools to lock the version of dependent packages.
Other options are Poetry and Pipenv.
Using Poetry, we have to replace
setup.py
withpyproject.toml
, which leads to comparatively large diff. That's why I didn't choose Poetry.At first I tried using pipenv but decided not to use it based on maintainers' feedback. pipenv has some drawbacks such as slow locking and we don't need its virtualenv management feature right now.
Several changes to note are the followings.
py-3.X-ci-requirements.txt
files. The result ofpip-compile
does not change between Linux and MacOS so the OS specifier is not included in the file name.py-3.X-ci-requirements.txt
as a cache key instead ofsetup.py
.Which issue(s) this PR fixes:
Fixes #1993
Does this PR introduce a user-facing change?: