Open jwygoda opened 3 years ago
Hello @jwygoda,
Thanks for the issue! Currently, pip-compile
is compatible with pip
's requirements file format (see related discussion in #1063). While I'm not sure it should support parse_requirements
from setuptools also, but I'd like to see how would be resolved pypa/setuptools#2422 issue.
Hi @atugushev, Your link to the requirements file format was really helpful, thanks. I'll follow up on it in setuptools issue.
What's the problem this feature will solve?
I'd like
pip-compile
to be compatible withparse_requirements
from setuptools. It doesn't support multiple line continuations in hashes.Describe the solution you'd like
I'd like to add a cli option to generate hashes without line continuations. Would patch with additional cli option be accepted?
Alternative Solutions
sed ':a;N;$!ba;s/\\\n/ /g' requirements.txt
before passing requirements toparse_requirements
.Additional context
https://github.com/pypa/setuptools/issues/2422