-
-
Notifications
You must be signed in to change notification settings - Fork 611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support outputting pip-compile in a structured format (e.g. json) #1377
Comments
This would potentially be useful for #1484 as well, although not strictly necessary! For our purposes, a schema like this (at the absolute minimum) would be sufficient: [
{
"name": "some-package-name",
"version": "1.0.0",
},
...
] No particular order or other information would benefit our particular use case, but additional constraints wouldn't hurt us either! |
Poetry has a poetry.lock. What other projects are there? Could we agree with them on for example a |
As I said in the duplicate, I have a fork, that filthily hacks part of this. So my question is, would a proper implementation be welcome? Don't wanna put time into something, that will not be reviewed or is out of scope or that someone else is already closing in on. |
Would #2124 supersede this? |
It would be useful if, in addition to the
requirements.txt
format,pip-compile
also had the option of outputting the requirements and what it knows about each requirement in a standard format like json. This would give users much greater ability to create customrequirements.txt
files, without having to rely on fragile parsing ofpip-compile
'srequirements.txt
output.The structured data could include things like:
--generate-hashes
), as well as distinguishing the "exact" hash (e.g. for Provide a way to limit to a single hash per requirement when generating hashes #1330)--allow-unsafe
. This would give users more control over how unsafe requirements should be handled.pip-compile
(for convenience, since these would also be constructible manually from other data)pip-compile
(for convenience, if the user would like to include them as is)This feature would give users a way to address a number of issues in this tracker, in the absence of a fix in
pip-tools
. Here is a partial list:--no-deps
) for individual requirements #817 ("Allow to skip dependencies")The text was updated successfully, but these errors were encountered: