Skip to content

Commit a68b232

Browse files
committed
fix missing id regexp; update author list etc
1 parent 6e98cfb commit a68b232

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

autolice.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
contributors = {
99
'anya' : 'Anya Helene Bagge',
1010
'biz002' : 'Tero Hasu',
11-
'eva' : 'Anya Helene Bagge'
11+
'eva' : 'Anya Helene Bagge',
12+
'andreash' : 'Andreas Hjortland',
13+
'magne' : 'Magne Haveraaen'
1214
}
1315
# list of copyright owners that should have their years updated from the log
1416
autoYear = []
@@ -17,10 +19,12 @@
1719
autoCopyright = {
1820
"University of Bergen" : "*",
1921
"Anya Helene Bagge" : "Anya Helene Bagge",
20-
"Tero Hasu" : "Tero Hasu"
22+
"Tero Hasu" : "Tero Hasu",
23+
"Magne Haveraaen" : "Magne Haveraaen"
2124
}
2225

2326
standard_licenses = [("", {"GPLv3+", "EPLv1"})]
27+
#standard_licenses = [("", {"MIT"})]
2428

2529
# format for copyright lines
2630
fmt_copyright = "Copyright (c) %s %s\n"
@@ -50,6 +54,7 @@
5054
re_eplIdLine = re.compile(r'.*(http://www.eclipse.org/legal/epl-v10.html).*') # lines identifying an EPLv1.0 notice
5155
re_gplLine = re.compile(r'.*(free software: you can redistribute it|GNU General Public License|any later version\.|http://www.gnu.org/licenses/).*') # lines in a GPL notice
5256
re_gplIdLine = re.compile(r'.*(Free Software Foundation, either version 3 of the License, or).*') # lines identifying a GPLv3+ notice
57+
re_mitIdLine = re.compile(r'.*(copy, modify, merge, publish, distribute, sublicense).*') # line identifing a MIT notice
5358
re_mitLine = re.compile(r'.*(hereby granted, free of charge|software and associated documentation|Software without restriction|copy, modify, merge, publish, distribute, sublicense|and to permit persons to|do so, subject to the following conditions|substantial portions of the Software|WITHOUT WARRANTY OF ANY KIND|BUT NOT LIMITED TO THE WARRANTIES|PARTICULAR PURPOSE AND NONINFRINGEMENT|BE LIABLE FOR ANY CLAIM|WHETHER IN AN ACTION OF CONTRACT|THE SOFTWARE).*')
5459
re_moreInfoLine = re.compile(r'.*See.*for more info.*')
5560
re_copyright = re.compile(r'\s*Copyright\s*(\([cC]\)|©)\s*([0-9–, -]*)\s*(.*)$') # copyright lines
@@ -213,7 +218,7 @@ def decodeCopyright(copy):
213218
elif re_gplIdLine.match(l):
214219
licenses.add("GPLv3+")
215220
mode = 'n'
216-
elif re_gplIdLine.match(l):
221+
elif re_mitIdLine.match(l):
217222
licenses.add("MIT")
218223
mode = 'n'
219224
elif re_eplLine.match(l) or re_gplLine.match(l) or re_mitLine.match(l) or re_moreInfoLine.match(l):

0 commit comments

Comments
 (0)