'-' hyphen is replaced with an underscore, '_'
- Dominant language
- Python
- Stars
- 7.5k
- Forks
- 424
- PR merge metrics
- No merged PRs in 30d
Description
pipreqs --encoding=utf8 .
++++++++++++++++++++++++++++
It appears that pipreqs '-' hyphen is getting replaced with an underscore.
Following are the few examples, where pipreqs used an underscore where it should have been '-'
opencv_python==4.5.5.64
marshmallow_enum==1.5.1
python_json_logger==2.0.2
scikit_image==0.19.2
scikit_learn==1.0.2
Contributor guide
Research direction
Start by reproducing the reported `pipreqs --encoding=utf8 .` behavior with imports corresponding to the listed packages. Trace where imported names become requirement names, then verify that packages such as opencv-python, scikit-image, and scikit-learn retain hyphens in the generated requirements output. There is no file or test named in the issue, so add focused coverage for these examples if the project’s test structure allows it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100