damnever / pigar

:coffee: A tool to generate requirements.txt for Python project, and more than that. (IT IS NOT A PACKAGE MANAGEMENT TOOL)

Home Page:https://damnever.github.io/pigar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Package names containing "-"

rouzbeh-afrasiabi opened this issue · comments

pigar fails to properly extract the package name when creating requirements.txt this happens when the package name contains "-". Example: scikit_learn == 0.24.2 instead of scikit-learn == 0.24.2. This seems to be due to core.parse_installed_packages() or any string formatting that is performed before or during execution of this function.