summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2023-10-09 07:33:45 -0500
committerGitHub <noreply@github.com>2023-10-09 14:33:45 +0200
commit9cb291b41b043d520819f7b7ac2d839344985be4 (patch)
tree79ee21f521366d3843aa4e5bdaf1e4b6f5849119
parentc0f1072dc74a7e3f4dbede1424e64baff060a72c (diff)
downloadspack-9cb291b41b043d520819f7b7ac2d839344985be4.tar.gz
spack-9cb291b41b043d520819f7b7ac2d839344985be4.tar.bz2
spack-9cb291b41b043d520819f7b7ac2d839344985be4.tar.xz
spack-9cb291b41b043d520819f7b7ac2d839344985be4.zip
py-jsonargparse: add v4.25.0 (#40185)
-rw-r--r--var/spack/repos/builtin/packages/py-jsonargparse/package.py4
-rw-r--r--var/spack/repos/builtin/packages/py-tensorflow/package.py3
-rw-r--r--var/spack/repos/builtin/packages/py-wheel/package.py21
3 files changed, 22 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/py-jsonargparse/package.py b/var/spack/repos/builtin/packages/py-jsonargparse/package.py
index 2f4584e48b..a84a23c7fc 100644
--- a/var/spack/repos/builtin/packages/py-jsonargparse/package.py
+++ b/var/spack/repos/builtin/packages/py-jsonargparse/package.py
@@ -15,13 +15,17 @@ class PyJsonargparse(PythonPackage):
homepage = "https://github.com/omni-us/jsonargparse"
pypi = "jsonargparse/jsonargparse-4.19.0.tar.gz"
+ version("4.25.0", sha256="4eaadae69c387a3d83a76b1eaf20ca98d5274d8637f180dca0754ce5405adb6b")
version("4.19.0", sha256="63aa3c7bbdb219d0f254a5ae86f3d54384ebc1ffa905e776cc19283bc843787b")
variant("signatures", default=False, description="Enable signature features")
+ depends_on("py-setuptools@65.6.3:", when="@4.25:", type="build")
depends_on("py-setuptools", type="build")
+ depends_on("py-wheel@0.38.4:", when="@4.25:", type="build")
depends_on("py-pyyaml@3.13:", type=("build", "run"))
with when("+signatures"):
+ depends_on("py-typing-extensions@3.10:", when="@4.25: ^python@:3.9", type=("build", "run"))
depends_on("py-docstring-parser@0.15:", type=("build", "run"))
depends_on("py-typeshed-client@2.1:", type=("build", "run"))
diff --git a/var/spack/repos/builtin/packages/py-tensorflow/package.py b/var/spack/repos/builtin/packages/py-tensorflow/package.py
index 86f5759cff..cd90b532c9 100644
--- a/var/spack/repos/builtin/packages/py-tensorflow/package.py
+++ b/var/spack/repos/builtin/packages/py-tensorflow/package.py
@@ -437,6 +437,9 @@ class PyTensorflow(Package, CudaPackage, ROCmPackage, PythonExtension):
conflicts("~rocm", when="@2.7.4-rocm-enhanced")
conflicts("+rocm", when="@:2.7.4-a,2.7.4.0:")
+ # wheel 0.40 upgrades vendored packaging, trips over tensorflow-io-gcs-filesystem identifier
+ conflicts("^py-wheel@0.40:", when="@2.11:2.13")
+
# https://www.tensorflow.org/install/source#tested_build_configurations
conflicts("%gcc@:9.3.0", when="@2.9:")
conflicts("%gcc@:7.3.0", when="@1.15:")
diff --git a/var/spack/repos/builtin/packages/py-wheel/package.py b/var/spack/repos/builtin/packages/py-wheel/package.py
index 770397b09f..66192db329 100644
--- a/var/spack/repos/builtin/packages/py-wheel/package.py
+++ b/var/spack/repos/builtin/packages/py-wheel/package.py
@@ -10,12 +10,15 @@ class PyWheel(Package, PythonExtension):
"""A built-package format for Python."""
homepage = "https://github.com/pypa/wheel"
- url = (
- "https://files.pythonhosted.org/packages/py2.py3/w/wheel/wheel-0.34.2-py2.py3-none-any.whl"
- )
+ url = "https://files.pythonhosted.org/packages/py3/w/wheel/wheel-0.41.2-py3-none-any.whl"
list_url = "https://pypi.org/simple/wheel/"
version(
+ "0.41.2",
+ sha256="75909db2664838d015e3d9139004ee16711748a52c8f336b52882266540215d8",
+ expand=False,
+ )
+ version(
"0.37.1",
sha256="4bdcd7d840138086126cd09254dc6195fb4fc6f01c050a1d7236f2630db1d22a",
expand=False,
@@ -73,11 +76,17 @@ class PyWheel(Package, PythonExtension):
extends("python")
depends_on("python +ctypes", type=("build", "run"))
- depends_on("python@2.7:2.8,3.5:", when="@0.34:", type=("build", "run"))
- depends_on("python@2.7:2.8,3.4:", when="@0.30:", type=("build", "run"))
- depends_on("python@2.6:2.8,3.2:", type=("build", "run"))
+ depends_on("python@3.7:", when="@0.38:", type=("build", "run"))
depends_on("py-pip", type="build")
+ def url_for_version(self, version):
+ url = "https://files.pythonhosted.org/packages/{0}/w/wheel/wheel-{1}-{0}-none-any.whl"
+ if version >= Version("0.38"):
+ python = "py3"
+ else:
+ python = "py2.py3"
+ return url.format(python, version)
+
def install(self, spec, prefix):
# To build wheel from source, you need setuptools and wheel already installed.
# We get around this by using a pre-built wheel, see: