bndr / bndr/pipreqs

Pipreqs not idenitfying google cloud storage

Open
#362 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7.5k
Forks
424
PR merge metrics
No merged PRs in 30d

Description

I have an import that looks like this:
`from google.cloud import storage`

the installation command with pip is: `pip install google-cloud-storage`

But the requirement `google-cloud-stoage==2.7.0` is not added to requirements.txt

I love pipreqs, but I'm not sure how to deal with this as everytime I add it manually and want to regenerate the file the dependency is lost..

Is there a way to either:

1. Ensure that pipreqs can find google-cloud-storage OR
2. That I can manually add it to requirements.txt without it being overwritten (but other packages appended) and updated?

Thanks!

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the `from google.cloud import storage` case with pipreqs and inspect the generated `requirements.txt`. Determine whether the expected `google-cloud-storage==2.7.0` mapping or preserving manually added requirements is the intended scope; done means the selected behavior is reproducible and covered by an appropriate test.

Written by the indexing model from the issue text.

Assessment

Tech stack
google-cloud, python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.