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

Library now requires requests >= 2.18.0 #29

Closed
nkeriks opened this issue Aug 11, 2017 · 7 comments
Closed

Library now requires requests >= 2.18.0 #29

nkeriks opened this issue Aug 11, 2017 · 7 comments
Assignees
Labels
packaging 🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@nkeriks
Copy link

nkeriks commented Aug 11, 2017

Hi - this recent change uses the requests.models.Response object as a context manager, which is only added in recent versions (>= 2.18.0) of the requests library

While this is a year old version of requests, it would be good to have this requirement made explicit. Notably conda still packages requests 2.14.2 only.

@dhermes
Copy link
Contributor

dhermes commented Aug 11, 2017

@nkeriks Thanks for bringing this up, we've had similar issues in google-cloud-python. Note that this library does not have requests as an explicit requirement.

@jonparrott WDYT is the right move here?

@theacodes
Copy link

Add an optional with requests >= 2.18.0?

@dhermes
Copy link
Contributor

dhermes commented Aug 11, 2017

@jonparrott Will that enforce the lower bound when users just pip install google-resumable-media without the extras.

It's probably worth asking @nkeriks how he came about this realization.

@nkeriks
Copy link
Author

nkeriks commented Aug 11, 2017

I had an initialization script that was pip installing various packages (including google cloud python libraries) into a conda python environment. Not the greatest idea in general, but this usually handles dependencies fine.

@theacodes
Copy link

theacodes commented Aug 11, 2017 via email

@dhermes
Copy link
Contributor

dhermes commented Aug 11, 2017

@nkeriks Ahh that makes sense, thanks for the info. FWIW google-cloud-storage==1.3.1 (currently the latest) depends on requests (>=2.0.0) however the next google-cloud-python releases will have this lower bound set:

$ git log -1 --pretty=%H
cd3a05d1d6f27daf1dedf2425310e9f60dbd06b4
$ git grep -n requests -- '*setup.py'
bigquery/setup.py:57:    'requests >= 2.18.0',
core/setup.py:57:    'requests >= 2.18.0, < 3.0.0dev',
storage/setup.py:57:    'requests >= 2.18.0',

@lukesneeringer
Copy link
Contributor

The optional as well as the fix in google-cloud-python should be sufficient.

dhermes added a commit to dhermes/google-resumable-media-python that referenced this issue Aug 14, 2017
dhermes added a commit that referenced this issue Aug 14, 2017
@yoshi-automation yoshi-automation added 🚨 This issue needs some love. triage me I really want to be triaged. labels Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packaging 🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
Development

No branches or pull requests

5 participants