https://pantsbuild.org/ logo
s

shy-advantage-49800

12/29/2022, 4:20 PM
I'm creating a monorepo, and they use poetry. If I remove one of the internal packages from the
pyproject.toml
dependencies, I don't see that package being added to the wheel metadata. Example: I have both packages:
data-types
and `entities`; and
entities
depends on
data-types
, if I remove
data-types
from the
pyprojec.toml
, the latter is not inferred anyway. I'm using the following macro:
Copy code
def poetry_distribution(name, package, **kwargs):
    resources(name="package_data", sources=["pyproject.toml"])

    python_distribution(
        name="dist",
        dependencies=[":package_data", f"src/python/{name}/{package}"],
        provides=python_artifact(name=name),
        generate_setup=False,
    )
Does anyone know what I'm doing wrong?
r

refined-addition-53644

12/29/2022, 4:35 PM
Just checking: Is it defined as an explicit dependency?
s

shy-advantage-49800

12/29/2022, 4:46 PM
wdym?
r

refined-addition-53644

12/29/2022, 4:56 PM
I assume there are wheels for
entities
and
data-types
. Does the wheel for
entities
has
data-types
mentioned as a dependency?
s

shy-advantage-49800

12/29/2022, 4:59 PM
nop, shouldn't it be able to infer it? 🤔
r

refined-addition-53644

12/29/2022, 5:00 PM
How? Who is publishing these wheels?
Is this internal?
s

shy-advantage-49800

12/29/2022, 5:00 PM
yes, internal
r

refined-addition-53644

12/29/2022, 5:01 PM
yeah so it should show up in the meta-data of the wheel. Otherwise pants (more precisely pex) won’t be able to find it
9 Views