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