diff --git a/src/poetry/core/spdx/data/licenses.json b/src/poetry/core/spdx/data/licenses.json index 030828a2d..f6ea05a64 100644 --- a/src/poetry/core/spdx/data/licenses.json +++ b/src/poetry/core/spdx/data/licenses.json @@ -1060,12 +1060,12 @@ false ], "EPL-1.0": [ - "Eclipse Public License 1.0", + "Eclipse Public License 1.0 (EPL-1.0)", true, false ], "EPL-2.0": [ - "Eclipse Public License 2.0", + "Eclipse Public License 2.0 (EPL-2.0)", true, false ], diff --git a/tests/spdx/test_license.py b/tests/spdx/test_license.py index d5b2f5c37..439d384d3 100644 --- a/tests/spdx/test_license.py +++ b/tests/spdx/test_license.py @@ -12,6 +12,15 @@ def test_classifier_name() -> None: ) +def test_classifier_name_epl_2_0() -> None: + license = license_by_id("epl-2.0") + + assert ( + license.classifier_name + == "Eclipse Public License 2.0 (EPL-2.0)" + ) + + def test_classifier_name_no_classifer_osi_approved() -> None: license = license_by_id("LiLiQ-R-1.1")