py-jsonargparse: add v4.25.0 (#40185)
This commit is contained in:
parent
c0f1072dc7
commit
9cb291b41b
3 changed files with 22 additions and 6 deletions
|
@ -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"))
|
||||
|
|
|
@ -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:")
|
||||
|
|
|
@ -10,11 +10,14 @@ 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",
|
||||
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue