dev-python/pandas: Add python3.5 support
authorJustin Lecher <jlec@gentoo.org>
Wed, 21 Oct 2015 06:59:59 +0000 (08:59 +0200)
committerJustin Lecher <jlec@gentoo.org>
Wed, 21 Oct 2015 13:40:24 +0000 (15:40 +0200)
* Use PYTHON_USEDEP correctly
* Don't set HAME=. for tests
GitHub:
pydata/pandas/11297
pydata/pandas/11298

Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec@gentoo.org>
dev-python/pandas/pandas-0.17.0.ebuild

index 96b90f0cc6e907d6b1196895e345a175543fd746..fd2ce8ebb943e66e43952a363fa1900f497a0526 100644 (file)
@@ -4,7 +4,7 @@
 
 EAPI=5
 
-PYTHON_COMPAT=( python2_7 python3_{3,4} )
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
 
 inherit distutils-r1 eutils flag-o-matic virtualx
 
@@ -39,14 +39,13 @@ DEPEND="${CDEPEND}
                dev-python/lxml[${PYTHON_USEDEP}]
                dev-python/matplotlib[${PYTHON_USEDEP}]
                >=dev-python/openpyxl-1.6.1[${PYTHON_USEDEP}]
-               dev-python/openpyxl[${PYTHON_USEDEP}]
                >=dev-python/pytables-3.0.0[${PYTHON_USEDEP}]
                dev-python/pytz[${PYTHON_USEDEP}]
                dev-python/rpy[${PYTHON_USEDEP}]
                sci-libs/scipy[${PYTHON_USEDEP}]
                >=dev-python/sphinx-1.2.1[${PYTHON_USEDEP}]
-               dev-python/xlrd[$(python_gen_usedep 'python2_7')]
-               dev-python/xlwt[$(python_gen_usedep 'python2_7')]
+               dev-python/xlrd[${PYTHON_USEDEP}]
+               dev-python/xlwt[${PYTHON_USEDEP}]
                x11-misc/xclip
                )
        test? (
@@ -66,8 +65,8 @@ RDEPEND="${CDEPEND}
        dev-python/pytz[${PYTHON_USEDEP}]
        sci-libs/scipy[${PYTHON_USEDEP}]
        excel? (
-               dev-python/xlrd[$(python_gen_usedep 'python2_7')]
-               dev-python/xlwt[$(python_gen_usedep 'python2_7')]
+               dev-python/xlrd[${PYTHON_USEDEP}]
+               dev-python/xlwt[${PYTHON_USEDEP}]
                || (
                        dev-python/xlsxwriter[${PYTHON_USEDEP}]
                        >=dev-python/openpyxl-1.6.1[${PYTHON_USEDEP}]
@@ -85,6 +84,11 @@ python_prepare_all() {
        # Prevent un-needed download during build
        sed -e "/^              'sphinx.ext.intersphinx',/d" -i doc/source/conf.py || die
 
+       # https://github.com/pydata/pandas/issues/11299
+       sed \
+               -e 's:testOdArray:disable:g' \
+               -i pandas/io/tests/test_json/test_ujson.py || die
+
        distutils-r1_python_prepare_all
 }
 
@@ -103,7 +107,7 @@ python_test() {
        [[ -n "${FAST_PANDAS}" ]] && test_pandas+=' and not slow'
        pushd  "${BUILD_DIR}"/lib > /dev/null
        VIRTUALX_COMMAND="nosetests"
-       PYTHONPATH=. MPLCONFIGDIR=. HOME=. \
+       PYTHONPATH=. MPLCONFIGDIR=. \
                virtualmake --verbosity=3 -A "${test_pandas}" pandas
        popd > /dev/null
 }