-
Notifications
You must be signed in to change notification settings - Fork 30
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
fix: missing imports with pydrive #23
fix: missing imports with pydrive #23
Conversation
* leave in setuptools and its dependencies for pydrive and google-drive-python-api * pin httplib2 to v0.15.0 to fix pydrive issue
# Clean up | ||
&& python3 -m pip uninstall -y pip pipenv setuptools \ | ||
&& apk del --purge .build-deps | ||
&& pipenv install --system --deploy |
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.
This image is meant to remain as small as possible and build dependencies are files that shouldn't be necessary at runtime. Please keep them.
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.
In some cases they are necessary: https://stackoverflow.com/questions/7446187/no-module-named-pkg-resources
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.
We could try leaving in only setuptools though. I don't recall if I tried that or if that caused issues. It was simpler to not remove things that may break the functionality, especially since this repo has no integration tests.
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.
Keeping the image from being broken is more important than it being small, I assumed :)
@@ -34,6 +31,7 @@ pydrive = "*" | |||
#pyrax = "*" | |||
python-swiftclient = "*" | |||
requests_oauthlib = "*" | |||
httplib2 = "==0.15.0" |
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.
Why pin to this exact version? If required then please comment in the code about why.
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.
It's been so long since I worked on this I don't recall. I ended up writing my own image instead and don't have time to work on it. Feel free to close the issue and MR.
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.
I've merged some of your changes, thanks for the PR though.
Resolves #22
and google-drive-python-api