summaryrefslogtreecommitdiff
path: root/dev-python/statsmodels
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-05-06 11:33:44 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-05-06 11:33:44 +0100
commit0e52cbae2c719c3ef794ebeb0f4374fb96efcff3 (patch)
tree7e5732a7869c402a96586eca1ff1b574e59a328f /dev-python/statsmodels
parent0922e7f160098c343e6e41a5e167a69b9e035db6 (diff)
gentoo auto-resync : 06:05:2023 - 11:33:44
Diffstat (limited to 'dev-python/statsmodels')
-rw-r--r--dev-python/statsmodels/Manifest3
-rw-r--r--dev-python/statsmodels/files/statsmodels-0.14.0-test.patch30
-rw-r--r--dev-python/statsmodels/statsmodels-0.14.0.ebuild91
3 files changed, 124 insertions, 0 deletions
diff --git a/dev-python/statsmodels/Manifest b/dev-python/statsmodels/Manifest
index f96cf6435465..08475cb98537 100644
--- a/dev-python/statsmodels/Manifest
+++ b/dev-python/statsmodels/Manifest
@@ -1,5 +1,8 @@
+AUX statsmodels-0.14.0-test.patch 1156 BLAKE2B 2c6cf40e402a701ea7d49948754e35080a5eaa7971cf548c534d951ca60bec8cb3bd47ba3d4d9378d2cf17909105d72451ff4d51b256ad0d4cefb0a35cdee798 SHA512 31b47121ee6116e6ec470b59c3fb9c5d9f8b11d7afe2d1dd85147b7e303862fac825f11baa7b317af8c2b209ed80cc944b40df4fe214495aaee5c70b3ac8fc8f
DIST statsmodels-0.13.2.tar.gz 17874260 BLAKE2B 93f7a308217ba938b3cd2e11d75e8f5ad19e2d4e6ab2abbea702143129bb53e7b9be54864375dbfec805624538bc73850357eb944d6c9a4c1252cc8a7606b904 SHA512 79d8dd63f667d4019e462d93e007a5ef8e11972fe35fb4d657931d6d68f3e35d29978a865682133db12fd6742f3362c2d77dfb5735c82ae454570388dd84d59a
DIST statsmodels-0.13.5.tar.gz 18364957 BLAKE2B 8357416b015b152612aca88a9ff42b81db4d97f61b1c255bc2baf8978440cd43fa1a5301d1c60e92b3a634008c5c001c00770685864d296587ff75e37d29ff4f SHA512 9aeeea80c69f52459140179523a0155429834b2951325c9781b28f8c4cbbd0593ff1867e2212078f2b898e4da953689c2fe78183d3c7959caa874e9d758b4ea4
+DIST statsmodels-0.14.0.tar.gz 19374614 BLAKE2B b24c8c146ea9ed393da8e839e3c9a80b1ddaa6fe319204f4440b3435c756911bc1b6405544c6ab8e4370fd378ba26715da743e4d082af7774b8cefa8649d6c58 SHA512 876cc45eb4b5badee2ff859df8a45ce7c4f6ab2973d481f58c5b7906ebcdbb56a64769d5dd7a38c7b7415a4ee7cf98cf300b8c623bda9df001b982ff6844d1fd
EBUILD statsmodels-0.13.2.ebuild 2152 BLAKE2B 05aaa56275a93ad4c9de506af011e167ee2fa84de79554a560fbcf6a80c6be5c4d6352e43faa0a367ac5683fc4332f4af37edfcce33c1a05cfde1163718dbf16 SHA512 3c240d249cb98270ef3eb2c0126efee07ec1c4a7a55e245bce2f3521701cbcda4108a2e93565c13cefef89321ad75838450baa68019096d9f017934b10f0e524
EBUILD statsmodels-0.13.5.ebuild 2159 BLAKE2B 7b479f317f1bd94181399ec7bf7c9432f4644210a1353c6fb380aba5381340341ce9e16292f7e1a28df0f3177347a2394bb76ebae634f0016da77d984faef34f SHA512 23b87a4265dba79c50d5a2957cd156451d30bfde9b2821a8ba5132482dd826bcba5a27fb58db74a781e4597779ea88b837f4b47dd03c5b922349b497ccd2aff0
+EBUILD statsmodels-0.14.0.ebuild 2242 BLAKE2B d3298f9012a8ca2cd2f51ebf49712dddd6bb02253c0ff6d2c2eb12879eed437110c49fb22dc6a6938311460742ef0c0eb47631e9895526a31de12a3dc99bbae3 SHA512 4f558f313dcb2abca9d81184088e7f20ce3805e4b44a100f3ba2ee15bcd9060d3c8c19d7c0c81de18934e75eab13ca1815ad33b418caf1ffed426b30923e0909
MISC metadata.xml 1088 BLAKE2B 285d326203e509fd04364777ffe96f085951fdb7be661e6773f329392c0fa0fc16b1527239586b3abb80458359d15ab00d5eb402b739f947b78dca612ede94ca SHA512 35192e332c6d2aecd1ac611a96ebb13cded9a8f8bdfdd7f0c10b50654d1dda411015444511a69643ee8450742c8f02f5e0bfc5e4ab4ef4da81ffce9231658f4f
diff --git a/dev-python/statsmodels/files/statsmodels-0.14.0-test.patch b/dev-python/statsmodels/files/statsmodels-0.14.0-test.patch
new file mode 100644
index 000000000000..db63fbdca403
--- /dev/null
+++ b/dev-python/statsmodels/files/statsmodels-0.14.0-test.patch
@@ -0,0 +1,30 @@
+From 39a33cc65573b57a5d31ac4e9393a7c1e050da22 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Sat, 6 May 2023 07:43:28 +0200
+Subject: [PATCH] TST: install missing *.csv files needed by tsa.stl tests
+
+Closes #8869
+---
+ setup.py | 1 +
+ statsmodels/tsa/stl/tests/results/__init__.py | 0
+ 2 files changed, 1 insertion(+)
+ create mode 100644 statsmodels/tsa/stl/tests/results/__init__.py
+
+diff --git a/setup.py b/setup.py
+index 69141b2bd..c2fdc532b 100644
+--- a/setup.py
++++ b/setup.py
+@@ -126,6 +126,7 @@ ADDITIONAL_PACKAGE_DATA = {
+ "statsmodels.datasets.tests": ["*.zip"],
+ "statsmodels.iolib.tests.results": ["*.dta"],
+ "statsmodels.stats.tests.results": ["*.json"],
++ "statsmodels.tsa.stl.tests.results": ["*.csv"],
+ "statsmodels.tsa.vector_ar.tests.results": ["*.npz", "*.dat"],
+ "statsmodels.stats.tests": ["*.txt"],
+ "statsmodels.stats.libqsturng": ["*.r", "*.txt", "*.dat"],
+diff --git a/statsmodels/tsa/stl/tests/results/__init__.py b/statsmodels/tsa/stl/tests/results/__init__.py
+new file mode 100644
+index 000000000..e69de29bb
+--
+2.40.1
+
diff --git a/dev-python/statsmodels/statsmodels-0.14.0.ebuild b/dev-python/statsmodels/statsmodels-0.14.0.ebuild
new file mode 100644
index 000000000000..bab0cf805802
--- /dev/null
+++ b/dev-python/statsmodels/statsmodels-0.14.0.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit distutils-r1 multiprocessing optfeature pypi
+
+DESCRIPTION="Statistical computations and models for use with SciPy"
+HOMEPAGE="
+ https://www.statsmodels.org/stable/index.html
+ https://github.com/statsmodels/statsmodels/
+ https://pypi.org/project/statsmodels/
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="examples"
+
+DEPEND="
+ >=dev-python/numpy-1.17[${PYTHON_USEDEP}]
+ >=dev-python/scipy-1.3[${PYTHON_USEDEP}]
+"
+RDEPEND="
+ ${DEPEND}
+ >=dev-python/numpy-1.17[${PYTHON_USEDEP}]
+ >=dev-python/packaging-21.3[${PYTHON_USEDEP}]
+ >=dev-python/pandas-0.25[${PYTHON_USEDEP}]
+ >=dev-python/patsy-0.5.2[${PYTHON_USEDEP}]
+ >=dev-python/scipy-1.3[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ ${DEPEND}
+ <dev-python/cython-3[${PYTHON_USEDEP}]
+ test? (
+ dev-python/pytest-xdist[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_sphinx docs \
+ 'dev-python/ipykernel' \
+ 'dev-python/jupyter-client' \
+ 'dev-python/matplotlib' \
+ 'dev-python/nbconvert' \
+ 'dev-python/numpydoc'
+
+distutils_enable_tests pytest
+
+python_prepare_all() {
+ local PATCHES=(
+ "${FILESDIR}/${P}-test.patch"
+ )
+
+ # Prevent un-needed d'loading
+ export VARTEXFONTS="${T}"/fonts
+ export MPLCONFIGDIR="${T}"
+ printf -- 'backend : Agg\n' > "${MPLCONFIGDIR}"/matplotlibrc || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ local -x MKL_NUM_THREADS=1
+ local -x OMP_NUM_THREADS=1
+ local EPYTEST_DESELECT=(
+ # note that test path should be without "statsmodels/" prefix
+ imputation/tests/test_mice.py::TestMICE::test_combine
+ stats/tests/test_mediation.py::test_mixedlm
+ "stats/tests/test_corrpsd.py::test_corrpsd_threshold[0]"
+ )
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+
+ cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
+ epytest statsmodels -p xdist -n "$(makeopts_jobs)"
+}
+
+python_install_all() {
+ if use examples; then
+ docompress -x /usr/share/doc/${PF}/examples
+ dodoc -r examples
+ fi
+ distutils-r1_python_install_all
+}
+
+pkg_postinst() {
+ optfeature "Plotting functionality" "dev-python/matplotlib"
+}