https://pantsbuild.org/ logo
#general
Title
# general
p

polite-garden-50641

01/17/2023, 4:36 PM
you don't need to do that when using pants. you can have a single
requirements.txt
and when creating deploy-able targets (like wheels, pex files, etc...) pants will only include the needed deps. (because of dep inference).
This is not how most stuff works in the python eco-system, since in a lot of projects you have multiple reqs files trying to manage the different things that needed to be done with each (generating docs, tests, linters, etc...) it is a PITA to manage those and Pants makes it so much easier. one reqs file for the entire repo and pants only takes the actual things that are needed from the file.