py-pytest-html recipe (#22221)
* py-pytest-html recipe * added missing deps + copyright * Update var/spack/repos/builtin/packages/py-pytest-html/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> * Update var/spack/repos/builtin/packages/py-pytest-metadata/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
		
							
								
								
									
										23
									
								
								var/spack/repos/builtin/packages/py-pytest-html/package.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								var/spack/repos/builtin/packages/py-pytest-html/package.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | ||||
| # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other | ||||
| # Spack Project Developers. See the top-level COPYRIGHT file for details. | ||||
| # | ||||
| # SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||||
| 
 | ||||
| from spack import * | ||||
| 
 | ||||
| 
 | ||||
| class PyPytestHtml(PythonPackage): | ||||
|     """pytest-html is a plugin for pytest that generates | ||||
|     a HTML report for test results | ||||
|     """ | ||||
| 
 | ||||
|     homepage = "https://github.com/pytest-dev/pytest-html" | ||||
|     pypi = "pytest-html/pytest-html-3.1.1.tar.gz" | ||||
| 
 | ||||
|     version('3.1.1', sha256='3ee1cf319c913d19fe53aeb0bc400e7b0bc2dbeb477553733db1dad12eb75ee3') | ||||
| 
 | ||||
|     depends_on('python@3.6:', type=('build', 'run')) | ||||
|     depends_on('py-setuptools', type='build') | ||||
|     depends_on('py-setuptools-scm', type='build') | ||||
|     depends_on('py-pytest@5.0:5.999,6.0.1:', type=('build', 'run')) | ||||
|     depends_on('py-pytest-metadata', type=('build', 'run')) | ||||
| @@ -0,0 +1,20 @@ | ||||
| # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other | ||||
| # Spack Project Developers. See the top-level COPYRIGHT file for details. | ||||
| # | ||||
| # SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||||
| 
 | ||||
| from spack import * | ||||
| 
 | ||||
| 
 | ||||
| class PyPytestMetadata(PythonPackage): | ||||
|     """pytest plugin for test session metadata""" | ||||
| 
 | ||||
|     homepage = "https://github.com/pytest-dev/pytest-metadata" | ||||
|     pypi = "pytest-metadata/pytest-metadata-1.11.0.tar.gz" | ||||
| 
 | ||||
|     version('1.11.0', sha256='71b506d49d34e539cc3cfdb7ce2c5f072bea5c953320002c95968e0238f8ecf1') | ||||
| 
 | ||||
|     depends_on('python@2.7:2.8,3.6:', type=('build', 'run')) | ||||
|     depends_on('py-setuptools', type='build') | ||||
|     depends_on('py-setuptools-scm', type='build') | ||||
|     depends_on('py-pytest@2.9:', type=('build', 'run')) | ||||
		Reference in New Issue
	
	Block a user
	 BerengerBerthoul
					BerengerBerthoul