best-midnight-81002
04/26/2024, 8:21 PMpoetry add somelibrary
worked well for it to find the latest version and add a ^
constraint in our pyproject.toml
. Is there a similarly convenient way to manage our 3rdparty/python/requirements.txt
as we build that up? Or how are y'all managing 3rdparty version constraints? I'm excited to have them all in one place instead of (potentially conflicting) in many pyproject.toml
s sprinkled throughout our source tree!best-midnight-81002
04/26/2024, 8:31 PMpoetry add $(cat requirements.txt)
got me bootstrapped but it's not great for ongoing maintenancebetter-van-82973
04/26/2024, 10:46 PMpyproject.toml
file in the root of the repo, and we use Poetry to add dependencies to it rather than Pants. We use the poetry_requirements
target to keep the two synced: https://www.pantsbuild.org/2.18/reference/targets/poetry_requirements
Initially migrating to a single pyproject.toml
was tough but it’s been really nice since then!best-midnight-81002
04/29/2024, 8:17 PM