<Comment on #19035 how to generate requirements.tx...
# github-notifications
c
Comment on #19035 how to generate requirements.txt from BUILD file? Discussion answered by benjyw Interesting question. Typically there is already a requirements.txt from which the targets are generated. But it sounds like you have manual
python_requirement
targets or something like that? Anyway, in v2 you can do something like:
Copy code
./pants peek 3rdparty/python/:: | jq -r ".[].requirements | select( . != null ) | flatten[]"
pantsbuild/pants