Add authors file.

This commit is contained in:
Bastian Kleineidam 2013-04-25 19:00:09 +02:00
parent 7110ec9cd9
commit 39f930cd9f
2 changed files with 24 additions and 1 deletions

10
doc/authors.txt Normal file
View file

@ -0,0 +1,10 @@
# Project initiators and past maintainers
Tristan Seligmann
Jonathan Jacobs
# Current maintainer
Bastian Kleineidam
# Patches and other contributions
Tobias Gruetzmacher
Dirk Reiners

View file

@ -15,6 +15,7 @@ It includes the following features:
from __future__ import print_function from __future__ import print_function
import os import os
import sys import sys
import codecs
import re import re
import glob import glob
import shutil import shutil
@ -402,12 +403,24 @@ class MyRegister (register, object):
return data return data
def get_authors():
"""Read list of authors from a text file, filtering comments."""
authors = []
authorfile = os.path.join('doc', 'authors.txt')
with codecs.open(authorfile, 'r', 'utf-8') as f:
for line in f:
line = line.strip()
if line and not line.startswith(u'#'):
authors.append(line)
return u", ".join(authors)
args = dict( args = dict(
name = AppName, name = AppName,
version = AppVersion, version = AppVersion,
description = 'a comic strip downloader and archiver', description = 'a comic strip downloader and archiver',
keywords = 'comic,webcomic,downloader,archiver', keywords = 'comic,webcomic,downloader,archiver',
author = 'Tristan Seligmann, Jonathan Jacobs, Bastian Kleineidam, Tobias Gruetzmacher', author = get_authors(),
maintainer = 'Bastian Kleineidam', maintainer = 'Bastian Kleineidam',
maintainer_email = 'bastian.kleineidam@web.de', maintainer_email = 'bastian.kleineidam@web.de',
license = 'MIT', license = 'MIT',