py-keras: add v3.1.1 (#43283)

This commit is contained in:
Adam J. Stewart 2024-03-26 00:38:01 +01:00 committed by GitHub
parent 6eaac2270d
commit f0f092d9f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 26 additions and 1 deletions

View File

@ -22,6 +22,7 @@ class PyKeras(PythonPackage):
maintainers("adamjstewart") maintainers("adamjstewart")
license("Apache-2.0") license("Apache-2.0")
version("3.1.1", sha256="55558ea228dc38e7667874fd2e83eaf7faeb026e2e8615b36a8616830f7e303b")
version("3.1.0", sha256="cac46e053f0493da313e7c9b16379a532b1a38f9f19c7a5fe4578759f4c6aa4d") version("3.1.0", sha256="cac46e053f0493da313e7c9b16379a532b1a38f9f19c7a5fe4578759f4c6aa4d")
version("3.0.5", sha256="df3d3795e12c3f6035e811c43c13f1eb41e37241796a0fea120ede4ebe1c4496") version("3.0.5", sha256="df3d3795e12c3f6035e811c43c13f1eb41e37241796a0fea120ede4ebe1c4496")
version("3.0.4", sha256="ff2204792582e3889c51c77722cc6e8258dbb1ece7db192f5a9bcd1887cf3385") version("3.0.4", sha256="ff2204792582e3889c51c77722cc6e8258dbb1ece7db192f5a9bcd1887cf3385")
@ -70,7 +71,7 @@ class PyKeras(PythonPackage):
depends_on("py-rich", type=("build", "run"), when="@3:") depends_on("py-rich", type=("build", "run"), when="@3:")
depends_on("py-namex", type=("build", "run"), when="@3:") depends_on("py-namex", type=("build", "run"), when="@3:")
depends_on("py-h5py", type=("build", "run")) depends_on("py-h5py", type=("build", "run"))
depends_on("py-dm-tree", type=("build", "run"), when="@3:") depends_on("py-optree", type=("build", "run"), when="@3.1:")
depends_on("py-ml-dtypes", type=("build", "run"), when="@3.0.5:") depends_on("py-ml-dtypes", type=("build", "run"), when="@3.0.5:")
# requirements-common.txt # requirements-common.txt
@ -100,6 +101,7 @@ class PyKeras(PythonPackage):
depends_on("bazel", type="build", when="@2.5:2") depends_on("bazel", type="build", when="@2.5:2")
depends_on("protobuf", type="build", when="@2.5:2") depends_on("protobuf", type="build", when="@2.5:2")
depends_on("pil", type=("build", "run"), when="@:2") depends_on("pil", type=("build", "run"), when="@:2")
depends_on("py-dm-tree", type=("build", "run"), when="@3.0")
depends_on("py-portpicker", type=("build", "run"), when="@2.10:2") depends_on("py-portpicker", type=("build", "run"), when="@2.10:2")
depends_on("py-pydot", type=("build", "run"), when="@:2") depends_on("py-pydot", type=("build", "run"), when="@:2")
depends_on("py-pyyaml", type=("build", "run"), when="@:2") depends_on("py-pyyaml", type=("build", "run"), when="@:2")

View File

@ -0,0 +1,23 @@
# 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 PyOptree(PythonPackage):
"""Optimized PyTree Utilities."""
homepage = "https://github.com/metaopt/optree"
pypi = "optree/optree-0.10.0.tar.gz"
license("Apache-2.0")
version("0.10.0", sha256="dc7e8880f997365083191784d141c790833877af71aec8825c7f2b7f7f43c98e")
depends_on("cmake@3.11:", type="build")
depends_on("python", type=("build", "link", "run"))
depends_on("py-setuptools", type="build")
depends_on("py-pybind11", type=("build", "link"))
depends_on("py-typing-extensions@4:", type=("build", "run"))