signalpillar / tox-battery

Experiments with Tox plugin system
MIT License
33 stars 3 forks source link

Do not try to prase requirements files #4

Closed signalpillar closed 8 years ago

signalpillar commented 8 years ago

Problem

If requirements file contains pip options we fail to parse it::

pkg_resources.extern.packaging.requirements.InvalidRequirement: Invalid requirement, parse error at "'-r requi'"

Solution

Don't try to parse requirements file. Format of it is quite complex and not exposed as API by pip project. It is simple now - just compare files.