Urk, I'm sorry to re-ask this, but there was a sni...
# general
e
Urk, I'm sorry to re-ask this, but there was a snippet that allows export of requirements (python_requirement dependencies) to a "requirements.txt" like format, and I can't find it; I'm assuming the new way would be to use something like
./pants dependencies --transitive some_target | xargs ./pants filter --target-type=python_requirement | some_export_stanza
but I'm a bit vague on that last part... (BTW, very nice allowing for the overrides in
python_requirements
for things like the notorious missing setuptools/pkg_resources and other undeclared third-party dependencies; that worked wonderfully and cleaned up a lot)
❤️ 1
w
the last bit is:
Copy code
./pants peek .. | jq '.[]["requirements"][]'