Skip to content

Error with tool.poetry.packages #8

@jbsilva

Description

@jbsilva

The union fails if a pyproject.toml contains tool.poetry.packages as described in https://python-poetry.org/docs/pyproject/:

[tool.poetry]
# ...
packages = [
    { include = "my_package" },
    { include = "extra_package/**/*.py" },
]

The error is as follows:

d[k] = process(v)
File "...py3.10/lib/python3.10/site-packages/toml_union/toml_union.py", line 224, in process
assert all('name' in item for item in v), v
AssertionError: [{'include': 'my_package'}]

Unfortunately I won't be able to debug any further as I decided for another approach for my project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions