GeezerVison is showing github.com — requests is missing as dependency · Issue #268 · googleapis/python-storage
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
requests is missing as dependency #268Labels api: storageIssues related to the googleapis/python-storage API.type: questionRequest for information or clarification. Not an issue. ActivityHemangChothani commented on Sep 14, 2020 @simonvanderveldt Yes, as you have said request is installed by google-resumable-media,so don't want to make it redundant , google-api-core is also installed by the other dependency. simonvanderveldt commented on Sep 14, 2020
@simonvanderveldt Yes, as you have said request is installed by google-resumable-media,so don't want to make it redundant , google-api-core is also installed by the other dependency.
AFAIK That's not how install_requires works/is meant to be used. If a project uses a dependency directly it should be listed in its install_requires. HemangChothani commented on Sep 14, 2020
AFAIK That's not how install_requires works/is meant to be used. If a project uses a dependency directly it should be listed in its install_requires.
I don't think there is any need to mention requests in dependencies because if we follows, then there will be a bunch of redundant dependencies need to mention in the file .
@frankyn @tseaver could you please share your view? frankyn commented on Sep 14, 2020 @andrewsg can you take a look at this question when you have a moment? tseaver commented on Sep 14, 2020 Outside of tests, all use of the requests module is in docstrings (i.e., for clarity). We do not need to mention it in install_requires for testing-only usage.
Note that google-resumable-media only has an extras_require for requests. That is by design, with the intention that another transport might be added in the future. andrewsg commented on Sep 14, 2020 It looks like there's exactly one non-test file that uses requests, google/cloud/storage/batch.py. Given that, we should add it to direct dependencies after all. I assume it didn't show up in our system testing because, as previously mentioned, dependencies were pulling requests in in both customer and test environments, so this is more of a formality. Reacted by Simon van der Veldt
MetadataMetadataapi: storageIssues related to the googleapis/python-storage API.type: questionRequest for information or clarification. Not an issue. DevelopmentNo branches or pull requestsIssue actions
|