Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/statsmodels/
Date: Sat, 02 Oct 2021 07:50:57
Message-Id: 1633161042.07ae2d168a809cfd0be5475abf0e3b2b64484005.mgorny@gentoo
1 commit: 07ae2d168a809cfd0be5475abf0e3b2b64484005
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 2 06:35:19 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 2 07:50:42 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07ae2d16
7
8 dev-python/statsmodels: Bump to 0.13.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/statsmodels/Manifest | 1 +
13 dev-python/statsmodels/statsmodels-0.13.0.ebuild | 83 ++++++++++++++++++++++++
14 2 files changed, 84 insertions(+)
15
16 diff --git a/dev-python/statsmodels/Manifest b/dev-python/statsmodels/Manifest
17 index 771b9aa85bf..97632e523cd 100644
18 --- a/dev-python/statsmodels/Manifest
19 +++ b/dev-python/statsmodels/Manifest
20 @@ -1 +1,2 @@
21 DIST statsmodels-0.12.2.tar.gz 17470078 BLAKE2B 7b2a17fe350489888fd05d2275b597ec7cb0f32dcea97daa5c06a973fa53a7b3af40d494c735e30cd65deec9b5dd314c0513454a7c2d2c40e22fd6de3aeb40c8 SHA512 ae4872bc7300ef564407daa8b4076fd70fc180965622ed2173871579e063e2143e000540089923fe171dbb191b7dd872077d8ba6794fe23390331375ec7ce810
22 +DIST statsmodels-0.13.0.tar.gz 17766215 BLAKE2B 54894a1061bbd90154ea81d599c913119a90f89dd37055f3e6c69b23bc265a424c08a2e5cb2c88edc9a3a82fd69a236e6eaf73c08a8201c31b1cdc5cc9ea0bd5 SHA512 829e927d146f6587ef545c2a5668d9ba60e1493eb0deb79754029128d419a6811ace17572e3c324d738a1a36e69b8b85d92030b187c85fa5be49003806ba6145
23
24 diff --git a/dev-python/statsmodels/statsmodels-0.13.0.ebuild b/dev-python/statsmodels/statsmodels-0.13.0.ebuild
25 new file mode 100644
26 index 00000000000..4aa7914a265
27 --- /dev/null
28 +++ b/dev-python/statsmodels/statsmodels-0.13.0.ebuild
29 @@ -0,0 +1,83 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{8..10} )
36 +
37 +inherit distutils-r1 optfeature
38 +
39 +DESCRIPTION="Statistical computations and models for use with SciPy"
40 +HOMEPAGE="https://www.statsmodels.org/stable/index.html"
41 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
42 +
43 +LICENSE="BSD"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~s390 ~x86 ~amd64-linux ~x86-linux"
46 +IUSE="examples"
47 +
48 +DEPEND="
49 + >=dev-python/numpy-1.17[${PYTHON_USEDEP}]
50 + >=dev-python/scipy-1.3[${PYTHON_USEDEP}]"
51 +RDEPEND="
52 + ${DEPEND}
53 + >=dev-python/numpy-1.17[${PYTHON_USEDEP}]
54 + >=dev-python/pandas-0.25[${PYTHON_USEDEP}]
55 + >=dev-python/patsy-0.5.2[${PYTHON_USEDEP}]
56 + >=dev-python/scipy-1.3[${PYTHON_USEDEP}]
57 +"
58 +BDEPEND="
59 + ${DEPEND}
60 + dev-python/cython[${PYTHON_USEDEP}]
61 + test? (
62 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
63 + )
64 +"
65 +
66 +distutils_enable_sphinx docs \
67 + 'dev-python/ipykernel' \
68 + 'dev-python/jupyter_client' \
69 + 'dev-python/matplotlib' \
70 + 'dev-python/nbconvert' \
71 + 'dev-python/numpydoc'
72 +
73 +distutils_enable_tests pytest
74 +
75 +python_prepare_all() {
76 + # Prevent un-needed d'loading
77 + export VARTEXFONTS="${T}"/fonts
78 + export MPLCONFIGDIR="${T}"
79 + printf -- 'backend : Agg\n' > "${MPLCONFIGDIR}"/matplotlibrc || die
80 +
81 + sed -e 's:test_combine:_&:' \
82 + -i statsmodels/imputation/tests/test_mice.py || die
83 + sed -e 's:test_mixedlm:_&:' \
84 + -i statsmodels/stats/tests/test_mediation.py || die
85 +
86 + distutils-r1_python_prepare_all
87 +}
88 +
89 +python_test() {
90 + local -x MKL_NUM_THREADS=1
91 + local -x OMP_NUM_THREADS=1
92 + local jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")
93 +
94 + pushd "${BUILD_DIR}" >/dev/null || die
95 + "${EPYTHON}" -c "
96 +import statsmodels
97 +statsmodels.test(extra_args=['-vv', '-n', '${jobs}'], exit=True)" \
98 + || die "tests fail with ${EPYTHON}"
99 + popd >/dev/null || die
100 +}
101 +
102 +python_install_all() {
103 + if use examples; then
104 + docompress -x /usr/share/doc/${PF}/examples
105 + dodoc -r examples
106 + fi
107 + distutils-r1_python_install_all
108 +}
109 +
110 +pkg_postinst() {
111 + optfeature "Plotting functionality" "dev-python/matplotlib"
112 +}