pyupio / dparse

A parser for Python dependency files
MIT License
61 stars 23 forks source link

Cannot parse own tox.ini #6

Closed pombredanne closed 7 years ago

pombredanne commented 7 years ago
b=parse(t,tox_ini)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/tmp/dparse/python2.7/site-packages/dparse/parser.py", line 283, in parse
    return dep_file.parse()
  File "/tmp/dparse/python2.7/site-packages/dparse/dependencies.py", line 178, in parse
    self.parser.parse()
  File "/tmp/dparse/python2.7/site-packages/dparse/parser.py", line 231, in parse
    req = RequirementsTXTLineParser.parse(line)
  File "/tmp/dparse/python2.7/site-packages/dparse/parser.py", line 41, in parse
    parsed, = parse_requirements(line)
  File "/tmp/dparse/python2.7/site-packages/pkg_resources/__init__.py", line 2826, in parse_requirements
    yield Requirement(line)
  File "/tmp/dparse/python2.7/site-packages/pkg_resources/__init__.py", line 2836, in __init__
    raise RequirementParseError(str(e))
pkg_resources.RequirementParseError: Invalid requirement, parse error at "'-r{toxin'"
pombredanne commented 7 years ago

Thanks!