Pipreqs adds wrong package to requirements.txt
Open
- Dominant language
- Python
- Stars
- 7.5k
- Forks
- 424
- PR merge metrics
- No merged PRs in 30d
Description
In my project, I use kafka-python package.
When pipreqs generates requirements.txt, it adds kafka package in addition to kafka-python package.
kafka package is not used in the project, it's not even installed.
Contributor guide
Research direction
Start by reproducing the report with a project that uses kafka-python and generates requirements.txt through pipreqs. Trace how the imported kafka name is mapped to a package, then verify that the generated file contains kafka-python and does not add the unused kafka package.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100