-
Notifications
You must be signed in to change notification settings - Fork 837
feat(pipenv): Use pipenv to lock down python dependencies #248
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
Conversation
|
Hi @jimexist. Thanks for your PR. I'm waiting for a kubernetes or tensorflow member to verify that this patch is reasonable to test. If it is, they should reply with 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. |
jlewi
left a comment
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.
Thanks. I'm not familiar with pipenv so a couple questions
-
How does this relate to requirements.txt? Can we get rid of requirements.txt?
-
How will we use pipenv? Will pipenv be used to produce a pip package that will be used to install the py package in our containers?
|
/ok-to-test |
yes. and you can always use
for docker installation I can think of a template docker file like this (hope this can explain better): FROM python:3.6
COPY Pipfile Pipfile.lock /my/app/path/
WORKDIR /my/app/path/
# see https://github.com/pypa/pipenv/blob/master/docs/advanced.rst#-deploying-system-dependencies
RUN pip3 install pipenv && pipenv install --system --deploy
COPY ./python_code /my/app/path/
CMD ["python", "script.py"] |
|
@jlewi now that you mentioned this - I found out that there are actually two use cases for python, one for test-infra (the airflow docker image) and one for releases (the the use case for |
|
According to this pipenv is the officially recommended package manager so I think it makes sense to use it. Should we delete requirements.txt and update the developer_guide to refer to pipenv? |
1 similar comment
|
@jlewi sure, WIP. |
|
@jlewi developer guide updated, PTAL |
|
LGTM but looks like the build is still broken because of lint issues. |
|
@jlewi for some reason the build failed |
|
/test-all |
|
/test all |
Signed-off-by: konflux-internal-p02 <170854209+konflux-internal-p02[bot]@users.noreply.github.com> Co-authored-by: konflux-internal-p02[bot] <170854209+konflux-internal-p02[bot]@users.noreply.github.com>
this is really a trivial change and so far I haven't been able to find time to adjust the docker file accordingly.
This change is