mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-07 03:55:22 +00:00
fix(pipreqs.py): remove '.egg' from version
This commit is contained in:
parent
897bfafb54
commit
a4a40efe26
@ -127,7 +127,7 @@ def get_locally_installed_packages(encoding=None):
|
|||||||
if ((i_item not in ignore) and
|
if ((i_item not in ignore) and
|
||||||
(package[0] not in ignore)):
|
(package[0] not in ignore)):
|
||||||
packages[i_item] = {
|
packages[i_item] = {
|
||||||
'version': package[1].replace(".dist", ""),
|
'version': package[1].replace(".dist", "").replace(".egg",""),
|
||||||
'name': package[0]
|
'name': package[0]
|
||||||
}
|
}
|
||||||
return packages
|
return packages
|
||||||
|
Loading…
x
Reference in New Issue
Block a user