Repository navigation
Conversation
`_trove_to_spdx()` skipped every classifier absent from `_TROVE_SPDX`,
leaving `trove_spdx` empty and calling `_parse_spdx("")`, which parses to
`None` and raised `AttributeError` on `None.simplify()`. Since that is not
a `ValueError`, `license_from_metadata_values()` could not catch it and fall
back. It now raises `ValueError` when no classifier maps to SPDX, restoring
the documented behavior so callers can fall back to `NOASSERTION`.
Closes: python-wheel-build#1372
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Rohan Devasthale <rdevasth@redhat.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
_trove_to_spdx()skipped every classifier absent from_TROVE_SPDX, leavingtrove_spdxempty and calling_parse_spdx(""), which parses toNoneand raisedAttributeErroronNone.simplify().Since that is not a
ValueError,license_from_metadata_values()could not catch it and fall back. It now raisesValueErrorwhen no classifier maps to SPDX, restoring the documented behavior so callers can fall back toNOASSERTION.Closes: #1372