Skip to content

Improve error message when --pyproject is used with a non-PEP 621 compliant pyproject.toml #1079

Description

@aygupt1822

I am using cyclonedx-py with requirements along with --pyproject option on a python project which has a pyproject.toml but the tool exits with the following error :-

CRITICAL | CDX > Unable to build component from pyproject

Later on I discovered that pyproject.toml is not PEP 621 compliant. The message is quite generic and does not tell why it failed.

Can this error message be improved to : The supplied pyproject.toml is not PEP 621 compliant or something like that ?

Here is the pyproject.toml file I am referring to : https://github.com/ckan/ckan/blob/ckan-2.11.4/pyproject.toml

Thanks
Ayush

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions