hundreds-book-52492
12/19/2023, 1:04 PMpyproject.toml
to declare dependencies. Distribution B depends on distribution A, so it is listed in the dependencies
list of B’s pyproject.toml
in addition to the python_distribution
for B depending on that of A. When I try generating a lockfile, I get an error like No matching distribution found for A==0.0.1
. Other operations that interact with the lockfile also fail trying to look it up.
Removing that line from the pyproject.toml
causes the lockfile to generate as expected, but then the distribution for B
is wrong because its pyproject.toml
doesn’t list A
as a dependency. My question then is, what’s the expected way to declare peer dependencies?happy-kitchen-89482
12/19/2023, 8:14 PMhappy-kitchen-89482
12/19/2023, 8:15 PMhappy-kitchen-89482
12/19/2023, 8:16 PMhappy-kitchen-89482
12/19/2023, 8:16 PMhappy-kitchen-89482
12/19/2023, 8:16 PMhundreds-book-52492
12/20/2023, 12:58 PMsetup.py
- setuptools is trying to get people to move away from it after all. Is there a way to get pants to read the pyproject for all other dependencies but exclude built in ones? I tried using overrides but it didn’t seem to have an effect. Or have it add the local dependencies to the pyprojecthappy-kitchen-89482
12/20/2023, 4:49 PMhappy-kitchen-89482
12/20/2023, 4:50 PMhappy-kitchen-89482
12/20/2023, 4:50 PMhappy-kitchen-89482
12/20/2023, 4:51 PM