Gentoo Archives: gentoo-commits

From: Horea Christian <horea.christ@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-python/hdbscan/
Date: Tue, 31 Jan 2023 03:23:33
Message-Id: 1675135402.207a85724b6526e0f3be017a8a953412fcdcf597.chymera@gentoo
1 commit: 207a85724b6526e0f3be017a8a953412fcdcf597
2 Author: Horea Christian <chr <AT> chymera <DOT> eu>
3 AuthorDate: Tue Jan 31 03:23:22 2023 +0000
4 Commit: Horea Christian <horea.christ <AT> gmail <DOT> com>
5 CommitDate: Tue Jan 31 03:23:22 2023 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=207a8572
7
8 dev-python/hdbscan: new package, add 0.8.26, 0.8.29
9
10 Signed-off-by: Horea Christian <chr <AT> chymera.eu>
11
12 dev-python/hdbscan/hdbscan-0.8.26.ebuild | 33 ++++++++++++++++++++++++++++++++
13 dev-python/hdbscan/hdbscan-0.8.29.ebuild | 33 ++++++++++++++++++++++++++++++++
14 dev-python/hdbscan/metadata.xml | 28 +++++++++++++++++++++++++++
15 3 files changed, 94 insertions(+)
16
17 diff --git a/dev-python/hdbscan/hdbscan-0.8.26.ebuild b/dev-python/hdbscan/hdbscan-0.8.26.ebuild
18 new file mode 100644
19 index 000000000..91e83eb87
20 --- /dev/null
21 +++ b/dev-python/hdbscan/hdbscan-0.8.26.ebuild
22 @@ -0,0 +1,33 @@
23 +# Copyright 2021-2023 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=8
27 +
28 +PYTHON_COMPAT=( python3_{10..11} )
29 +DISTUTILS_USE_PEP517=setuptools
30 +inherit distutils-r1
31 +
32 +DESCRIPTION="A high performance implementation of HDBSCAN clustering."
33 +HOMEPAGE="https://github.com/scikit-learn-contrib/hdbscan"
34 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
35 +
36 +LICENSE="BSD"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~x86"
39 +IUSE="test"
40 +RESTRICT="test"
41 +# Tests fail, reported to upstream
42 +# https://github.com/scikit-learn-contrib/hdbscan/issues/501
43 +
44 +DEPEND=""
45 +RDEPEND="
46 + dev-python/cython[${PYTHON_USEDEP}]
47 + dev-python/joblib[${PYTHON_USEDEP}]
48 + dev-python/numpy[${PYTHON_USEDEP}]
49 + dev-python/scipy[${PYTHON_USEDEP}]
50 + dev-python/six[${PYTHON_USEDEP}]
51 + sci-libs/scikit-learn[${PYTHON_USEDEP}]
52 +"
53 +BDEPEND=""
54 +
55 +distutils_enable_tests pytest
56
57 diff --git a/dev-python/hdbscan/hdbscan-0.8.29.ebuild b/dev-python/hdbscan/hdbscan-0.8.29.ebuild
58 new file mode 100644
59 index 000000000..85d049d4c
60 --- /dev/null
61 +++ b/dev-python/hdbscan/hdbscan-0.8.29.ebuild
62 @@ -0,0 +1,33 @@
63 +# Copyright 2021-2023 Gentoo Authors
64 +# Distributed under the terms of the GNU General Public License v2
65 +
66 +EAPI=8
67 +
68 +PYTHON_COMPAT=( python3_{8..10} )
69 +DISTUTILS_USE_PEP517=setuptools
70 +inherit distutils-r1
71 +
72 +DESCRIPTION="A high performance implementation of HDBSCAN clustering."
73 +HOMEPAGE="https://github.com/scikit-learn-contrib/hdbscan"
74 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
75 +
76 +LICENSE="BSD"
77 +SLOT="0"
78 +KEYWORDS="~amd64 ~x86"
79 +IUSE="test"
80 +# Reported upstream:
81 +# https://github.com/scikit-learn-contrib/hdbscan/issues/501
82 +RESTRICT="test"
83 +
84 +DEPEND=""
85 +RDEPEND="
86 + dev-python/cython[${PYTHON_USEDEP}]
87 + dev-python/joblib[${PYTHON_USEDEP}]
88 + dev-python/numpy[${PYTHON_USEDEP}]
89 + dev-python/scipy[${PYTHON_USEDEP}]
90 + dev-python/six[${PYTHON_USEDEP}]
91 + sci-libs/scikit-learn[${PYTHON_USEDEP}]
92 +"
93 +BDEPEND=""
94 +
95 +distutils_enable_tests pytest
96
97 diff --git a/dev-python/hdbscan/metadata.xml b/dev-python/hdbscan/metadata.xml
98 new file mode 100644
99 index 000000000..b43e627e0
100 --- /dev/null
101 +++ b/dev-python/hdbscan/metadata.xml
102 @@ -0,0 +1,28 @@
103 +<?xml version='1.0' encoding='UTF-8'?>
104 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
105 +<pkgmetadata>
106 + <maintainer type="person">
107 + <email>gentoo@×××××××.eu</email>
108 + <name>Horea Christian</name>
109 + </maintainer>
110 + <maintainer type="project">
111 + <email>sci@g.o</email>
112 + <name>Gentoo Science Project</name>
113 + </maintainer>
114 + <longdescription lang="en">
115 + HDBSCAN - Hierarchical Density-Based Spatial Clustering of Applications with
116 + Noise. Performs DBSCAN over varying epsilon values and integrates the result
117 + to find a clustering that gives the best stability over epsilon. This allows
118 + HDBSCAN to find clusters of varying densities (unlike DBSCAN), and be more
119 + robust to parameter selection.
120 +
121 + In practice this means that HDBSCAN returns a good clustering straight away
122 + with little or no parameter tuning -- and the primary parameter, minimum
123 + cluster size, is intuitive and easy to select. HDBSCAN is ideal for
124 + exploratory data analysis; it's a fast and robust algorithm that you can
125 + trust to return meaningful clusters (if there are any).
126 + </longdescription>
127 + <upstream>
128 + <remote-id type="github">scikit-learn-contrib/hdbscan</remote-id>
129 + </upstream>
130 +</pkgmetadata>