Add extra split identifier (#885)

Added an extra split identifier to make sure presence of extras does not influence determining whether clearml is included in requirements.
This commit is contained in:
cajewsa 2023-01-18 18:12:09 +01:00 committed by GitHub
parent 1eafa4f6f9
commit 3d5d8ef706
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -255,7 +255,7 @@ class CreateAndPopulate(object):
for line in reqs:
if line.strip().startswith('#'):
continue
package = reduce(lambda a, b: a.split(b)[0], "#;@=~<>", line).strip()
package = reduce(lambda a, b: a.split(b)[0], "#;@=~<>[", line).strip()
if package == 'clearml':
clearml_found = True
break