Skip to content

Commit 547a61e

Browse files
committed
add common licenses
1 parent bf04d55 commit 547a61e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,18 @@
1515

1616
licenses = {
1717
'apache2': ('Apache Software License 2.0','OSI Approved :: Apache Software License'),
18+
'mit': ('MIT License', 'OSI Approved :: MIT License'),
19+
'gpl2': ('GNU General Public License v2', 'OSI Approved :: GNU General Public License v2 (GPLv2)'),
20+
'gpl3': ('GNU General Public License v3', 'OSI Approved :: GNU General Public License v3 (GPLv3)'),
21+
'bsd3': ('BSD License', 'OSI Approved :: BSD License'),
1822
}
1923
statuses = [ '1 - Planning', '2 - Pre-Alpha', '3 - Alpha',
2024
'4 - Beta', '5 - Production/Stable', '6 - Mature', '7 - Inactive' ]
2125
py_versions = '2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8'.split()
2226

2327
requirements = cfg.get('requirements','').split()
2428
min_python = cfg['min_python']
25-
lic = licenses.get(cfg['license'], (cfg['license'], None))
29+
lic = licenses.get(cfg['license'].lower(), (cfg['license'], None))
2630

2731
setuptools.setup(
2832
name = cfg['lib_name'],

0 commit comments

Comments
 (0)