how to generate requirements.txt from BUILD file? #19035
-
Hi pants experts! Anyone know how to generate a python requirements.txt file from all the libs in 3rdparty/BUILD? I am using pants 2.15.0 in pants 1.3.0 (ancient I know 😊) I used to do this.
In 2.15 there does not seem to be an equivalent of the type arg:
Jesse |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Interesting question. Typically there is already a requirements.txt from which the targets are generated. But it sounds like you have manual Anyway, in v2 you can do something like:
|
Beta Was this translation helpful? Give feedback.
-
For the specific task of creating a venv of a resolve's set of requirements, there's the |
Beta Was this translation helpful? Give feedback.
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: