File: coverage-trove.t

package info (click to toggle)
libregexp-pattern-license-perl 3.11.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,580 kB
  • sloc: perl: 12,506; makefile: 2; sh: 1
file content (133 lines) | stat: -rw-r--r-- 6,437 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
use Test2::V0;

use lib 't/lib';
use Test2::Tools::LicenseRegistry;

plan 1;

# Key is last segment of trove identifier, or multiword shortname
# Key is singleword shortname, or default name

# Data source (last checked 2021-08-10):
# <https://pypi.org/classifiers/>

# dirty dumps (needs further work):
# curl -s 'https://pypi.org/classifiers/' | perl -nE '/href.*License :: (?:[^:]+:: )*([^<()]+(?:\((?:([^<() ]+)|([^<()]+(?: [^<()]+)+))\))?)/ and do { say '"\"\\t\\tfield '\$1' => '\$2';\"; say \"\\t\\tfield '\$3' => '';\" if \$3 }" | sort

like(
	license_org_metadata('trove'),
	hash {
		field 'Academic Free License (AFL)'          => 'AFL';
		field 'Aladdin Free Public License (AFPL)'   => 'AFPL';
		field 'Apache Software License'              => 'Apache';
		field 'Apple Public Source License'          => 'APSL';
		field 'Artistic License'                     => 'Artistic';
		field 'Attribution Assurance License'        => 'AAL';
		field 'BSD License'                          => 'BSD';
		field 'Boost Software License 1.0 (BSL-1.0)' => 'BSL-1.0';
		field 'CC0 1.0 Universal (CC0 1.0)'          => 'CC0-1.0';
		field 'CC0 1.0'                              => 'CC0-1.0';
		field
			'CEA CNRS Inria Logiciel Libre License, version 2.1 (CeCILL-2.1)'
			=> 'CeCILL-2.1';
		field 'CeCILL-B Free Software License Agreement (CECILL-B)' =>
			'CECILL-B';
		field 'CeCILL-C Free Software License Agreement (CECILL-C)' =>
			'CECILL-C';
		field 'Common Development and Distribution License 1.0 (CDDL-1.0)' =>
			'CDDL-1.0';
		field 'Common Public License' => 'CPL';

#		field 'DFSG approved' => '';
		field 'Eclipse Public License 1.0 (EPL-1.0)'         => 'EPL-1.0';
		field 'Eclipse Public License 2.0 (EPL-2.0)'         => 'EPL-2.0';
		field 'Eiffel Forum License (EFL)'                   => 'EFL';
		field 'Eiffel Forum License'                         => 'EFL';
		field 'European Union Public Licence 1.0 (EUPL 1.0)' => 'EUPL-1.0';
		field 'EUPL 1.0'                                     => 'EUPL-1.0';
		field 'European Union Public Licence 1.1 (EUPL 1.1)' => 'EUPL-1.1';
		field 'EUPL 1.1'                                     => 'EUPL-1.1';
		field 'European Union Public Licence 1.2 (EUPL 1.2)' => 'EUPL-1.2';
		field 'EUPL 1.2'                                     => 'EUPL-1.2';

#		field 'Free For Educational Use' => '';
#		field 'Free For Home Use' => '';
#		field 'Free To Use But Restricted' => '';
#		field 'Free for non-commercial use' => '';
#		field 'Freely Distributable' => '';
#		field 'Freeware' => '';
		field 'GNU Affero General Public License v3' => 'AGPLv3';
		field 'GNU Affero General Public License v3 or later (AGPLv3+)' =>
			'AGPLv3+';
		field 'GNU Free Documentation License (FDL)'            => 'FDL';
		field 'GNU General Public License (GPL)'                => 'GPL';
		field 'GNU General Public License v2 (GPLv2)'           => 'GPLv2';
		field 'GNU General Public License v2 or later (GPLv2+)' => 'GPLv2+';
		field 'GNU General Public License v3 (GPLv3)'           => 'GPLv3';
		field 'GNU General Public License v3 or later (GPLv3+)' => 'GPLv3+';
		field 'GNU Lesser General Public License v2 (LGPLv2)'   => 'LGPLv2';
		field 'GNU Lesser General Public License v2 or later (LGPLv2+)' =>
			'LGPLv2+';
		field 'GNU Lesser General Public License v3 (LGPLv3)' => 'LGPLv3';
		field 'GNU Lesser General Public License v3 or later (LGPLv3+)' =>
			'LGPLv3+';
		field 'GNU Library or Lesser General Public License (LGPL)' => 'LGPL';

#		field 'GUST Font License 1.0' => '';
#		field 'GUST Font License 2006-09-30' => '';
		field 'Historical Permission Notice and Disclaimer (HPND)' => 'HPND';
		field 'IBM Public License'                                 => 'IPL';
		field 'ISC License (ISCL)'                                 => 'ISCL';
		field 'Intel Open Source License'                          => 'Intel';
		field 'Jabber Open Source License'         => 'jabberpl';
		field 'MIT License'                        => 'MIT';
		field 'MIT No Attribution License (MIT-0)' => 'MIT-0';
		field 'MITRE Collaborative Virtual Workspace License (CVW)' => 'CVW';
		field 'MirOS License (MirOS)'                => 'MirOS';
		field 'Motosoto License'                     => 'Motosoto';
		field 'Mozilla Public License 1.0 (MPL)'     => 'MPL-1.0';
		field 'Mozilla Public License 1.1 (MPL 1.1)' => 'MPL-1.1';
		field 'MPL 1.1'                              => 'MPL-1.1';
		field 'Mozilla Public License 2.0 (MPL 2.0)' => 'MPL-2.0';
		field 'MPL 2.0'                              => 'MPL-2.0';
		field 'Nethack General Public License'       => 'NGPL';
		field 'Netscape Public License (NPL)'        => 'NPL';
		field 'Nokia Open Source License (NOKOS)'    => 'NOKOS';
		field 'Nokia Open Source License'            => 'NOKOS';
		field 'Open Group Test Suite License'        => 'OGTSL';
		field 'Open Software License 3.0 (OSL-3.0)'  => 'OSL-3.0';

#		field 'OSI Approved' => '';
#		field 'Other/Proprietary License' => '';
		field 'PostgreSQL License'                   => 'PostgreSQL';
		field 'Public Domain'                        => 'public-domain';
		field 'Python License (CNRI Python License)' => 'Python-2.0';
		field 'CNRI Python License'                  => 'Python-2.0';
		field 'Python Software Foundation License'   => 'PSF-2.0';
		field 'Qt Public License (QPL)'              => 'QPL';

#		field 'Repoze Public License' => '';
		field 'Ricoh Source Code Public License'              => 'RSCPL';
		field 'SIL Open Font License 1.1 (OFL-1.1)'           => 'OFL-1.1';
		field 'Sleepycat License'                             => 'Sleepycat';
		field 'Sun Industry Standards Source License (SISSL)' => 'SISSL';
		field 'Sun Public License'                            => 'SPL';
		field 'The Unlicense (Unlicense)'                     => 'Unlicense';
		field 'Universal Permissive License (UPL)'            => 'UPL';
		field 'University of Illinois/NCSA Open Source License' => 'NCSA';
		field 'Vovida Software License 1.0'                     => 'VSL-1.0';
		field 'W3C License'                                     => 'W3C';
		field 'X.Net License'                                   => 'Xnet';
		field 'Zope Public License'                             => 'ZPL';
		field 'zlib/libpng License'                             => 'Zlib';

		# default summaries
		field 'a BSD-style license'  => 'BSD';
		field 'an MIT-style license' => 'MIT';

		end();
	},
	'coverage of PyPA/PyPI trove classifiers'
);

done_testing;