Skip to content

Commit 38e639a

Browse files
authored
Merge pull request #107 from baszalmstra/fix/issue-106
fix: EDL-1.0 is BSD-3-Clause
2 parents 8e6ae7e + 3b0b0b4 commit 38e639a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

vinca/license_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,14 @@
4545
"lgplv3": "LGPL-3.0-only",
4646
"lgpl-3": "LGPL-3.0-only",
4747
"lgpl-3.0": "LGPL-3.0-only",
48+
"LGPL (amcl)": "LGPL-2.1-or-later",
4849
# Mozilla/MPL variants
4950
"mozilla": "MPL-2.0",
5051
"mpl": "MPL-2.0",
5152
"mozilla public license version 1.1": "MPL-1.1",
5253
# Eclipse variants
5354
"eclipse public license 2.0": "EPL-2.0",
54-
"eclipse distribution license 1.0": "EDL-1.0",
55+
"eclipse distribution license 1.0": "BSD-3-Clause",
5556
# Boost variants
5657
"boost": "BSL-1.0",
5758
"boost software license": "BSL-1.0",
@@ -63,6 +64,7 @@
6364
# Creative Commons
6465
"cc by-nc-sa 4.0": "CC-BY-NC-SA-4.0",
6566
"creative commons zero v1.0 universal": "CC0-1.0",
67+
"creative commons": "CC0-1.0", # The version is an assumption
6668
# Public Domain (choosing Unlicense as more appropriate for code)
6769
"public domain": "Unlicense",
6870
}

vinca/test_license_utils.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ def test_all_todos():
9393

9494
def test_license_with_spaces_converted():
9595
"""Test licenses with spaces have spaces replaced with hyphens."""
96-
result = convert_to_spdx_license(["Creative Commons"])
97-
assert result == "LicenseRef-Creative-Commons"
96+
result = convert_to_spdx_license(["My License"])
97+
assert result == "LicenseRef-My-License"
9898

9999

100100
def test_license_with_slashes_converted():
@@ -250,7 +250,9 @@ def test_additional_license_variants():
250250

251251
# Eclipse variants
252252
assert convert_to_spdx_license(["Eclipse Public License 2.0"]) == "EPL-2.0"
253-
assert convert_to_spdx_license(["Eclipse Distribution License 1.0"]) == "EDL-1.0"
253+
assert (
254+
convert_to_spdx_license(["Eclipse Distribution License 1.0"]) == "BSD-3-Clause"
255+
)
254256

255257
# Zlib
256258
assert convert_to_spdx_license(["zlib License"]) == "Zlib"

0 commit comments

Comments
 (0)