diff options
author | Vincent Michaud-Rioux <vincent.michaud-rioux@xanadu.ai> | 2023-09-12 13:19:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-12 12:19:29 -0500 |
commit | 562065c42702ef27016d850fa5e0a1f0ce8d1b45 (patch) | |
tree | eabbd71693f19a5ee75e2c8d3a0125f1dd8f3ef5 /var/spack/repos/builtin/packages/py-pennylane/package.py | |
parent | 9d00bcb2864ee5a4c841f2178435aaec9f25a808 (diff) | |
download | spack-562065c42702ef27016d850fa5e0a1f0ce8d1b45.tar.gz spack-562065c42702ef27016d850fa5e0a1f0ce8d1b45.tar.bz2 spack-562065c42702ef27016d850fa5e0a1f0ce8d1b45.tar.xz spack-562065c42702ef27016d850fa5e0a1f0ce8d1b45.zip |
Update PennyLane packages to v0.32. (#39688)
* Update PennyLane packages to v0.32.
* Reformat.
* Couple small fixes.
* Fix Lightning cmake_args.
* Couple dep fixes in py-pennylane + plugins.
* Fix scipy condition.
* Add comment on conflicting requirement.
Diffstat (limited to 'var/spack/repos/builtin/packages/py-pennylane/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/py-pennylane/package.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/py-pennylane/package.py b/var/spack/repos/builtin/packages/py-pennylane/package.py index c4c75e85f2..e3bc536ae9 100644 --- a/var/spack/repos/builtin/packages/py-pennylane/package.py +++ b/var/spack/repos/builtin/packages/py-pennylane/package.py @@ -12,21 +12,24 @@ class PyPennylane(PythonPackage): homepage = "https://docs.pennylane.ai/" git = "https://github.com/PennyLaneAI/pennylane.git" - url = "https://github.com/PennyLaneAI/pennylane/archive/refs/tags/v0.31.0.tar.gz" + url = "https://github.com/PennyLaneAI/pennylane/archive/refs/tags/v0.32.0.tar.gz" maintainers("mlxd", "AmintorDusko", "marcodelapierre") version("master", branch="master") + version("0.32.0", sha256="8a2206268d7cae0a59f9067b6075175eec93f4843519b371f02716c49a22e750") version("0.31.0", sha256="f3b68700825c120e44434ed2b2ab71d0be9d3111f3043077ec0598661ec33477") version("0.30.0", sha256="7fe4821fbc733e3e40d7011e054bd2e31edde3151fd9539025c827a5a3579d6b") version("0.29.1", sha256="6ecfb305a3898347df8c539a89a67e748766941d159dbef9e34864872f13c45c") - depends_on("python@3.8:", type=("build", "run")) + depends_on("python@3.8:", type=("build", "run"), when="@:0.31.0") + depends_on("python@3.9:", type=("build", "run"), when="@0.32.0:") depends_on("py-pip", type=("build", "run")) # Runtime req for pennylane.about() depends_on("py-setuptools", type="build") depends_on("py-numpy@:1.23", type=("build", "run")) - depends_on("py-scipy@:1.10", type=("build", "run")) + depends_on("py-scipy", type=("build", "run")) + depends_on("py-scipy@:1.10", type=("build", "run"), when="@:0.31.0") depends_on("py-networkx", type=("build", "run")) depends_on("py-rustworkx", type=("build", "run"), when="@0.30.0:") depends_on("py-retworkx", type=("build", "run"), when="@0.28.0:0.29.1") @@ -36,12 +39,13 @@ class PyPennylane(PythonPackage): depends_on("py-semantic-version@2.7:", type=("build", "run")) depends_on("py-autoray@0.3.1:", type=("build", "run")) depends_on("py-cachetools", type=("build", "run")) - depends_on("py-pennylane-lightning@0.31.0:", type=("build", "run"), when="@0.31.0:") - depends_on("py-pennylane-lightning@0.30.0:", type=("build", "run"), when="@0.30.0:") + for v in range(30, 33): + depends_on(f"py-pennylane-lightning@0.{v}.0:", type=("build", "run"), when=f"@0.{v}.0:") depends_on( "py-pennylane-lightning@0.28.0:0.29.0", type=("build", "run"), when="@0.28.0:0.29.1" ) depends_on("py-requests", type=("build", "run")) + depends_on("py-typing-extensions", type=("build", "run"), when="@0.32.0:") # Test deps depends_on("py-pytest", type="test") |