bndr / pipreqs

pipreqs - Generate pip requirements.txt file based on imports of any project. Looking for maintainers to move this project forward.
Apache License 2.0
6.38k stars 388 forks source link

Please allow using this project a library #294

Open oz123 opened 2 years ago

oz123 commented 2 years ago

This project is very useful also as a library. For example, pipenv uses it here:

https://github.com/pypa/pipenv/blob/4fa67914f7562db947e1b30875cf96a709e8f4f5/pipenv/core.py#L219

Because of the top level import of docopt, it must also pull docopt as a dependecy. It would be really nice if we could remove this dependency.

oz123 commented 2 years ago

Just noticed that there is another PR that suggested this:

https://github.com/bndr/pipreqs/pull/253.

However, it regards two dependencies, and does not modify setup.py. Let's start with this one, first remove docopt, and later yarg.