Skip to content
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

Conversation

austinkeller
Copy link

@austinkeller austinkeller commented Dec 22, 2020

Resolves #22

  • leave in setuptools and its dependencies for pydrive
    and google-drive-python-api
  • pin httplib2 to v0.15.0 to fix pydrive issue

* 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
Copy link
Owner

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.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

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.

Copy link
Author

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"
Copy link
Owner

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.

Copy link
Author

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.

Copy link
Owner

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.

@wernight wernight closed this Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PyDrive backend not working due to missing imports
2 participants