mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-07 12:05:33 +00:00
fix(pipreqs): Duplicate entries in requirements.txt
This commit is contained in:
parent
496b729309
commit
8a04169419
@ -148,7 +148,7 @@ def init(args):
|
|||||||
logging.debug("Getting packages information from Local/PyPI")
|
logging.debug("Getting packages information from Local/PyPI")
|
||||||
local = get_import_local(candidates)
|
local = get_import_local(candidates)
|
||||||
# Get packages that were not found locally
|
# Get packages that were not found locally
|
||||||
difference = [x for x in candidates if x not in [z['name']
|
difference = [x for x in candidates if x.lower() not in [z['name'].lower()
|
||||||
for z in local]]
|
for z in local]]
|
||||||
imports = local + get_imports_info(difference)
|
imports = local + get_imports_info(difference)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user