1 |
commit: cb7f0140be1afdbbccc5bc230a15f3eaf4f5d0e0 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 28 06:50:25 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 28 07:14:35 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb7f0140 |
7 |
|
8 |
dev-python/statsmodels: Bump to 0.12.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.12.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 dba98937e08..62f537be604 100644 |
18 |
--- a/dev-python/statsmodels/Manifest |
19 |
+++ b/dev-python/statsmodels/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST statsmodels-0.11.1.tar.gz 15381516 BLAKE2B a40cf9138edd8a9a6707a550d9885e0610f9bc666fcd73a60bd11ade6dcfa806ecd912a725cf2a13902e92f31af2c3e82f244280f70586bb3359dc8fc2842508 SHA512 54afe55a23b431154c159f44d284aa093f3368988f0695c0f3fbb206046cdfb171ab2ba51ce94285d567b8536141f93a1ef404b5f7222f1e61264baf0541926d |
22 |
+DIST statsmodels-0.12.0.tar.gz 17502050 BLAKE2B 8621882d920db652d1244fcd4a0bc4f31310663c4dc6582421cd64a040e0b64917070aef5962515b07a8e92c0d690d43dea19d8ee9b71c7a3c2548e903e69125 SHA512 a9cbba0c8cd7e11bef4fbb303c204d5d4db4eb9f3f93f608b9be5b3c0d7feccc08dd84b4904557fbd1c12f49f3376b2aa7fabd06daf5649fd72c16b7041afac9 |
23 |
|
24 |
diff --git a/dev-python/statsmodels/statsmodels-0.12.0.ebuild b/dev-python/statsmodels/statsmodels-0.12.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..dfa23119e7a |
27 |
--- /dev/null |
28 |
+++ b/dev-python/statsmodels/statsmodels-0.12.0.ebuild |
29 |
@@ -0,0 +1,83 @@ |
30 |
+# Copyright 1999-2020 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{6..9} ) |
36 |
+ |
37 |
+inherit distutils-r1 eutils |
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 ~x86 ~amd64-linux ~x86-linux" |
46 |
+IUSE="examples" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ >=dev-python/numpy-1.15[${PYTHON_USEDEP}] |
50 |
+ >=dev-python/pandas-0.23.0[${PYTHON_USEDEP}] |
51 |
+ dev-python/patsy[${PYTHON_USEDEP}] |
52 |
+ >=sci-libs/scipy-1.1[${PYTHON_USEDEP}] |
53 |
+" |
54 |
+BDEPEND=" |
55 |
+ dev-python/cython[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/numpy-1.15[${PYTHON_USEDEP}] |
57 |
+ >=sci-libs/scipy-1.1[${PYTHON_USEDEP}] |
58 |
+ test? ( |
59 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
60 |
+ ) |
61 |
+" |
62 |
+ |
63 |
+PATCHES=( |
64 |
+ "${FILESDIR}/statsmodels-0.11.1-tests.patch" |
65 |
+) |
66 |
+ |
67 |
+distutils_enable_sphinx docs \ |
68 |
+ 'dev-python/ipykernel' \ |
69 |
+ 'dev-python/jupyter_client' \ |
70 |
+ 'dev-python/matplotlib' \ |
71 |
+ 'dev-python/nbconvert' \ |
72 |
+ 'dev-python/numpydoc' |
73 |
+ |
74 |
+distutils_enable_tests pytest |
75 |
+ |
76 |
+python_prepare_all() { |
77 |
+ # Prevent un-needed d'loading |
78 |
+ export VARTEXFONTS="${T}"/fonts |
79 |
+ export MPLCONFIGDIR="${T}" |
80 |
+ printf -- 'backend : Agg\n' > "${MPLCONFIGDIR}"/matplotlibrc || die |
81 |
+ |
82 |
+ # these tests require internet |
83 |
+ sed -i -e 's:test_results_on_the:_&:' \ |
84 |
+ statsmodels/stats/tests/test_dist_dependant_measures.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 |
+} |