I'm creating a monorepo, and they use poetry. If I...
# general
s
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
Just checking: Is it defined as an explicit dependency?
s
wdym?
r
I assume there are wheels for
entities
and
data-types
. Does the wheel for
entities
has
data-types
mentioned as a dependency?
s
nop, shouldn't it be able to infer it? 🤔
r
How? Who is publishing these wheels?
Is this internal?
s
yes, internal
r
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