Skip empty lines from tox deps

An empty line happens when there are not deps:

    Handling  from tox --print-deps-only: <toxname>
    WARNING: Skipping invalid requirement:
        Parse error at "''": Expected W:(abcd...)
This commit is contained in:
Miro Hrončok 2020-09-30 23:25:03 +02:00
parent 2ecbed7441
commit 6f6a7636d4

View File

@ -235,7 +235,7 @@ def parse_tox_requires_lines(lines):
f'WARNING: Skipping dependency line: {line}\n' f'WARNING: Skipping dependency line: {line}\n'
+ f' tox deps options other than -r are not supported (yet).', + f' tox deps options other than -r are not supported (yet).',
) )
else: elif line:
packages.append(line) packages.append(line)
return packages return packages