From eb178e684041ffb69cddf40b949653080ed39aee Mon Sep 17 00:00:00 2001 From: Lehman Garrison Date: Thu, 19 Dec 2024 13:35:05 -0500 Subject: [PATCH] py-typer: add version 0.15.1 and "standard" optional dependencies (#48010) * py-typer: add version 0.15.1 and "standard" optional dependencies * py-typer: remove variant that only exists in source, not sdist. Remove trailing .0 from versions. --- .../builtin/packages/py-typer/package.py | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/var/spack/repos/builtin/packages/py-typer/package.py b/var/spack/repos/builtin/packages/py-typer/package.py index 1816d22ac60..5d569b167cf 100644 --- a/var/spack/repos/builtin/packages/py-typer/package.py +++ b/var/spack/repos/builtin/packages/py-typer/package.py @@ -12,12 +12,23 @@ class PyTyper(PythonPackage): homepage = "https://github.com/tiangolo/typer" pypi = "typer/typer-0.9.0.tar.gz" - license("MIT") + license("MIT", checked_by="lgarrison") + version("0.15.1", sha256="a0588c0a7fa68a1978a069818657778f86abe6ff5ea6abf472f940a08bfe4f0a") version("0.9.0", sha256="50922fd79aea2f4751a8e0408ff10d2662bd0c8bbfa84755a699f3bada2978b2") version("0.7.0", sha256="ff797846578a9f2a201b53442aedeb543319466870fbe1c701eab66dd7681165") - depends_on("python@3.6:", type=("build", "run")) - depends_on("py-flit-core@2.0:2", type="build") - depends_on("py-click@7.1.1:8", type=("build", "run")) + with when("@0.15.1:"): + depends_on("python@3.7:", type=("build", "run")) + depends_on("py-pdm-backend", type="build") + depends_on("py-click@8:", type=("build", "run")) + + depends_on("py-shellingham@1.3:", type=("build", "run")) + depends_on("py-rich@10.11:", type=("build", "run")) + + with when("@:0.9.0"): + depends_on("python@3.6:", type=("build", "run")) + depends_on("py-flit-core@2.0:2", type="build") + depends_on("py-click@7.1.1:8", type=("build", "run")) + depends_on("py-typing-extensions@3.7.4.3:", type=("build", "run"), when="@0.9.0:")