Skip to content

Commit

Permalink
py-pytest-html: add 3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan474 committed Jul 19, 2023
1 parent a99eaa9 commit 7ef4082
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions var/spack/repos/builtin/packages/py-pytest-html/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,19 @@ class PyPytestHtml(PythonPackage):
homepage = "https://github.com/pytest-dev/pytest-html"
pypi = "pytest-html/pytest-html-3.1.1.tar.gz"

version("3.2.0", sha256="c4e2f4bb0bffc437f51ad2174a8a3e71df81bbc2f6894604e604af18fbe687c3")
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,6.0.1:", type=("build", "run"))
depends_on("py-pytest-metadata", type=("build", "run"))
depends_on("py-py", when="^py-pytest@7.2.0:", type=("build", "run"))

@run_after("install")
@on_package_attributes(run_tests=True)
def check_build(self):
# Simplest test: pytest will load pytest-html plugin
output = python("-m", "pytest", "-VV", output=str, error=str)
assert self.prefix in output, f"Missing pytest-html in {output!r}"

0 comments on commit 7ef4082

Please sign in to comment.