File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 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" ,
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}
Original file line number Diff line number Diff line change @@ -93,8 +93,8 @@ def test_all_todos():
9393
9494def 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
100100def 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"
You can’t perform that action at this time.
0 commit comments