diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2024-01-20 13:47:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-20 06:47:45 -0600 |
commit | 02dc10c0532fc36f36d1c3e2d1feb6d2b0e57b8a (patch) | |
tree | ed3ddb0f8b4617f17c3ecd1d0b58dd1ba3139520 /var | |
parent | 0c880369d88e1d4815c9286714c01176bfb403d2 (diff) | |
download | spack-02dc10c0532fc36f36d1c3e2d1feb6d2b0e57b8a.tar.gz spack-02dc10c0532fc36f36d1c3e2d1feb6d2b0e57b8a.tar.bz2 spack-02dc10c0532fc36f36d1c3e2d1feb6d2b0e57b8a.tar.xz spack-02dc10c0532fc36f36d1c3e2d1feb6d2b0e57b8a.zip |
py-scikit-learn: add v1.4.0 (#42186)
Diffstat (limited to 'var')
3 files changed, 47 insertions, 15 deletions
diff --git a/var/spack/repos/builtin/packages/py-maturin/package.py b/var/spack/repos/builtin/packages/py-maturin/package.py index 92331b91c3..34e39ee79e 100644 --- a/var/spack/repos/builtin/packages/py-maturin/package.py +++ b/var/spack/repos/builtin/packages/py-maturin/package.py @@ -16,6 +16,7 @@ class PyMaturin(PythonPackage): license("Apache-2.0") + version("1.4.0", sha256="ed12e1768094a7adeafc3a74ebdb8dc2201fa64c4e7e31f14cfc70378bf93790") version("1.1.0", sha256="4650aeaa8debd004b55aae7afb75248cbd4d61cd7da2dcf4ead8b22b58cecae0") version("0.14.17", sha256="fb4e3311e8ce707843235fbe8748a05a3ae166c3efd6d2aa335b53dfc2bd3b88") version("0.13.7", sha256="c0a77aa0c57f945649ca711c806203a1b6888ad49c2b8b85196ffdcf0421db77") diff --git a/var/spack/repos/builtin/packages/py-polars/package.py b/var/spack/repos/builtin/packages/py-polars/package.py new file mode 100644 index 0000000000..422f07c048 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-polars/package.py @@ -0,0 +1,23 @@ +# Copyright 2013-2024 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 PyPolars(PythonPackage): + """Blazingly fast DataFrame library.""" + + homepage = "https://www.pola.rs/" + pypi = "polars/polars-0.20.5.tar.gz" + + license("MIT") + + version("0.20.5", sha256="fa4abc22cee024b5872961ddcd8a13a0a76150df345e21ce4308c2b1a36b47aa") + + # pyproject.toml + depends_on("py-maturin@1.3.2:", type="build") + + # README.md + depends_on("rust@1.71:", type="build") diff --git a/var/spack/repos/builtin/packages/py-scikit-learn/package.py b/var/spack/repos/builtin/packages/py-scikit-learn/package.py index ea25ce226a..aab35fc6bb 100644 --- a/var/spack/repos/builtin/packages/py-scikit-learn/package.py +++ b/var/spack/repos/builtin/packages/py-scikit-learn/package.py @@ -19,6 +19,7 @@ class PyScikitLearn(PythonPackage): license("BSD-3-Clause") version("master", branch="master") + version("1.4.0", sha256="d4373c984eba20e393216edd51a3e3eede56cbe93d4247516d205643c3b93121") version("1.3.2", sha256="a2f54c76accc15a34bfb9066e6c7a56c1e7235dda5762b990792330b52ccfb05") version("1.3.1", sha256="1a231cced3ee3fa04756b4a7ab532dc9417acd581a330adff5f2c01ac2831fcf") version("1.3.0", sha256="8be549886f5eda46436b6e555b0e4873b4f10aa21c07df45c4bc1735afbccd7a") @@ -47,30 +48,35 @@ class PyScikitLearn(PythonPackage): variant("openmp", default=True, description="Build with OpenMP support") # Based on PyPI wheel availability - depends_on("python@3.8:3.12", when="@1.3.1:", type=("build", "run")) - depends_on("python@3.8:3.11", when="@1.1.3:1.3.0", type=("build", "run")) - depends_on("python@3.8:3.10", when="@1.1.0:1.1.2", type=("build", "run")) - depends_on("python@:3.10", when="@1.0.2", type=("build", "run")) - depends_on("python@:3.9", when="@0.24:1.0.1", type=("build", "run")) - depends_on("python@:3.8", when="@0.22:0.23", type=("build", "run")) + depends_on("python@3.9:3.12", when="@1.4:", type=("build", "link", "run")) + depends_on("python@3.8:3.12", when="@1.3.1:1.3", type=("build", "link", "run")) + depends_on("python@3.8:3.11", when="@1.1.3:1.3.0", type=("build", "link", "run")) + depends_on("python@3.8:3.10", when="@1.1.0:1.1.2", type=("build", "link", "run")) + depends_on("python@:3.10", when="@1.0.2", type=("build", "link", "run")) + depends_on("python@:3.9", when="@0.24:1.0.1", type=("build", "link", "run")) + depends_on("python@:3.8", when="@0.22:0.23", type=("build", "link", "run")) # pyproject.toml depends_on("py-setuptools", type="build") depends_on("py-setuptools@:59", when="@:1.2.1", type="build") - depends_on("py-cython@0.29.33:2", when="@1.3:", type="build") + depends_on("py-cython@0.29.33:", when="@1.4:", type="build") + depends_on("py-cython@0.29.33:2", when="@1.3", type="build") depends_on("py-cython@0.29.24:2", when="@1.0.2:", type="build") depends_on("py-cython@0.28.5:2", when="@0.21:", type="build") # sklearn/_min_dependencies.py - depends_on("py-numpy@1.17.3:", when="@1.1:", type=("build", "run")) - depends_on("py-numpy@1.14.6:", when="@1.0:", type=("build", "run")) - depends_on("py-numpy@1.13.3:", when="@0.23:", type=("build", "run")) - depends_on("py-numpy@1.11.0:", when="@0.21:", type=("build", "run")) + depends_on("py-numpy@1.19.5:", when="@1.4:", type=("build", "link", "run")) + depends_on("py-numpy@1.17.3:", when="@1.1:", type=("build", "link", "run")) + depends_on("py-numpy@1.14.6:", when="@1.0:", type=("build", "link", "run")) + depends_on("py-numpy@1.13.3:", when="@0.23:", type=("build", "link", "run")) + depends_on("py-numpy@1.11.0:", when="@0.21:", type=("build", "link", "run")) + depends_on("py-scipy@1.6:", when="@1.4:", type=("build", "run")) depends_on("py-scipy@1.5:", when="@1.3:", type=("build", "run")) depends_on("py-scipy@1.3.2:", when="@1.1:", type=("build", "run")) depends_on("py-scipy@1.1.0:", when="@1.0:", type=("build", "run")) depends_on("py-scipy@0.19.1:", when="@0.23:", type=("build", "run")) depends_on("py-scipy@0.17.0:", when="@0.21:", type=("build", "run")) + depends_on("py-joblib@1.2:", when="@1.4:", type=("build", "run")) depends_on("py-joblib@1.1.1:", when="@1.2:", type=("build", "run")) depends_on("py-joblib@1:", when="@1.1:", type=("build", "run")) depends_on("py-joblib@0.11:", type=("build", "run")) @@ -78,12 +84,14 @@ class PyScikitLearn(PythonPackage): depends_on("llvm-openmp", when="%apple-clang +openmp") # Test dependencies - depends_on("py-matplotlib@3.1.3:", type="test") - depends_on("py-scikit-image@0.16.2:", type="test") - depends_on("py-pandas@1.0.5:", type="test") + depends_on("py-matplotlib@3.3.4:", type="test") + depends_on("py-scikit-image@0.17.2:", type="test") + depends_on("py-pandas@1.1.5:", type="test") depends_on("py-pytest@7.1.2:", type="test") depends_on("py-pyamg@4:", type="test") - depends_on("py-pooch@1.6:", type="test") + depends_on("py-polars@0.19.12:", when="@1.4:", type="test") + depends_on("py-pyarrow@12:", when="@1.4:", type="test") + depends_on("py-pooch@1.6:", when="@1.2:", type="test") # Release tarballs are already cythonized. If you wanted to build a release # version without OpenMP support, you would need to delete all .c files |