fix: make pep621 license detections type-aware by manavgup · Pull Request #920 · CycloneDX/cyclonedx-python

@manavgup

Signed-off-by: Manav Gupta <manavg@gmail.com>

jkowalleck

@manavgup

Signed-off-by: Manav Gupta <manavg@gmail.com>

jkowalleck

@jkowalleck jkowalleck changed the title Fix: update pep621 logic and add unit tests fix: made pep621 type-aware

Jun 24, 2025

@jkowalleck jkowalleck changed the title fix: made pep621 type-aware fix: make pep621 type-aware

Jun 24, 2025

@manavgup

- Simplified license handling to only process dict (PEP 621) values.
- Silently skip string/other types.
- Combined assignment and type check for clarity.

Signed-off-by: Manav Gupta <manavg@gmail.com>

jkowalleck

@manavgup

…ion/test_utils_pep621.py, and improved test coverage

Signed-off-by: Manav Gupta <manavg@gmail.com>

@jkowalleck jkowalleck changed the title fix: make pep621 type-aware fix: make pep621licensedetections type-aware

Jun 25, 2025

jkowalleck

@jkowalleck jkowalleck changed the title fix: make pep621licensedetections type-aware fix: make pep621license detections type-aware

Jun 25, 2025
Signed-off-by: Manav Gupta <manavg@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Manav Gupta <manavg@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>

@jkowalleck jkowalleck changed the title fix: make pep621license detections type-aware fix: make pep621 license detections type-aware

Jun 26, 2025

@jkowalleck

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>

jkowalleck

@jkowalleck

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>