Open hexagonrecursion opened 4 years ago
Given a file line-bug.txt with the following contents
requests==2.25.0 \ # comment
import requirements list(requirements.parse(Path('line-bug.txt').read_text(encoding='utf8')))
throws an exception
... ~/.local/share/virtualenvs/pip-OwC7W1fl/lib/python3.8/site-packages/pkg_resources/__init__.py in parse(s) 3133 @staticmethod 3134 def parse(s): -> 3135 req, = parse_requirements(s) 3136 return req 3137 ValueError: not enough values to unpack (expected 1, got 0)
But pip works fine:
pip install --target "`mktemp -d`" -r line-bug.txt
Given a file line-bug.txt with the following contents
throws an exception
But pip works fine: