jazzband / pip-tools

A set of tools to keep your pinned Python dependencies fresh.
https://pip-tools.rtfd.io
BSD 3-Clause "New" or "Revised" License
7.68k stars 609 forks source link

Make pip-compile compatible with parse_requirements() from setuptools #1280

Open jwygoda opened 3 years ago

jwygoda commented 3 years ago

What's the problem this feature will solve?

I'd like pip-compile to be compatible with parse_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

Additional context

https://github.com/pypa/setuptools/issues/2422

atugushev commented 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.

jwygoda commented 3 years ago

Hi @atugushev, Your link to the requirements file format was really helpful, thanks. I'll follow up on it in setuptools issue.