Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit 02dc10c

Browse files
authored
py-scikit-learn: add v1.4.0 (spack#42186)
1 parent 0c88036 commit 02dc10c

File tree

3 files changed

+47
-15
lines changed

3 files changed

+47
-15
lines changed

var/spack/repos/builtin/packages/py-maturin/package.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class PyMaturin(PythonPackage):
1616

1717
license("Apache-2.0")
1818

19+
version("1.4.0", sha256="ed12e1768094a7adeafc3a74ebdb8dc2201fa64c4e7e31f14cfc70378bf93790")
1920
version("1.1.0", sha256="4650aeaa8debd004b55aae7afb75248cbd4d61cd7da2dcf4ead8b22b58cecae0")
2021
version("0.14.17", sha256="fb4e3311e8ce707843235fbe8748a05a3ae166c3efd6d2aa335b53dfc2bd3b88")
2122
version("0.13.7", sha256="c0a77aa0c57f945649ca711c806203a1b6888ad49c2b8b85196ffdcf0421db77")
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
2+
# Spack Project Developers. See the top-level COPYRIGHT file for details.
3+
#
4+
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
5+
6+
from spack.package import *
7+
8+
9+
class PyPolars(PythonPackage):
10+
"""Blazingly fast DataFrame library."""
11+
12+
homepage = "https://www.pola.rs/"
13+
pypi = "polars/polars-0.20.5.tar.gz"
14+
15+
license("MIT")
16+
17+
version("0.20.5", sha256="fa4abc22cee024b5872961ddcd8a13a0a76150df345e21ce4308c2b1a36b47aa")
18+
19+
# pyproject.toml
20+
depends_on("py-maturin@1.3.2:", type="build")
21+
22+
# README.md
23+
depends_on("rust@1.71:", type="build")

var/spack/repos/builtin/packages/py-scikit-learn/package.py

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class PyScikitLearn(PythonPackage):
1919
license("BSD-3-Clause")
2020

2121
version("master", branch="master")
22+
version("1.4.0", sha256="d4373c984eba20e393216edd51a3e3eede56cbe93d4247516d205643c3b93121")
2223
version("1.3.2", sha256="a2f54c76accc15a34bfb9066e6c7a56c1e7235dda5762b990792330b52ccfb05")
2324
version("1.3.1", sha256="1a231cced3ee3fa04756b4a7ab532dc9417acd581a330adff5f2c01ac2831fcf")
2425
version("1.3.0", sha256="8be549886f5eda46436b6e555b0e4873b4f10aa21c07df45c4bc1735afbccd7a")
@@ -47,43 +48,50 @@ class PyScikitLearn(PythonPackage):
4748
variant("openmp", default=True, description="Build with OpenMP support")
4849

4950
# Based on PyPI wheel availability
50-
depends_on("python@3.8:3.12", when="@1.3.1:", type=("build", "run"))
51-
depends_on("python@3.8:3.11", when="@1.1.3:1.3.0", type=("build", "run"))
52-
depends_on("python@3.8:3.10", when="@1.1.0:1.1.2", type=("build", "run"))
53-
depends_on("python@:3.10", when="@1.0.2", type=("build", "run"))
54-
depends_on("python@:3.9", when="@0.24:1.0.1", type=("build", "run"))
55-
depends_on("python@:3.8", when="@0.22:0.23", type=("build", "run"))
51+
depends_on("python@3.9:3.12", when="@1.4:", type=("build", "link", "run"))
52+
depends_on("python@3.8:3.12", when="@1.3.1:1.3", type=("build", "link", "run"))
53+
depends_on("python@3.8:3.11", when="@1.1.3:1.3.0", type=("build", "link", "run"))
54+
depends_on("python@3.8:3.10", when="@1.1.0:1.1.2", type=("build", "link", "run"))
55+
depends_on("python@:3.10", when="@1.0.2", type=("build", "link", "run"))
56+
depends_on("python@:3.9", when="@0.24:1.0.1", type=("build", "link", "run"))
57+
depends_on("python@:3.8", when="@0.22:0.23", type=("build", "link", "run"))
5658

5759
# pyproject.toml
5860
depends_on("py-setuptools", type="build")
5961
depends_on("py-setuptools@:59", when="@:1.2.1", type="build")
60-
depends_on("py-cython@0.29.33:2", when="@1.3:", type="build")
62+
depends_on("py-cython@0.29.33:", when="@1.4:", type="build")
63+
depends_on("py-cython@0.29.33:2", when="@1.3", type="build")
6164
depends_on("py-cython@0.29.24:2", when="@1.0.2:", type="build")
6265
depends_on("py-cython@0.28.5:2", when="@0.21:", type="build")
6366

6467
# sklearn/_min_dependencies.py
65-
depends_on("py-numpy@1.17.3:", when="@1.1:", type=("build", "run"))
66-
depends_on("py-numpy@1.14.6:", when="@1.0:", type=("build", "run"))
67-
depends_on("py-numpy@1.13.3:", when="@0.23:", type=("build", "run"))
68-
depends_on("py-numpy@1.11.0:", when="@0.21:", type=("build", "run"))
68+
depends_on("py-numpy@1.19.5:", when="@1.4:", type=("build", "link", "run"))
69+
depends_on("py-numpy@1.17.3:", when="@1.1:", type=("build", "link", "run"))
70+
depends_on("py-numpy@1.14.6:", when="@1.0:", type=("build", "link", "run"))
71+
depends_on("py-numpy@1.13.3:", when="@0.23:", type=("build", "link", "run"))
72+
depends_on("py-numpy@1.11.0:", when="@0.21:", type=("build", "link", "run"))
73+
depends_on("py-scipy@1.6:", when="@1.4:", type=("build", "run"))
6974
depends_on("py-scipy@1.5:", when="@1.3:", type=("build", "run"))
7075
depends_on("py-scipy@1.3.2:", when="@1.1:", type=("build", "run"))
7176
depends_on("py-scipy@1.1.0:", when="@1.0:", type=("build", "run"))
7277
depends_on("py-scipy@0.19.1:", when="@0.23:", type=("build", "run"))
7378
depends_on("py-scipy@0.17.0:", when="@0.21:", type=("build", "run"))
79+
depends_on("py-joblib@1.2:", when="@1.4:", type=("build", "run"))
7480
depends_on("py-joblib@1.1.1:", when="@1.2:", type=("build", "run"))
7581
depends_on("py-joblib@1:", when="@1.1:", type=("build", "run"))
7682
depends_on("py-joblib@0.11:", type=("build", "run"))
7783
depends_on("py-threadpoolctl@2.0.0:", when="@0.23:", type=("build", "run"))
7884
depends_on("llvm-openmp", when="%apple-clang +openmp")
7985

8086
# Test dependencies
81-
depends_on("py-matplotlib@3.1.3:", type="test")
82-
depends_on("py-scikit-image@0.16.2:", type="test")
83-
depends_on("py-pandas@1.0.5:", type="test")
87+
depends_on("py-matplotlib@3.3.4:", type="test")
88+
depends_on("py-scikit-image@0.17.2:", type="test")
89+
depends_on("py-pandas@1.1.5:", type="test")
8490
depends_on("py-pytest@7.1.2:", type="test")
8591
depends_on("py-pyamg@4:", type="test")
86-
depends_on("py-pooch@1.6:", type="test")
92+
depends_on("py-polars@0.19.12:", when="@1.4:", type="test")
93+
depends_on("py-pyarrow@12:", when="@1.4:", type="test")
94+
depends_on("py-pooch@1.6:", when="@1.2:", type="test")
8795

8896
# Release tarballs are already cythonized. If you wanted to build a release
8997
# version without OpenMP support, you would need to delete all .c files

0 commit comments

Comments
 (0)