pipreqs
pipreqs copied to clipboard
Pipreqs not idenitfying google cloud storage
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:
- Ensure that pipreqs can find google-cloud-storage OR
- That I can manually add it to requirements.txt without it being overwritten (but other packages appended) and updated?
Thanks!
I have the same issue with bitcoinlib.
I think quite a few new packages are not identified properly, as it's been a long time since we updated the list.
Back when I first wrote it I parsed all the packages from PyPi repository to match the imports with the packages. I think a fresh parsing is needed, I'll take a look at it once I have some free time.
I always thought pipreqs works the other way around: Compare the list of used packages against the list of base packages? Would that not be easier to maintain? Each day there are new packages on PyPI...