PasaOpasen / toml-union

Script to union several *.toml files (usually Poetry pyproject.toml) to simplify manual dependences resolving
MIT License
10 stars 1 forks source link

Error with tool.poetry.packages #8

Open jbsilva opened 6 months ago

jbsilva commented 6 months ago

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.

PasaOpasen commented 6 months ago

thank u for your response, I will do something with that