From 8a04169419862ecefaf25adc15caf295e8bc7b2f Mon Sep 17 00:00:00 2001 From: Vadim Kravcenko Date: Mon, 11 May 2015 19:18:22 +0200 Subject: [PATCH] fix(pipreqs): Duplicate entries in requirements.txt --- pipreqs/pipreqs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipreqs/pipreqs.py b/pipreqs/pipreqs.py index 3582ce9..4b13a72 100755 --- a/pipreqs/pipreqs.py +++ b/pipreqs/pipreqs.py @@ -148,7 +148,7 @@ def init(args): logging.debug("Getting packages information from Local/PyPI") local = get_import_local(candidates) # 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]] imports = local + get_imports_info(difference)