summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorThomas Bouvier <contact@thomas-bouvier.io>2023-01-23 00:08:40 +0100
committerGitHub <noreply@github.com>2023-01-22 17:08:40 -0600
commitfbc24d7bab80a2f761f2c63e80b572bbe19273f6 (patch)
tree5ce710ca67d3e85235dd29b691bca0a6f42e3e02 /var
parent4b91a40bdfdd26aa09b07f6bc1038f1bbd7ab630 (diff)
downloadspack-fbc24d7bab80a2f761f2c63e80b572bbe19273f6.tar.gz
spack-fbc24d7bab80a2f761f2c63e80b572bbe19273f6.tar.bz2
spack-fbc24d7bab80a2f761f2c63e80b572bbe19273f6.tar.xz
spack-fbc24d7bab80a2f761f2c63e80b572bbe19273f6.zip
`py-datasets`: add v2.8.0 (#35069)
* `py-datasets`: add v2.8.0 * Add missing +http variant + fix wrong dependency versions
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-datasets/package.py23
1 files changed, 17 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/py-datasets/package.py b/var/spack/repos/builtin/packages/py-datasets/package.py
index 413887f20e..d3ad43f1e6 100644
--- a/var/spack/repos/builtin/packages/py-datasets/package.py
+++ b/var/spack/repos/builtin/packages/py-datasets/package.py
@@ -14,21 +14,32 @@ class PyDatasets(PythonPackage):
homepage = "https://github.com/huggingface/datasets"
pypi = "datasets/datasets-1.8.0.tar.gz"
+ maintainers = ["thomas-bouvier"]
+
+ version("2.8.0", sha256="a843b69593914071f921fc1086fde939f30a63415a34cdda5db3c0acdd58aff2")
version("1.8.0", sha256="d57c32bb29e453ee7f3eb0bbca3660ab4dd2d0e4648efcfa987432624cab29d3")
depends_on("python@3.6:", type=("build", "run"))
depends_on("py-setuptools", type="build")
depends_on("py-numpy@1.17:", type=("build", "run"))
- depends_on("py-pyarrow@1.0.0:3+parquet", type=("build", "run"))
- depends_on("py-dill", type=("build", "run"))
+ depends_on("py-pyarrow@1:3+parquet", type=("build", "run"), when="@:1.8.0")
+ depends_on("py-pyarrow@6:+parquet", type=("build", "run"), when="@2.8.0:")
+ depends_on("py-dill@:0.3.6", type=("build", "run"))
depends_on("py-pandas", type=("build", "run"))
depends_on("py-requests@2.19:", type=("build", "run"))
- depends_on("py-tqdm@4.27:4.49", type=("build", "run"))
+ depends_on("py-tqdm@4.27:4.49", type=("build", "run"), when="@:1.8.0")
+ depends_on("py-tqdm@4.62.1:", type=("build", "run"), when="@2.8.0:")
depends_on("py-xxhash", type=("build", "run"))
depends_on("py-multiprocess", type=("build", "run"))
depends_on("py-importlib-metadata", when="^python@:3.7", type=("build", "run"))
- depends_on("py-huggingface-hub@:0.0", type=("build", "run"))
+ depends_on("py-huggingface-hub@:0.0", type=("build", "run"), when="@:1.8.0")
+ depends_on("py-huggingface-hub@0.2:0", type=("build", "run"), when="@2.8.0:")
depends_on("py-packaging", type=("build", "run"))
+ depends_on("py-aiohttp", type=("build", "run"), when="@2.8.0:")
+ depends_on("py-responses@:0.18", type=("build", "run"), when="@2.8.0:")
+ depends_on("py-pyyaml@5.1:", type=("build", "run"), when="@2.8.0:")
- depends_on("py-fsspec@:0.8.0", when="^python@:3.7", type=("build", "run"))
- depends_on("py-fsspec", when="^python@3.8:", type=("build", "run"))
+ with when("@:1.8.0"):
+ depends_on("py-fsspec", type=("build", "run"), when="^python@3.8:")
+ depends_on("py-fsspec@:0.8.0", type=("build", "run"), when="^python@:3.7")
+ depends_on("py-fsspec@2021.11.1:+http", type=("build", "run"), when="@2.8.0:")