diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2023-05-22 13:19:41 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-22 11:19:41 -0700 |
commit | 321b687ae6f64b1ec1e4e3336323385a405f8d3d (patch) | |
tree | 50ccdd3e71cdd639cebce80c2418e69eb2c4783f | |
parent | c8617f0574e97e9af2a6ab7775fab3f435e50d2b (diff) | |
download | spack-321b687ae6f64b1ec1e4e3336323385a405f8d3d.tar.gz spack-321b687ae6f64b1ec1e4e3336323385a405f8d3d.tar.bz2 spack-321b687ae6f64b1ec1e4e3336323385a405f8d3d.tar.xz spack-321b687ae6f64b1ec1e4e3336323385a405f8d3d.zip |
py-huggingface-hub: add v0.14.1, cli variant (#37815)
3 files changed, 52 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/py-huggingface-hub/package.py b/var/spack/repos/builtin/packages/py-huggingface-hub/package.py index 508893c51f..6865a0d40e 100644 --- a/var/spack/repos/builtin/packages/py-huggingface-hub/package.py +++ b/var/spack/repos/builtin/packages/py-huggingface-hub/package.py @@ -14,18 +14,28 @@ class PyHuggingfaceHub(PythonPackage): homepage = "https://github.com/huggingface/huggingface_hub" pypi = "huggingface_hub/huggingface_hub-0.0.10.tar.gz" + version("0.14.1", sha256="9ab899af8e10922eac65e290d60ab956882ab0bf643e3d990b1394b6b47b7fbc") version("0.10.1", sha256="5c188d5b16bec4b78449f8681f9975ff9d321c16046cc29bcf0d7e464ff29276") version("0.0.10", sha256="556765e4c7edd2d2c4c733809bae1069dca20e10ff043870ec40d53e498efae2") version("0.0.8", sha256="be5b9a7ed36437bb10a780d500154d426798ec16803ff3406f7a61107e4ebfc2") - depends_on("python@3.7:", when="@0.10:", type=("build", "run")) - depends_on("python@3.6:", type=("build", "run")) + variant( + "cli", + default=False, + when="@0.10:", + description="Install dependencies for CLI-specific features", + ) + depends_on("py-setuptools", type="build") depends_on("py-filelock", type=("build", "run")) + depends_on("py-fsspec", when="@0.14:", type=("build", "run")) depends_on("py-requests", type=("build", "run")) + depends_on("py-tqdm@4.42.1:", type=("build", "run")) depends_on("py-tqdm", type=("build", "run")) depends_on("py-pyyaml@5.1:", when="@0.10:", type=("build", "run")) depends_on("py-typing-extensions@3.7.4.3:", when="@0.10:", type=("build", "run")) depends_on("py-typing-extensions", when="@0.0.10:", type=("build", "run")) depends_on("py-importlib-metadata", when="^python@:3.7", type=("build", "run")) depends_on("py-packaging@20.9:", when="@0.10:", type=("build", "run")) + + depends_on("py-inquirerpy@0.3.4", when="@0.14:+cli", type=("build", "run")) diff --git a/var/spack/repos/builtin/packages/py-inquirerpy/package.py b/var/spack/repos/builtin/packages/py-inquirerpy/package.py new file mode 100644 index 0000000000..6ba944ce6f --- /dev/null +++ b/var/spack/repos/builtin/packages/py-inquirerpy/package.py @@ -0,0 +1,22 @@ +# Copyright 2013-2023 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 PyInquirerpy(PythonPackage): + """Python port of Inquirer.js + (A collection of common interactive command-line user interfaces). + """ + + homepage = "https://github.com/kazhala/InquirerPy" + pypi = "inquirerpy/InquirerPy-0.3.4.tar.gz" + + version("0.3.4", sha256="89d2ada0111f337483cb41ae31073108b2ec1e618a49d7110b0d7ade89fc197e") + + depends_on("python@3.7:3", type=("build", "run")) + depends_on("py-poetry-core@1:", type="build") + depends_on("py-prompt-toolkit@3.0.1:3", type=("build", "run")) + depends_on("py-pfzy@0.3.1:0.3", type=("build", "run")) diff --git a/var/spack/repos/builtin/packages/py-pfzy/package.py b/var/spack/repos/builtin/packages/py-pfzy/package.py new file mode 100644 index 0000000000..a3e5a1dfec --- /dev/null +++ b/var/spack/repos/builtin/packages/py-pfzy/package.py @@ -0,0 +1,18 @@ +# Copyright 2013-2023 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 PyPfzy(PythonPackage): + """Python port of the fzy fuzzy string matching algorithm.""" + + homepage = "https://github.com/kazhala/pfzy" + pypi = "pfzy/pfzy-0.3.4.tar.gz" + + version("0.3.4", sha256="717ea765dd10b63618e7298b2d98efd819e0b30cd5905c9707223dceeb94b3f1") + + depends_on("python@3.7:3", type=("build", "run")) + depends_on("py-poetry-core@1:", type="build") |