diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/statsmodels |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/statsmodels')
-rw-r--r-- | dev-python/statsmodels/Manifest | 9 | ||||
-rw-r--r-- | dev-python/statsmodels/files/statsmodels-0.6.1-numpy-1.10.patch | 20 | ||||
-rw-r--r-- | dev-python/statsmodels/files/statsmodels-0.6.1-pandas-0.17.0.patch | 30 | ||||
-rw-r--r-- | dev-python/statsmodels/metadata.xml | 26 | ||||
-rw-r--r-- | dev-python/statsmodels/statsmodels-0.6.1.ebuild | 75 | ||||
-rw-r--r-- | dev-python/statsmodels/statsmodels-0.8.0.ebuild | 75 |
6 files changed, 235 insertions, 0 deletions
diff --git a/dev-python/statsmodels/Manifest b/dev-python/statsmodels/Manifest new file mode 100644 index 000000000000..5aea0bd36a1e --- /dev/null +++ b/dev-python/statsmodels/Manifest @@ -0,0 +1,9 @@ +AUX statsmodels-0.6.1-numpy-1.10.patch 910 SHA256 0b374a7f02a86b720481412ff717b39c3d9112a1c5a4f02e222ffff45e0b8434 SHA512 deffc2539641a91e728f3b8b5e4d6d98efe2b874491aca360ca945d8dc6774bf14b3e14796e1440728a8faad4472c846c69d4278301e37a29689adbab1e74c63 WHIRLPOOL 5f1db1b15a289c78e709861d67610acf980ddfcc24bb8b5854e8fc9d219fb6140433de4bb30e679dd1eaab01ea7f5b5ba091cf56bf6af6237ab052b78c3a5f23 +AUX statsmodels-0.6.1-pandas-0.17.0.patch 1043 SHA256 de6ff7e54e51cdc05203727014208c4c18dd6535b1d702a242f655df7b296e02 SHA512 0a4394d672105337fd03d435a402dbd31862a39b8010658f859114ed9694de9be4d6c3d641b5f385986a6651f0434a3602659d7192bf99f749e49f33f53a634b WHIRLPOOL 8181317a6ae3cbefccfac4ac4fb0ef75c1c54c199e4a1d96e6c924a9ed89642ed6514f345787a29c9800a069e7821df3a8150a5df59712422068980389503042 +DIST statsmodels-0.6.1.tar.gz 6980841 SHA256 be4e44374aec9e848b73e5a230dee190ac0c4519e1d40f69a5813190b13ec676 SHA512 9047b8cf4b9d19bd697867cecef1c4608fd86f3d16e67e44d8c152e1e25918f5aff6b4843c58395e71614be401551e3e48d4dcf158480cbdb45d9735b1c5ea77 WHIRLPOOL b14c7f5b734b26190f23edbf4020ace135571d4c0fa45e3e174647879d4c6547273abbab6c8911c346bf85b433a1908bd230fa52a1e09ede0e74c5e5167a8ecf +DIST statsmodels-0.8.0.tar.gz 9464851 SHA256 26431ab706fbae896db7870a0892743bfbb9f5c83231644692166a31d2d86048 SHA512 32bb7f36acc16796c445e5f695d958af4525fbbb2d374376fb4a73c972e3796fad05532456cef4aa5ee59d6fce11921174e17bbfc2e05d2488ce1ceac5175239 WHIRLPOOL 92dd92c9c5af6c73d90d2122e17306431be0263ae719db393400e5553ab4cbf3003603d0979b1528fd90bc1f5063d13d6778832f45f74e43ec70c829a684fedd +EBUILD statsmodels-0.6.1.ebuild 1780 SHA256 cbd128de35ec470f5f13aae9ef1894c328bd0b5c001c130d9fb35646a45b2de6 SHA512 dde6908cb7d8d70721e022aeca4ad460c2dfc03426a407f3daebc327f1d89591a570a360e56a3c0d2227bae51e9bc1b7209e1790a4ee2543f5c9c49f199b4a27 WHIRLPOOL 20ad81579456bb61772321242dd2904ff7d1ee4a1bb8f6ef6ea259ac79c41ffe36088e7fa9f9195ec79e067fa976fe0e16ab712e052672e9adde12eeea04b0e3 +EBUILD statsmodels-0.8.0.ebuild 1936 SHA256 9ad93dfdad9fec467b66fd585f598ae4e86fdf28d5524a5ec2fe7b207f792064 SHA512 46af987b7bfd458272f5831b7ba1f58978f309dacbd3d36b41f770c5fff56dd17d73babf3e2544d1aebb7cb30cef63c54ddc5b291ccd9af9c8e94ffd24bc0a27 WHIRLPOOL 0eb1d23b41fbcf72a106e8688e1047eef5f83f92d956c1b7ce6963ce2da7a9609934ee2e610def7622aba04476031fa2c0a64b783caf852ca69662114d9b92b4 +MISC ChangeLog 3157 SHA256 c14c18362907bda074595c973e7f06ac03f4a8dc04bdb7dc080b1588595038a4 SHA512 e162f1a186b7ab39c58e0c2bb0dc7b449bd6fec6b1203ef390f71c24c2543e2fa7ba3a719e30cdd7e6469aae97143984e6747e6d1b98fae68011fba51a7e1948 WHIRLPOOL b0a26f2d26f580c25f4510efff9f5b530d6946e68fb5f16aeacc329e21a7755b95c8db3908620d4e237be00599fafb53a8841b83dbad06985cf1c68f05161da3 +MISC ChangeLog-2015 1552 SHA256 dde34613ad0a8077515a5136c091a6520c145ca523b4e5073fa76de43e66f286 SHA512 9be2c29acfe40d7de0c9b7aa93d535ad408eed4c098c20f9426aa9019b3a88679e44b13ff862a74e6fd0e82fb46a725f41632ab74ad7db81803cf99109eb2946 WHIRLPOOL cd9de6d82f6ce0742c64075210c7004f083920d79bb6e3867a5ee17155ff0fa3903a25a2a8e7f3d4d1e5fb6885f67e5bc226f8939f8020dd425bdda9ba9edd3b +MISC metadata.xml 1075 SHA256 92d0b6c361ce278a04d30b5d746233211b38d41d12f6f210f06418da6c0aef18 SHA512 7e9c385a1820da33e55db49d582d750f01fd11c0dd1616470f2cd71f12c673010cf76c8af984472daa8787704d353f2d42f60798e419d182c9e24ba4dd7dd97f WHIRLPOOL 700dc3488cb824265ed6b92f8083acf9bf544f0b4a1c1405103f82651fac7f264bcf4ffb49397e465c2aa9c0c82483ad43e71e5458cd17c2b330326d13e17ab5 diff --git a/dev-python/statsmodels/files/statsmodels-0.6.1-numpy-1.10.patch b/dev-python/statsmodels/files/statsmodels-0.6.1-numpy-1.10.patch new file mode 100644 index 000000000000..2d9720c5fec6 --- /dev/null +++ b/dev-python/statsmodels/files/statsmodels-0.6.1-numpy-1.10.patch @@ -0,0 +1,20 @@ + statsmodels/tsa/ar_model.py | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +diff --git a/statsmodels/tsa/ar_model.py b/statsmodels/tsa/ar_model.py +index f0af7ee..fe05634 100644 +--- a/statsmodels/tsa/ar_model.py ++++ b/statsmodels/tsa/ar_model.py +@@ -256,10 +256,8 @@ class AR(tsbase.TimeSeriesModel): + + Vpinv = np.zeros((p, p), dtype=params.dtype) + for i in range(1, p1): +- Vpinv[i-1, i-1:] = np.correlate(params0, params0[:i], +- old_behavior=False)[:-1] +- Vpinv[i-1, i-1:] -= np.correlate(params0[-i:], params0, +- old_behavior=False)[:-1] ++ Vpinv[i-1, i-1:] = np.correlate(params0, params0[:i])[:-1] ++ Vpinv[i-1, i-1:] -= np.correlate(params0[-i:], params0)[:-1] + + Vpinv = Vpinv + Vpinv.T - np.diag(Vpinv.diagonal()) + return Vpinv diff --git a/dev-python/statsmodels/files/statsmodels-0.6.1-pandas-0.17.0.patch b/dev-python/statsmodels/files/statsmodels-0.6.1-pandas-0.17.0.patch new file mode 100644 index 000000000000..540135c9e125 --- /dev/null +++ b/dev-python/statsmodels/files/statsmodels-0.6.1-pandas-0.17.0.patch @@ -0,0 +1,30 @@ + setup.py | 2 +- + statsmodels/tools/testing.py | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/setup.py b/setup.py +index 1a7da9a..a6d1b33 100644 +--- a/setup.py ++++ b/setup.py +@@ -134,7 +134,7 @@ def check_dependency_versions(min_versions): + (spversion, min_versions['scipy'])) + + try: +- from pandas.version import short_version as pversion ++ from pandas import __version__ as pversion + except ImportError: + install_requires.append('pandas') + else: +diff --git a/statsmodels/tools/testing.py b/statsmodels/tools/testing.py +index 1fde1de..92e77fc 100644 +--- a/statsmodels/tools/testing.py ++++ b/statsmodels/tools/testing.py +@@ -17,7 +17,7 @@ def strip_rc(version): + def is_pandas_min_version(min_version): + '''check whether pandas is at least min_version + ''' +- from pandas.version import short_version as pversion ++ from pandas import __version__ as pversion + return StrictVersion(strip_rc(pversion)) >= min_version + + diff --git a/dev-python/statsmodels/metadata.xml b/dev-python/statsmodels/metadata.xml new file mode 100644 index 000000000000..cb9b89704bd8 --- /dev/null +++ b/dev-python/statsmodels/metadata.xml @@ -0,0 +1,26 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <maintainer type="project"> + <email>sci-mathematics@gentoo.org</email> + <name>Gentoo Mathematics Project</name> + </maintainer> + <longdescription lang="en"> + statsmodels is a Python module that allows users to explore data, + estimate statistical models, and perform statistical tests. An + extensive list of descriptive statistics, statistical tests, + plotting functions, and result statistics are available for + different types of data and each estimator. Researchers across + fields may find that statsmodels fully meets their needs for + statistical computing and data analysis in Python. + </longdescription> + <upstream> + <remote-id type="pypi">statsmodels</remote-id> + <remote-id type="github">statsmodels</remote-id> + <remote-id type="sourceforge">statsmodels</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/statsmodels/statsmodels-0.6.1.ebuild b/dev-python/statsmodels/statsmodels-0.6.1.ebuild new file mode 100644 index 000000000000..30bc2b7ef2c7 --- /dev/null +++ b/dev-python/statsmodels/statsmodels-0.6.1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 virtualx + +DESCRIPTION="Statistical computations and models for use with SciPy" +HOMEPAGE="http://statsmodels.sourceforge.net/" +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" + +CDEPEND=" + >=dev-python/numpy-1.5.1[${PYTHON_USEDEP}] + >=dev-python/pandas-0.7.1[${PYTHON_USEDEP}] + >=dev-python/patsy-0.3.0[${PYTHON_USEDEP}] + >=sci-libs/scipy-0.9.0[${PYTHON_USEDEP}] + " +RDEPEND="${CDEPEND} + examples? ( dev-python/matplotlib[${PYTHON_USEDEP}] )" +DEPEND="${CDEPEND} + >=dev-python/cython-0.20.1[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( + >=dev-python/matplotlib-1.1[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/ipython[${PYTHON_USEDEP}] + ) + test? ( dev-python/nose[${PYTHON_USEDEP}] )" + +PATCHES=( + "${FILESDIR}"/${P}-pandas-0.17.0.patch + "${FILESDIR}"/${P}-numpy-1.10.patch +) + +pkg_setup() { + export MPLCONFIGDIR="${T}" HOME="${T}" +} + +python_compile_all() { + if use doc; then + VARTEXFONTS="${T}"/fonts ${EPYTHON} setup.py build_sphinx || die + fi +} + +python_test() { + cd "${BUILD_DIR}" || die + VIRTUALX_COMMAND="nosetests" + virtualmake --verbosity=3 +} + +python_install() { + distutils-r1_python_install +} + +python_install_all() { + find "${S}" -name \*LICENSE.txt -delete + use doc && HTML_DOCS=( build/sphinx/html/* ) + if use examples; then + docompress -x /usr/share/doc/${PF}/examples + insinto /usr/share/doc/${PF} + doins -r examples + fi + distutils-r1_python_install_all +} + +pkg_postinst() { + optfeature "plotting functionality" ">=dev-python/matplotlib-1.1" +} diff --git a/dev-python/statsmodels/statsmodels-0.8.0.ebuild b/dev-python/statsmodels/statsmodels-0.8.0.ebuild new file mode 100644 index 000000000000..f97c490c2a60 --- /dev/null +++ b/dev-python/statsmodels/statsmodels-0.8.0.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 virtualx + +DESCRIPTION="Statistical computations and models for use with SciPy" +HOMEPAGE="http://www.statsmodels.org/" +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" + +CDEPEND=" + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pandas[${PYTHON_USEDEP}] + dev-python/patsy[${PYTHON_USEDEP}] + sci-libs/scipy[${PYTHON_USEDEP}] +" +RDEPEND="${CDEPEND} + examples? ( dev-python/matplotlib[${PYTHON_USEDEP}] ) +" +DEPEND="${CDEPEND} + 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/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}" + export HOME="${T}" + echo "backend : Agg" > "${MPLCONFIGDIR}"/matplotlibrc || die + 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 + virtx nosetests -v || die +} + +python_install_all() { + find "${S}" -name \*LICENSE.txt -delete + use doc && HTML_DOCS=( docs/build/html/* ) + if use examples; then + docompress -x /usr/share/doc/${PF}/examples + insinto /usr/share/doc/${PF} + doins -r examples + fi + distutils-r1_python_install_all +} + +pkg_postinst() { + optfeature "Plotting functionality" "dev-python/matplotlib" +} |