public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/scikit-learn/
Date: Sun, 10 Mar 2024 14:28:36 +0000 (UTC)	[thread overview]
Message-ID: <1710080913.53c0ed9dd9a4aed4dbe15b5e64e0775a2bd87780.mgorny@gentoo> (raw)

commit:     53c0ed9dd9a4aed4dbe15b5e64e0775a2bd87780
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 10 14:26:49 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Mar 10 14:28:33 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53c0ed9d

sci-libs/scikit-learn: Fix tests, QA

Deselect failing tests.  Clean up the test phase.  Use pytest-xdist
and disable plugin autoloading for a major speedup.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sci-libs/scikit-learn/scikit-learn-1.3.2-r1.ebuild | 27 ++++++++++++++++++----
 1 file changed, 22 insertions(+), 5 deletions(-)

diff --git a/sci-libs/scikit-learn/scikit-learn-1.3.2-r1.ebuild b/sci-libs/scikit-learn/scikit-learn-1.3.2-r1.ebuild
index 63eb9f3b7b75..6639b87b8580 100644
--- a/sci-libs/scikit-learn/scikit-learn-1.3.2-r1.ebuild
+++ b/sci-libs/scikit-learn/scikit-learn-1.3.2-r1.ebuild
@@ -10,8 +10,15 @@ PYTHON_COMPAT=( python3_{10..12} )
 inherit distutils-r1
 
 DESCRIPTION="Machine learning library for Python"
-HOMEPAGE="https://scikit-learn.org/stable/"
-SRC_URI="https://github.com/scikit-learn/scikit-learn/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
+HOMEPAGE="
+	https://scikit-learn.org/stable/
+	https://github.com/scikit-learn/scikit-learn/
+	https://pypi.org/project/scikit-learn/
+"
+SRC_URI="
+	https://github.com/scikit-learn/scikit-learn/archive/${PV}.tar.gz
+		-> ${P}.gh.tar.gz
+"
 
 LICENSE="BSD"
 SLOT="0"
@@ -35,7 +42,9 @@ BDEPEND="
 	dev-python/cython[${PYTHON_USEDEP}]
 "
 
+EPYTEST_XDIST=1
 distutils_enable_tests pytest
+
 # For some reason this wants to use urllib to fetch things from the internet
 # distutils_enable_sphinx doc \
 # 	dev-python/matplotlib \
@@ -49,9 +58,17 @@ distutils_enable_tests pytest
 # 	dev-python/scikit-image
 
 python_test() {
-	# This needs to be run in the install dir
-	cd "${WORKDIR}/${P}-${EPYTHON//./_}/install/usr/lib/${EPYTHON}/site-packages/sklearn" || die
-	distutils-r1_python_test
+	local EPYTEST_DESELECT=(
+		# test broken with newer scipy, fixed upstream
+		# https://github.com/scikit-learn/scikit-learn/issues/27578
+		manifold/tests/test_locally_linear.py::test_singular_matrix
+		# TODO
+		gaussian_process/kernels.py::sklearn.gaussian_process.kernels.ExpSineSquared
+	)
+
+	rm -rf sklearn || die
+	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+	epytest --pyargs sklearn
 }
 
 python_install_all() {


             reply	other threads:[~2024-03-10 14:28 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-10 14:28 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-03-10 14:49 [gentoo-commits] repo/gentoo:master commit in: sci-libs/scikit-learn/ Sam James
2024-03-10 14:49 Sam James
2024-01-20  9:07 Sam James
2024-01-03 18:52 Arthur Zamarin
2023-11-19 20:07 Arthur Zamarin
2023-11-10 18:26 Patrick McLean
2023-11-06 10:46 Andrew Ammerlaan
2023-08-06 12:30 Michał Górny
2023-05-04 17:04 Michał Górny
2022-11-07  7:44 Sam James
2022-11-06  7:24 Sam James
2022-10-14 13:31 Andrew Ammerlaan
2022-06-13 10:57 Andrew Ammerlaan
2021-12-29 14:13 Andrew Ammerlaan
2021-09-16  5:32 Arthur Zamarin
2021-06-25  4:46 Michał Górny
2021-06-24 21:47 Sam James
2021-06-24 21:47 Sam James
2021-05-29 17:41 Andrew Ammerlaan
2020-11-26 21:03 Sam James
2020-11-13 21:32 Aaron Bauman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1710080913.53c0ed9dd9a4aed4dbe15b5e64e0775a2bd87780.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox