py-jsonargparse: add v4.25.0 (#40185)

This commit is contained in:
Adam J. Stewart 2023-10-09 07:33:45 -05:00 committed by GitHub
parent c0f1072dc7
commit 9cb291b41b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 6 deletions

View file

@ -15,13 +15,17 @@ class PyJsonargparse(PythonPackage):
homepage = "https://github.com/omni-us/jsonargparse" homepage = "https://github.com/omni-us/jsonargparse"
pypi = "jsonargparse/jsonargparse-4.19.0.tar.gz" pypi = "jsonargparse/jsonargparse-4.19.0.tar.gz"
version("4.25.0", sha256="4eaadae69c387a3d83a76b1eaf20ca98d5274d8637f180dca0754ce5405adb6b")
version("4.19.0", sha256="63aa3c7bbdb219d0f254a5ae86f3d54384ebc1ffa905e776cc19283bc843787b") version("4.19.0", sha256="63aa3c7bbdb219d0f254a5ae86f3d54384ebc1ffa905e776cc19283bc843787b")
variant("signatures", default=False, description="Enable signature features") 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-setuptools", type="build")
depends_on("py-wheel@0.38.4:", when="@4.25:", type="build")
depends_on("py-pyyaml@3.13:", type=("build", "run")) depends_on("py-pyyaml@3.13:", type=("build", "run"))
with when("+signatures"): 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-docstring-parser@0.15:", type=("build", "run"))
depends_on("py-typeshed-client@2.1:", type=("build", "run")) depends_on("py-typeshed-client@2.1:", type=("build", "run"))

View file

@ -437,6 +437,9 @@ class PyTensorflow(Package, CudaPackage, ROCmPackage, PythonExtension):
conflicts("~rocm", when="@2.7.4-rocm-enhanced") conflicts("~rocm", when="@2.7.4-rocm-enhanced")
conflicts("+rocm", when="@:2.7.4-a,2.7.4.0:") 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 # https://www.tensorflow.org/install/source#tested_build_configurations
conflicts("%gcc@:9.3.0", when="@2.9:") conflicts("%gcc@:9.3.0", when="@2.9:")
conflicts("%gcc@:7.3.0", when="@1.15:") conflicts("%gcc@:7.3.0", when="@1.15:")

View file

@ -10,11 +10,14 @@ class PyWheel(Package, PythonExtension):
"""A built-package format for Python.""" """A built-package format for Python."""
homepage = "https://github.com/pypa/wheel" homepage = "https://github.com/pypa/wheel"
url = ( url = "https://files.pythonhosted.org/packages/py3/w/wheel/wheel-0.41.2-py3-none-any.whl"
"https://files.pythonhosted.org/packages/py2.py3/w/wheel/wheel-0.34.2-py2.py3-none-any.whl"
)
list_url = "https://pypi.org/simple/wheel/" list_url = "https://pypi.org/simple/wheel/"
version(
"0.41.2",
sha256="75909db2664838d015e3d9139004ee16711748a52c8f336b52882266540215d8",
expand=False,
)
version( version(
"0.37.1", "0.37.1",
sha256="4bdcd7d840138086126cd09254dc6195fb4fc6f01c050a1d7236f2630db1d22a", sha256="4bdcd7d840138086126cd09254dc6195fb4fc6f01c050a1d7236f2630db1d22a",
@ -73,11 +76,17 @@ class PyWheel(Package, PythonExtension):
extends("python") extends("python")
depends_on("python +ctypes", type=("build", "run")) 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@3.7:", when="@0.38:", 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("py-pip", type="build") 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): def install(self, spec, prefix):
# To build wheel from source, you need setuptools and wheel already installed. # To build wheel from source, you need setuptools and wheel already installed.
# We get around this by using a pre-built wheel, see: # We get around this by using a pre-built wheel, see: