You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
want: []types.Library{{Name: "distlib", Version: "0.3.1", License: "Python Software Foundation License"}},
80
+
},
81
+
{
82
+
name: "wheel METADATA",
83
+
// Input defines "Classifier: License" but it ends at "OSI Approved" which doesn't define any specific license, thus "License" field is added to results
84
+
input: "testdata/asyncssh-2.14.2.METADATA",
85
+
86
+
want: []types.Library{{Name: "asyncssh", Version: "2.14.2", License: "Eclipse Public License v2.0"}},
87
+
},
88
+
{
89
+
name: "wheel METADATA",
90
+
// Input defines multiple "Classifier: License"
91
+
input: "testdata/pyphen-0.14.0.METADATA",
92
+
93
+
want: []types.Library{
94
+
{Name: "pyphen", Version: "0.14.0", License: "GNU General Public License v2 or later (GPLv2+), GNU Lesser General Public License v2 or later (LGPLv2+), Mozilla Public License 1.1 (MPL 1.1)"},
"Apache License,Version 2.0, OSET Public License version 2.1",
52
-
[]string{"Apache License, Version 2.0", "OSET Public License version 2.1"},
71
+
[]string{
72
+
"Apache License, Version 2.0",
73
+
"OSET Public License version 2.1",
74
+
},
53
75
},
54
76
{
55
77
"the license starts with `ver`",
56
78
"verbatim and BSD-4-clause",
57
-
[]string{"verbatim", "BSD-4-clause"},
79
+
[]string{
80
+
"verbatim",
81
+
"BSD-4-clause",
82
+
},
83
+
},
84
+
{
85
+
"the license with `or later`",
86
+
"GNU Affero General Public License v3 or later (AGPLv3+)",
87
+
[]string{
88
+
"GNU Affero General Public License v3 or later (AGPLv3+)",
89
+
},
90
+
},
91
+
{
92
+
"Python license exceptions",
93
+
"GNU Library or Lesser General Public License (LGPL), Common Development and Distribution License 1.0 (CDDL-1.0), Historical Permission Notice and Disclaimer (HPND)",
94
+
[]string{
95
+
"GNU Library or Lesser General Public License (LGPL)",
96
+
"Common Development and Distribution License 1.0 (CDDL-1.0)",
97
+
"Historical Permission Notice and Disclaimer (HPND)",
0 commit comments