GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #268

Copy link
Copy link
Closed
#271
Closed
requests is missing as dependency#268
#271
Copy link
Assignees
andrewsg
Labels
api: storageIssues related to the googleapis/python-storage API.type: questionRequest for information or clarification. Not an issue.

Description

@simonvanderveldt
simonvanderveldt
opened on Sep 14, 2020
Issue body actions

requests is used directly by several modules in this project, see https://github.com/googleapis/python-storage/search?l=Python&q=requests yet it's not listed in setup.py in install_requires.

(note that this won't be an issue for most people because requests is pulled in as a dependency by one of the dependencies that are currently listed).

Activity

  1. product-auto-label
    added
    api: storageIssues related to the googleapis/python-storage API.
    on Sep 14, 2020
  2. HemangChothani commented on Sep 14, 2020

    @HemangChothani
    HemangChothani
    on Sep 14, 2020
    Contributor
    More actions

    @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.

  3. HemangChothani
    added
    type: questionRequest for information or clarification. Not an issue.
    on Sep 14, 2020
  4. simonvanderveldt commented on Sep 14, 2020

    @simonvanderveldt
    simonvanderveldt
    on Sep 14, 2020
    Author
    More actions

    @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.

  5. HemangChothani commented on Sep 14, 2020

    @HemangChothani
    HemangChothani
    on Sep 14, 2020
    Contributor
    More actions

    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?

  6. frankyn
    assigned
    andrewsg
    on Sep 14, 2020
  7. frankyn commented on Sep 14, 2020

    @frankyn
    frankyn
    on Sep 14, 2020
    Contributor
    More actions

    @andrewsg can you take a look at this question when you have a moment?

  8. tseaver commented on Sep 14, 2020

    @tseaver
    tseaver
    on Sep 14, 2020
    Contributor
    More actions

    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.

  9. andrewsg commented on Sep 14, 2020

    @andrewsg
    andrewsg
    on Sep 14, 2020
    Contributor
    More actions

    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
  10. plamut
    closed this as completedin #271on Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @andrewsg
    andrewsg

Labels

api: storageIssues related to the googleapis/python-storage API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.