You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some tools like nix would benefit from consuming the metadata and requirement tree that pip-compile naturally collects. E.g. it could automatically generate it's own distributions of python packages, which would be useful for poetry2nix-like applications and I assume that other packaging tools could benefit from such output.
Describe the solution you'd like
I'd like to see a --json or --toml option to output that information.
I have made filthy hack on fork just for illustration purposes. On my fork pip-compile --resolver=backtracking --emit-trusted-host --annotate --generate-hashes requirements.in -o /tmp/requirements_deleteme.txt turns the following requirements.in:
requests
-e ./ # with `./` being the pip-tools directory itself
If I were to actually introduce such a --json output option and make a PR out of a clean and sane version of my fork, would such a PR be welcome? Haven't given much thought about a proper implementation, but I think it would involve a JsonWriter class similar to piptools.writer.OutputWriter.
What's the problem this feature will solve?
Some tools like nix would benefit from consuming the metadata and requirement tree that pip-compile naturally collects. E.g. it could automatically generate it's own distributions of python packages, which would be useful for poetry2nix-like applications and I assume that other packaging tools could benefit from such output.
Describe the solution you'd like
I'd like to see a
--json
or--toml
option to output that information.I have made filthy hack on fork just for illustration purposes. On my fork
pip-compile --resolver=backtracking --emit-trusted-host --annotate --generate-hashes requirements.in -o /tmp/requirements_deleteme.txt
turns the followingrequirements.in
:into this JSON:
The text was updated successfully, but these errors were encountered: