From 957235cf19a691360c720f7913672adda4258ed0 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 7 Oct 2018 11:03:14 +0100 Subject: gentoo resync : 07.10.2018 --- dev-python/statsmodels/Manifest | 6 +- dev-python/statsmodels/metadata.xml | 8 ++ dev-python/statsmodels/statsmodels-0.9.0.ebuild | 100 ++++++++++++++++++++++++ dev-python/statsmodels/statsmodels-9999.ebuild | 6 +- 4 files changed, 115 insertions(+), 5 deletions(-) create mode 100644 dev-python/statsmodels/statsmodels-0.9.0.ebuild (limited to 'dev-python/statsmodels') diff --git a/dev-python/statsmodels/Manifest b/dev-python/statsmodels/Manifest index 78e268773ca4..576dfc3820e5 100644 --- a/dev-python/statsmodels/Manifest +++ b/dev-python/statsmodels/Manifest @@ -2,7 +2,9 @@ AUX statsmodels-0.6.1-numpy-1.10.patch 910 BLAKE2B cfff850a68733641fdad5913529e6 AUX statsmodels-0.6.1-pandas-0.17.0.patch 1043 BLAKE2B 0473214de500e911a36cf3ba645b57536ea6ada17f7123d193d31fb266ba07724aad7297cd705b51b34a394791656a72b891ab94cbf3969935b59324813a0100 SHA512 0a4394d672105337fd03d435a402dbd31862a39b8010658f859114ed9694de9be4d6c3d641b5f385986a6651f0434a3602659d7192bf99f749e49f33f53a634b DIST statsmodels-0.6.1.tar.gz 6980841 BLAKE2B 5ac16df0fc06d051cc79d037bd3a9b097526498a48cdc0bf750babd5915f27a0dea23d8869a5101c62bb780ec0c54c503a766c7da6db59fb8d10dc65c70268b1 SHA512 9047b8cf4b9d19bd697867cecef1c4608fd86f3d16e67e44d8c152e1e25918f5aff6b4843c58395e71614be401551e3e48d4dcf158480cbdb45d9735b1c5ea77 DIST statsmodels-0.8.0.tar.gz 9464851 BLAKE2B f4bcf38c0292dcdfef9e3e34519f4dff004795bf76f54773f551c6c767f16f9cee0a2756408cff6f727df8eebc269bccf2c8bd28915a729eb022eba34831628e SHA512 32bb7f36acc16796c445e5f695d958af4525fbbb2d374376fb4a73c972e3796fad05532456cef4aa5ee59d6fce11921174e17bbfc2e05d2488ce1ceac5175239 +DIST statsmodels-0.9.0.tar.gz 12658359 BLAKE2B 1b451edc281ac8bfd35441d7f31ff02c7068b854c06a5e50fcb6fb2ff3c023bbee264a25407078f99ca08e467676a32c1a0156dec668673bad3e8d7a46a95154 SHA512 a0310129ee915dce5006e4e40190d19c3a09facad398ff089fa4a244d51a035f9591267fd8d34a00ce82e4cab893df96787596f9d350d878e97a0bb3305f1bd5 EBUILD statsmodels-0.6.1.ebuild 1790 BLAKE2B fcb7c3ad951c5bad5ea3d5bf6e373db02a75b1a210e751c5a98353818103e616114cd86edc3caa42df81bb72cf3e9bd88ee69421913ef0dafc3f7bf49f7f12af SHA512 0db7b9c98d5d9b2a6436c073bcc2172c5b9938f0f4cd5c7256ebe4e5725dc65b3dac80186397d2516b5a5fd29fc6db93afc0caf031d239010b0ef07685c6224a EBUILD statsmodels-0.8.0.ebuild 1954 BLAKE2B 660db988aff6c18c625065226a560f3740780ab20afeba4b4deff8a740a789ace1593e420cda8e7503f69fbc2a8f95a01e539fde60d46c3783e81d12948c10e9 SHA512 48f61224be4b2b960a147cdcef7d28e1f1d4eefce6f7526e16816a350fa75a24854fad5b49715081f749b8812f79aac07ae3ff88a031a02b7943191e4780fdc0 -EBUILD statsmodels-9999.ebuild 1919 BLAKE2B 4fc6380ed66d02d713ac95d3e4df8ccd5ccd664728145cbd5efeef37e3582b9fb3c5eb7f7b3dd7d66b00494687e822723dd391fba144cba1ab9dab33e85b3862 SHA512 be09fd1121ea2beee8e307df2bf9c6e822006e22f70d95bd11cdacea2c67962dd39a2c6b17e7f618eacfca354cbd9bf78ae95cc9bcf711c3d6c18f3c2040d6ca -MISC metadata.xml 1075 BLAKE2B 86672821dcfcd4f52b35f953c2024646ac8bcd937b30ce7fd8c0d1411d5cefe64cc7e8943d1b073c81fbbb4cdee348b30c93fd8145651088f8f88d01ca9e742d SHA512 7e9c385a1820da33e55db49d582d750f01fd11c0dd1616470f2cd71f12c673010cf76c8af984472daa8787704d353f2d42f60798e419d182c9e24ba4dd7dd97f +EBUILD statsmodels-0.9.0.ebuild 3415 BLAKE2B 015330f04ba36101b8165b3e8c04281dd9f5d8f6614740d655053759618c465e9b569c159340bb7831b9754852406662b807e0c7f20bbec7ba792628e9d4a3d4 SHA512 1f37a380a0b9d2a2b7197f588103d9dbe864fde788dced0652a1c88c03c32a2c8f777904fdad965baed28b80b43b8046d9d6045ccbbe4845ca22da3672658d28 +EBUILD statsmodels-9999.ebuild 1964 BLAKE2B 400467949cd23f02a0ae92ed9d7725236046cfbf640758dd0a36402da54d7e1703d7306f033fe3b52bb9818de2983c8c88fe51299b3bfba7d278c8b0e6d98d78 SHA512 2c3f726e88b257952b396185e378a4ba4dfb0f626b39e27acd88aa0d9d8e55d65171960de882bab107642327af84c0a132cc424fc1d598e2be0a78a14b546f64 +MISC metadata.xml 1318 BLAKE2B 5e5ef8e0dae2bed3ba7d999d824c416d82515a26e6f99968e1cec7de5ef159caa3de7da3c5fc47a1e3e0a5251bbc542a10210204fb5045d35d1acc45b5030090 SHA512 8c554b8e55d88a7c5ed0bd29379ea1fe41b64e9d354ba584756f706ce1fc5857068c546138b49fb8af778c5401aae7169bb30413f6f209db9371441cb956ae91 diff --git a/dev-python/statsmodels/metadata.xml b/dev-python/statsmodels/metadata.xml index cb9b89704bd8..72014447a73d 100644 --- a/dev-python/statsmodels/metadata.xml +++ b/dev-python/statsmodels/metadata.xml @@ -9,6 +9,14 @@ sci-mathematics@gentoo.org Gentoo Mathematics Project + + horea.christ@gmail.com + Horea Christian + + + proxy-maint@gentoo.org + Proxy Maintainers + statsmodels is a Python module that allows users to explore data, estimate statistical models, and perform statistical tests. An diff --git a/dev-python/statsmodels/statsmodels-0.9.0.ebuild b/dev-python/statsmodels/statsmodels-0.9.0.ebuild new file mode 100644 index 000000000000..95b3326d4d7e --- /dev/null +++ b/dev-python/statsmodels/statsmodels-0.9.0.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{5,6} ) + +inherit distutils-r1 + +DESCRIPTION="Statistical computations and models for use with SciPy" +HOMEPAGE="https://www.statsmodels.org/stable/index.html" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples test" + +COMMON_DEPEND=" + dev-python/numpy[${PYTHON_USEDEP}] + >=dev-python/pandas-0.23.0[${PYTHON_USEDEP}] + dev-python/patsy[${PYTHON_USEDEP}] + sci-libs/scipy[${PYTHON_USEDEP}] +" +RDEPEND="${COMMON_DEPEND}" +DEPEND="${COMMON_DEPEND} + dev-python/cython[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( + dev-python/ipykernel[${PYTHON_USEDEP}] + dev-python/jupyter_client[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + dev-python/nbconvert[${PYTHON_USEDEP}] + dev-python/nbformat[${PYTHON_USEDEP}] + dev-python/numpydoc[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] + ) + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + ) +" + +python_prepare_all() { + # Prevent un-needed d'loading + sed -e "/sphinx.ext.intersphinx/d" -i docs/source/conf.py || die + export VARTEXFONTS="${T}"/fonts + export MPLCONFIGDIR="${T}" + echo "backend : Agg" > "${MPLCONFIGDIR}"/matplotlibrc || die + if use test; then + # Errors reported upstream: https://github.com/statsmodels/statsmodels/issues/4850 + rm statsmodels/tsa/tests/test_tsa_indexes.py || die + sed -i -e \ + "/def test_start_params_bug():/i@pytest.mark.xfail(reason='Known to fail on Gentoo')" \ + statsmodels/tsa/tests/test_arima.py || die + sed -i -e \ + "s/def test_pandas_endog():/def _test_pandas_endog():/g" \ + statsmodels/tsa/statespace/tests/test_mlemodel.py || die + sed -i -e \ + "/def test_all_datasets():/i@pytest.mark.xfail(reason='Known to fail on Gentoo')" \ + statsmodels/datasets/tests/test_data.py || die + sed -i -e \ + "/def test_issue_339():/i@pytest.mark.xfail(reason='Known to fail on Gentoo')" \ + statsmodels/discrete/tests/test_discrete.py || die + sed -i \ + -e "s/def test_hdr_multiple_alpha():/def _test_hdr_multiple_alpha():/g" \ + statsmodels/graphics/tests/test_functional.py || die + sed -i \ + -e '1s/^/import pytest \n/' \ + -e "/def test_single_factor_repeated_measures_anova():/i@pytest.mark.xfail(reason='Known to fail on Gentoo with Python 3')" \ + -e "/def test_two_factors_repeated_measures_anova():/i@pytest.mark.xfail(reason='Known to fail on Gentoo with Python 3')" \ + -e "/def test_three_factors_repeated_measures_anova():/i@pytest.mark.xfail(reason='Known to fail on Gentoo with Python 3')" \ + -e "/def test_repeated_measures_aggregate_compare_with_ezANOVA():/i@pytest.mark.xfail(reason='Known to fail on Gentoo with Python 3')" \ + statsmodels/stats/tests/test_anova_rm.py || die + fi + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && esetup.py build_sphinx -b html --build-dir=docs/build +} + +python_test() { + cd "${BUILD_DIR}" || die + py.test -v || die +} + +python_install_all() { + find . -name \*LICENSE.txt -delete || die + use doc && HTML_DOCS=( docs/build/html/. ) + 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" +} diff --git a/dev-python/statsmodels/statsmodels-9999.ebuild b/dev-python/statsmodels/statsmodels-9999.ebuild index a3afaa73d94b..51855998071e 100644 --- a/dev-python/statsmodels/statsmodels-9999.ebuild +++ b/dev-python/statsmodels/statsmodels-9999.ebuild @@ -3,7 +3,7 @@ EAPI=6 -PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) +PYTHON_COMPAT=( python2_7 python3_{5,6} ) inherit distutils-r1 git-r3 virtualx @@ -38,7 +38,7 @@ DEPEND="${CDEPEND} dev-python/numpydoc[${PYTHON_USEDEP}] dev-python/sphinx[${PYTHON_USEDEP}] ) - test? ( dev-python/nose[${PYTHON_USEDEP}] ) + test? ( dev-python/pytest[${PYTHON_USEDEP}] ) " python_prepare_all() { @@ -60,7 +60,7 @@ python_compile_all() { python_test() { cd "${BUILD_DIR}" || die - virtx nosetests -v || die + ${EPYTHON} -c 'import statsmodels; statsmodels.test(exit=True)' || die } python_install_all() { -- cgit v1.2.3