summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/py-pretty-errors/package.py20
-rw-r--r--var/spack/repos/builtin/packages/py-torchmetrics/package.py31
2 files changed, 37 insertions, 14 deletions
diff --git a/var/spack/repos/builtin/packages/py-pretty-errors/package.py b/var/spack/repos/builtin/packages/py-pretty-errors/package.py
new file mode 100644
index 0000000000..87ad191a49
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-pretty-errors/package.py
@@ -0,0 +1,20 @@
+# Copyright 2013-2024 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.package import *
+
+
+class PyPrettyErrors(PythonPackage):
+ """Prettifies Python exception output to make it legible."""
+
+ homepage = "https://github.com/onelivesleft/PrettyErrors/"
+ pypi = "pretty-errors/pretty_errors-1.2.25.tar.gz"
+
+ license("MIT")
+
+ version("1.2.25", sha256="a16ba5c752c87c263bf92f8b4b58624e3b1e29271a9391f564f12b86e93c6755")
+
+ depends_on("py-setuptools", type="build")
+ depends_on("py-colorama", type=("build", "run"))
diff --git a/var/spack/repos/builtin/packages/py-torchmetrics/package.py b/var/spack/repos/builtin/packages/py-torchmetrics/package.py
index 3d3a33b52f..122fb8c485 100644
--- a/var/spack/repos/builtin/packages/py-torchmetrics/package.py
+++ b/var/spack/repos/builtin/packages/py-torchmetrics/package.py
@@ -16,6 +16,7 @@ class PyTorchmetrics(PythonPackage):
license("Apache-2.0")
+ version("1.4.0", sha256="0b1e5acdcc9beb05bfe369d3d56cfa5b143f060ebfd6079d19ccc59ba46465b3")
version("1.3.2", sha256="0a67694a4c4265eeb54cda741eaf5cb1f3a71da74b7e7e6215ad156c9f2379f6")
version("1.3.1", sha256="8d371f7597a1a5eb02d5f2ed59642d6fef09093926997ce91e18b1147cc8defa")
version("1.3.0", sha256="e8ac3adcc61e7a847d0504b0a0e0a3b7f57796178b239c6fafb5d20c0c9460ac")
@@ -47,17 +48,19 @@ class PyTorchmetrics(PythonPackage):
depends_on("py-setuptools", type="build")
# requirements/base.txt (upper bound is removed during processing)
- depends_on("py-numpy@1.20.1:", when="@1:", type=("build", "run"))
- depends_on("py-numpy@1.17.2:", when="@0.4:", type=("build", "run"))
- depends_on("py-numpy", when="@0.3:", type=("build", "run"))
- depends_on("py-packaging@17.2:", when="@1.2.1:", type=("build", "run"))
- depends_on("py-packaging", when="@0.3:1.1.0", type=("build", "run"))
- depends_on("py-torch@1.10:", when="@1.3:", type=("build", "run"))
- depends_on("py-torch@1.8.1:", when="@0.11:", type=("build", "run"))
- depends_on("py-torch@1.3.1:", type=("build", "run"))
- depends_on("py-typing-extensions", when="@0.9: ^python@:3.8", type=("build", "run"))
- depends_on("py-lightning-utilities@0.8:", when="@1.1:", type=("build", "run"))
- depends_on("py-lightning-utilities@0.7:", when="@1:", type=("build", "run"))
-
- # Historical dependencies
- depends_on("py-pydeprecate@0.3", when="@0.7:0.8", type=("build", "run"))
+ with default_args(type=("build", "run")):
+ depends_on("py-numpy@1.20.1:", when="@1:")
+ depends_on("py-numpy@1.17.2:", when="@0.4:")
+ depends_on("py-numpy", when="@0.3:")
+ depends_on("py-packaging@17.2:", when="@1.2.1:")
+ depends_on("py-packaging", when="@0.3:1.1.0")
+ depends_on("py-torch@1.10:", when="@1.3:")
+ depends_on("py-torch@1.8.1:", when="@0.11:")
+ depends_on("py-torch@1.3.1:")
+ depends_on("py-typing-extensions", when="@0.9: ^python@:3.8")
+ depends_on("py-lightning-utilities@0.8:", when="@1.1:")
+ depends_on("py-lightning-utilities@0.7:", when="@1:")
+ depends_on("py-pretty-errors@1.2.25", when="@1.4:")
+
+ # Historical dependencies
+ depends_on("py-pydeprecate@0.3", when="@0.7:0.8")