icy-account-9671
02/03/2022, 8:50 PMhigh-yak-85899
02/03/2022, 9:00 PMpython_requirement
targets throughout your repo and declare them closer to targets (though not so much that it's prohibitive to bump your usages of click from v6 to v7 for example).high-yak-85899
02/03/2022, 9:01 PMhundreds-father-404
02/03/2022, 9:01 PMhigh-yak-85899
02/03/2022, 9:01 PMhappy-kitchen-89482
02/03/2022, 9:40 PMhappy-kitchen-89482
02/03/2022, 9:41 PMhappy-kitchen-89482
02/03/2022, 9:41 PMhappy-kitchen-89482
02/03/2022, 9:43 PMhappy-kitchen-89482
02/03/2022, 9:43 PMhappy-kitchen-89482
02/03/2022, 9:44 PMhappy-kitchen-89482
02/03/2022, 9:44 PMhappy-kitchen-89482
02/03/2022, 9:45 PMpython_requirements()
?icy-account-9671
02/03/2022, 10:08 PMincalculable-yacht-75851
02/03/2022, 10:09 PMmv ./monorepo/my-project ./my-new-repo
. Keeping the requirements.txt in sync w/ Pants is essential.
Note: The projects we are moving into our monorepo are years old. Not all are Python. Eventually, we'll likely have similar concerns when Pants supports npm, yarn, etc.hundreds-father-404
02/03/2022, 10:10 PMpython_requirements()
uses the resolve 'projectA', whereas another one uses 'projectB'. (Resolve is a logical name for a particular lockfile)
Then, you say what resolves particular code uses via the python_sources
and python_tests
targets, and Pants will only infer deps on requirements coming from that resolveicy-account-9671
02/03/2022, 10:11 PMicy-account-9671
02/03/2022, 10:12 PMhundreds-father-404
02/03/2022, 10:14 PMi imagine tailor won't necessarily be able to populate those sources with the correct resolves thoughFor now at least, not yet. I personally really want to see more powerful
tailor
features like being able to set default args. Maybe even plugin hooks that let you insert your own logic
The other angle is if we can make it easier to apply metadata to multiple targets: https://github.com/pantsbuild/pants/issues/13767high-yak-85899
02/03/2022, 10:15 PMhundreds-father-404
02/03/2022, 10:15 PMrefined-addition-53644
02/03/2022, 10:57 PMhappy-kitchen-89482
02/03/2022, 11:51 PM