dev-python/dtreeviz: add 2.2.2, drop 2.2.1, enable py3.12, restrict tests

Closes: https://bugs.gentoo.org/906597
Signed-off-by: Julien Roy <julien@jroy.ca>
This commit is contained in:
Julien Roy 2024-04-13 17:04:54 -04:00
parent 05ecd81d2b
commit 02655e5873
No known key found for this signature in database
GPG Key ID: BEF2297448848842
3 changed files with 33 additions and 60 deletions

View File

@ -1 +1 @@
DIST dtreeviz-2.2.1.gh.tar.gz 91575827 BLAKE2B 41889e36b58df4fb81cf65b1c8fe89c5206e737a19503f270ed2b4d64b64e1890119d2017b63419af306cfc3747738483fdfed463f0b22049dc54f8b03dc63b0 SHA512 8c80479164cbc2004b27160cc1be5a0d0422bb5b58603bb9a347e8e9d98735fbc8a9fa0635c6605e8ffa360d9fd669bbe88befe74d598c02eb10b675fd2274d6
DIST dtreeviz-2.2.2.tar.gz 77028 BLAKE2B 1c0b64d720d5fec2559c13cfcd8ca3e02108b02f056e5eccbc7ae596ab7ab0523256b8cafcd5908d77adf098a56d6f87340473f95e1545ed86f12a6912524fac SHA512 4be118cc7825da8e51cffb7fc248105c13e17342f58acaa5110d91f4e8c686d6c8ca8697ab9d3fe2c4e7549fd781aad6154a64562b76989e51e906964505796e

View File

@ -1,59 +0,0 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{8..11} )
inherit distutils-r1
DESCRIPTION="A python library for decision tree visualization and model interpretation"
HOMEPAGE="
https://pypi.org/project/dtreeviz/
"
SRC_URI="https://github.com/parrt/dtreeviz/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
# IUSE="test xgboost pyspark lightgbm"
IUSE="test"
RDEPEND="
>=dev-python/graphviz-0.9
dev-python/pandas
dev-python/numpy
dev-python/scikit-learn
dev-python/matplotlib
dev-python/colour
"
# xgboost: available at the science overlay: https://github.com/gentoo/sci - Tested
# pyspark: available at the spark overlay: https://github.com/6-6-6/spark-overlay - Not tested
# lightgbm: available at the pypi-sci overlay: https://github.com/jiegec/gentoo-pypi-sci - Not tested
DEPEND="test? ( dev-python/pytest )"
TEST_DIR="testing/testlib/models"
python_prepare_all() {
# FIXME
#if ! use xgboost; then
rm $TEST_DIR/test_decision_trees_xgb_classifier.py || die
rm $TEST_DIR/test_decision_tree_xgb_regressor.py || die
#fi
# if ! use pyspark; then
rm $TEST_DIR/test_decision_tree_spark_classifier.py || die
# fi
# if ! use lightgbm; then
rm $TEST_DIR/test_decision_tree_lightgbm_classifier.py || die
# fi
#TODO: tensorflow_decision_forests ebuild
rm $TEST_DIR/test_decision_tree_tensorflow_classifier.py || die
distutils-r1_python_prepare_all
}
distutils_enable_tests pytest

View File

@ -0,0 +1,32 @@
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1 pypi
DESCRIPTION="A python library for decision tree visualization and model interpretation"
HOMEPAGE="
https://github.com/parrt/dtreeviz
https://pypi.org/project/dtreeviz/
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
# Tests are either not packaged properly
# Or have dependencies which aren't package in ::gentoo or ::guru
RESTRICT="test"
RDEPEND="
>=dev-python/graphviz-0.9
dev-python/pandas
dev-python/numpy
dev-python/scikit-learn
dev-python/matplotlib
dev-python/colour
"
distutils_enable_tests pytest