Skip to content

Commit

Permalink
fix: update license name for EPL-1.0 and EPL-2.0 to be compatible wit…
Browse files Browse the repository at this point in the history
…h latest trove classifiers
  • Loading branch information
netomi committed Oct 27, 2024
1 parent 589ecb0 commit ba63506
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/poetry/core/spdx/data/licenses.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
],
Expand Down
9 changes: 9 additions & 0 deletions tests/spdx/test_license.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit ba63506

Please sign in to comment.