nexB / python-inspector

Inspect Python code and PyPI package manifests. Resolve Python dependencies.
20 stars 17 forks source link

An invalid `requirements.txt` file is silently accepted #178

Open sschuberth opened 3 weeks ago

sschuberth commented 3 weeks ago

If requirements.txt contains wrongly formatted content like

Package         Version
--------------- -----------
wheel           0.41.2

then PI accepts this without any error but returns no dependencies. Plain pip would say

ERROR: Invalid requirement: 'Package         Version' (from line 1 of requirements.txt)