<#19035 how to generate requirements.txt from BUIL...
# github-notifications
c
#19035 how to generate requirements.txt from BUILD file? New discussion created by jessehersch 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.
Copy code
./pants dependencies2 --dependencies2-type=3rdparty :: | sort -u > ./requirements.txt
In 2.15 there does not seem to be an equivalent of the type arg:
Copy code
`dependencies` goal options
---------------------------

List the dependencies of the input files/targets.
 
Activated by pants.backend.project_info
Config section: [dependencies]
 
  --dependencies-output-file=<path>
  PANTS_DEPENDENCIES_OUTPUT_FILE
  output_file
      default: None
      current value: None
      Output the goal's stdout to this file. If unspecified, outputs to stdout.

  --dependencies-sep=<separator>
  PANTS_DEPENDENCIES_SEP
  sep
      default: \n
      current value: \n
      String to use to separate lines in line-oriented output.

  --[no-]dependencies-transitive
  PANTS_DEPENDENCIES_TRANSITIVE
  transitive
      default: False
      current value: False
      List all transitive dependencies. If unspecified, list direct dependencies only.

  --[no-]dependencies-closed
  PANTS_DEPENDENCIES_CLOSED
  closed
      default: False
      current value: False
      Include the input targets in the output, along with the dependencies.
Jesse pantsbuild/pants