add optional maintainers property to package (#5230)
* add optional package maintainers
This commit is contained in:
		 Denis Davydov
					Denis Davydov
				
			
				
					committed by
					
						 Todd Gamblin
						Todd Gamblin
					
				
			
			
				
	
			
			
			 Todd Gamblin
						Todd Gamblin
					
				
			
						parent
						
							de5111cd50
						
					
				
				
					commit
					b5a9f8ead1
				
			| @@ -162,6 +162,11 @@ def print_text_info(pkg): | |||||||
|  |  | ||||||
|     color.cprint(section_title('Homepage: ') + pkg.homepage) |     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('') | ||||||
|     color.cprint(section_title('Preferred version:  ')) |     color.cprint(section_title('Preferred version:  ')) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -545,6 +545,10 @@ class SomePackage(Package): | |||||||
|     # Verbosity level, preserved across installs. |     # Verbosity level, preserved across installs. | ||||||
|     _verbose = None |     _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): |     def __init__(self, spec): | ||||||
|         # this determines how the package should be built. |         # this determines how the package should be built. | ||||||
|         self.spec = spec |         self.spec = spec | ||||||
|   | |||||||
| @@ -32,6 +32,8 @@ class Dealii(CMakePackage): | |||||||
|     homepage = "https://www.dealii.org" |     homepage = "https://www.dealii.org" | ||||||
|     url = "https://github.com/dealii/dealii/releases/download/v8.4.1/dealii-8.4.1.tar.gz" |     url = "https://github.com/dealii/dealii/releases/download/v8.4.1/dealii-8.4.1.tar.gz" | ||||||
|  |  | ||||||
|  |     maintainers = ['davydden', 'jppelteret'] | ||||||
|  |  | ||||||
|     # Don't add RPATHs to this package for the full build DAG. |     # Don't add RPATHs to this package for the full build DAG. | ||||||
|     # only add for immediate deps. |     # only add for immediate deps. | ||||||
|     transitive_rpaths = False |     transitive_rpaths = False | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user