fresh-continent-76371
11/30/2023, 2:06 AMpyproject.toml
in our repo (along with other docker, an original pyproject.toml
project + other things).
the two python projects both use numpy, and in their pyproject.toml
are using the same version.
both BUILD files, load the requirements from poetry
poetry_requirements(
name = "reqs",
resolve = "python-default",
source = "pyproject.toml",
)
and both, use the same resolver.
I am now seeing that pants complains of inability to resolve numpy
on both projects. One is noisier than the other,; numpy is the only library commonly used between both.
It seems wrong to need to explicitly declare in each project, which of the pair to use
BUILD projecta,
dependencies = [ "lib/projecta:reqs#numpy" ]
dependencies = [ "lib/projectb:reqs#numpy" ]
Should I be using a separate resolve for each project ?better-van-82973
11/30/2023, 2:43 AMnumpy
is the only shared dependency between the two projects now, but do you anticipate there being more shared dependencies in the future?
IMO, if you would want both projects to share dependencies/code, go with a single resolve. If you want them to be fully separate and not share dependencies or code, go with separate resolves.fresh-continent-76371
11/30/2023, 4:38 AM