add optional maintainers property to package (#5230)

* add optional package maintainers
This commit is contained in:
Denis Davydov
2017-08-30 19:56:24 +02:00
committed by Todd Gamblin
parent de5111cd50
commit b5a9f8ead1
3 changed files with 11 additions and 0 deletions

View File

@@ -162,6 +162,11 @@ def print_text_info(pkg):
color.cprint(section_title('Homepage: ') + pkg.homepage)
if len(pkg.maintainers) > 0:
mnt = " ".join(['@@' + m for m in pkg.maintainers])
color.cprint('')
color.cprint(section_title('Maintainers: ') + mnt)
color.cprint('')
color.cprint(section_title('Preferred version: '))

View File

@@ -545,6 +545,10 @@ class SomePackage(Package):
# Verbosity level, preserved across installs.
_verbose = None
#: List of strings which contains GitHub usernames of package maintainers.
#: Do not include @ here in order not to unnecessarily ping the users.
maintainers = []
def __init__(self, spec):
# this determines how the package should be built.
self.spec = spec