From e892d3779b1a7b32ae353be5c93abca889b56501 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hildo=20Guillardi=20J=C3=BAnior?= Date: Tue, 9 Mar 2021 18:15:04 -0300 Subject: [PATCH] Fix case of requirement line without comment --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e95b64469..d921a5524 100644 --- a/setup.py +++ b/setup.py @@ -84,7 +84,7 @@ def run(self): requirements = f.read().splitlines() # Remove the comments of the line. for idx, r in enumerate(requirements): - requirements[idx] = re.findall('^(.*)(!?#.*)', r)[0][0].strip() + requirements[idx] = re.findall('^(.*)(!?#.*)*', r)[0][0].strip() if '' in requirements: requirements.remove('')