summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBerengerBerthoul <56256655+BerengerBerthoul@users.noreply.github.com>2021-03-12 03:17:12 +0100
committerGitHub <noreply@github.com>2021-03-12 02:17:12 +0000
commitca4a566443390564295334b490f459487bf68bd3 (patch)
tree737294fcd46daeb5822c113a6ecd290d947a26bf
parentbb4ccdfa91f6ea8ca80d14661e81fbff22b06ffd (diff)
downloadspack-ca4a566443390564295334b490f459487bf68bd3.tar.gz
spack-ca4a566443390564295334b490f459487bf68bd3.tar.bz2
spack-ca4a566443390564295334b490f459487bf68bd3.tar.xz
spack-ca4a566443390564295334b490f459487bf68bd3.zip
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>
-rw-r--r--var/spack/repos/builtin/packages/py-pytest-html/package.py23
-rw-r--r--var/spack/repos/builtin/packages/py-pytest-metadata/package.py20
2 files changed, 43 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-pytest-html/package.py b/var/spack/repos/builtin/packages/py-pytest-html/package.py
new file mode 100644
index 0000000000..bf914ce223
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-pytest-html/package.py
@@ -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'))
diff --git a/var/spack/repos/builtin/packages/py-pytest-metadata/package.py b/var/spack/repos/builtin/packages/py-pytest-metadata/package.py
new file mode 100644
index 0000000000..03e7ab92cf
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-pytest-metadata/package.py
@@ -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'))