[gentoo-commits] repo/gentoo:master commit in: dev-python/pandas/files/, dev-python/pandas/

2023-12-09 Thread Michał Górny
commit: b8d37c066bce331a3225cd3908895641737a7da6
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Dec  9 05:38:30 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Dec  9 10:31:46 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8d37c06

dev-python/pandas: Bump to 2.1.4

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pandas/Manifest |   1 +
 .../pandas/files/pandas-2.1.4-khash-dep.patch  |  45 +
 dev-python/pandas/pandas-2.1.4.ebuild  | 221 +
 3 files changed, 267 insertions(+)

diff --git a/dev-python/pandas/Manifest b/dev-python/pandas/Manifest
index 408349fbf7e5..eafa0a1db645 100644
--- a/dev-python/pandas/Manifest
+++ b/dev-python/pandas/Manifest
@@ -2,3 +2,4 @@ DIST pandas-1.5.3.tar.gz 5203060 BLAKE2B 
846a6caa8ead6a2556303494f92e2091582d8fc
 DIST pandas-2.1.1.tar.gz 4266250 BLAKE2B 
9d8256300db65b606e34b16d7f3884b602794fe3c14d66115056db4a4658603fbe7a7a3082dfc781760517d643d6e21a6d4d43441131ec6aed5965b6fa8a0e9c
 SHA512 
346e13e06805948c569712028c9b8d756c67ca2fab040999a51a4e759206d50d8ee25be38ac3c7cb3d2e692a02d85c1ec198841311fe43cb04b64f2741627a4e
 DIST pandas-2.1.2.tar.gz 4271419 BLAKE2B 
2f22035c9b7d6a0403b28ebe506550328e096f0ed87984dba28d2f49950393ed8a5a3c0c71c5391385d9f5361319431d5de3736f7381eb7670045415b05137a7
 SHA512 
dad04f1fcc5a59485c34ebfed0698fd47ad9eeffafaddf91642c084f4ffde8a55ce543f9dadb6e7a5066b1809489961d34fe3fe8860f64f9bd2d90b445d92063
 DIST pandas-2.1.3.tar.gz 4272855 BLAKE2B 
73717926bb0af44acb9a2d12964df7bf70affd61ca19468b3af4376f9c8084d3612895a9ac5117be97658fd5b7ff0275cd7b2c6f1b9b0e00afb951fd50a1f103
 SHA512 
71012b47b76444e19507e444c8ef88497e3b286856690216886cbb67ad70786c2f5014a7cf6c89f8378769560109fb5593a8c82c21a034a1059769e15c843b92
+DIST pandas-2.1.4.tar.gz 4274800 BLAKE2B 
71cd374964d5e751a9ea0b29cb341d7de521de8de3bbe0963fc821eb6fa2babf2a5cb87c0f49fab88fd451bd331d83fd216f199c75876d7c1ea367ba53c20178
 SHA512 
de02944829ea4df6a3913788c2ae30683504d70a1cef5789c927245dab8700981edd50de18af3619d30ac97f4658fce67f6c7637acf496bd464ad3a4109bfd1c

diff --git a/dev-python/pandas/files/pandas-2.1.4-khash-dep.patch 
b/dev-python/pandas/files/pandas-2.1.4-khash-dep.patch
new file mode 100644
index ..f8bbff5fed37
--- /dev/null
+++ b/dev-python/pandas/files/pandas-2.1.4-khash-dep.patch
@@ -0,0 +1,45 @@
+From e31a6865958442435ae9b31f312129c44f66eb5e Mon Sep 17 00:00:00 2001
+From: Ville Aikas <11279988+vai...@users.noreply.github.com>
+Date: Mon, 6 Nov 2023 09:24:40 -0800
+Subject: [PATCH] Add missing dependencies for: _khash_primitive_helper
+ (#55795)
+
+* Add missing dependencies for: _khash_primitive_helper
+
+Signed-off-by: Ville Aikas 
+
+* source->dep change.
+
+Signed-off-by: Ville Aikas 
+
+* Remove dep from arrays.
+
+Signed-off-by: Ville Aikas 
+
+-
+
+Signed-off-by: Ville Aikas 
+---
+ pandas/_libs/meson.build | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/pandas/_libs/meson.build b/pandas/_libs/meson.build
+index b4662d6bf8dd2..c27386743c6e9 100644
+--- a/pandas/_libs/meson.build
 b/pandas/_libs/meson.build
+@@ -61,12 +61,12 @@ subdir('tslibs')
+ libs_sources = {
+ # Dict of extension name -> dict of {sources, include_dirs, and deps}
+ # numpy include dir is implicitly included
+-'algos': {'sources': ['algos.pyx', _algos_common_helper, 
_algos_take_helper, _khash_primitive_helper]},
++'algos': {'sources': ['algos.pyx', _algos_common_helper, 
_algos_take_helper], 'deps': _khash_primitive_helper_dep},
+ 'arrays': {'sources': ['arrays.pyx']},
+ 'groupby': {'sources': ['groupby.pyx']},
+ 'hashing': {'sources': ['hashing.pyx']},
+-'hashtable': {'sources': ['hashtable.pyx', _khash_primitive_helper, 
_hashtable_class_helper, _hashtable_func_helper]},
+-'index': {'sources': ['index.pyx', _index_class_helper]},
++'hashtable': {'sources': ['hashtable.pyx', _hashtable_class_helper, 
_hashtable_func_helper], 'deps': _khash_primitive_helper_dep},
++'index': {'sources': ['index.pyx', _index_class_helper], 'deps': 
_khash_primitive_helper_dep},
+ 'indexing': {'sources': ['indexing.pyx']},
+ 'internals': {'sources': ['internals.pyx']},
+ 'interval': {'sources': ['interval.pyx', _intervaltree_helper],

diff --git a/dev-python/pandas/pandas-2.1.4.ebuild 
b/dev-python/pandas/pandas-2.1.4.ebuild
new file mode 100644
index ..f4a73c08
--- /dev/null
+++ b/dev-python/pandas/pandas-2.1.4.ebuild
@@ -0,0 +1,221 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=meson-python
+PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_REQ_USE="threads(+)"
+
+VIRTUALX_REQUIRED="manual"
+
+inherit distutils-r1 optfeature pypi virtualx
+
+DESCRIPTION="Powerful data structures for data analysis and statistics"
+HOMEPAGE="
+   https://pandas.pydata.org/
+   

[gentoo-commits] repo/gentoo:master commit in: dev-python/pandas/files/, dev-python/pandas/

2023-08-31 Thread Michał Górny
commit: 5bbaf661cb9f4ea915197376e204f29fab736684
Author: Michał Górny  gentoo  org>
AuthorDate: Thu Aug 31 19:29:46 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Aug 31 20:21:38 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bbaf661

dev-python/pandas: Fix build & tests

Signed-off-by: Michał Górny  gentoo.org>

 .../pandas/files/pandas-2.1.0-build-system.patch   | 53 
 dev-python/pandas/pandas-2.1.0.ebuild  | 94 +++---
 2 files changed, 134 insertions(+), 13 deletions(-)

diff --git a/dev-python/pandas/files/pandas-2.1.0-build-system.patch 
b/dev-python/pandas/files/pandas-2.1.0-build-system.patch
new file mode 100644
index ..3f858647f919
--- /dev/null
+++ b/dev-python/pandas/files/pandas-2.1.0-build-system.patch
@@ -0,0 +1,53 @@
+From 2e8e37e495b85856bb440e67db9a6a72a37cfedd Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= 
+Date: Thu, 31 Aug 2023 18:21:26 +0200
+Subject: [PATCH] Fix build system problems
+
+Fix missing dependency for interval library, and workaround duplicate
+__init__.py files.
+
+https://github.com/pandas-dev/pandas/issues/54888
+https://github.com/pandas-dev/pandas/issues/54889
+---
+ pandas/_libs/meson.build| 7 ++-
+ pandas/_libs/tslibs/meson.build | 4 
+ 2 files changed, 2 insertions(+), 9 deletions(-)
+
+diff --git a/pandas/_libs/meson.build b/pandas/_libs/meson.build
+index f302c64..07d2d8a 100644
+--- a/pandas/_libs/meson.build
 b/pandas/_libs/meson.build
+@@ -69,7 +69,8 @@ libs_sources = {
+ 'index': {'sources': ['index.pyx', _index_class_helper]},
+ 'indexing': {'sources': ['indexing.pyx']},
+ 'internals': {'sources': ['internals.pyx']},
+-'interval': {'sources': ['interval.pyx', _intervaltree_helper]},
++'interval': {'sources': ['interval.pyx', _intervaltree_helper],
++ 'deps': _khash_primitive_helper_dep},
+ 'join': {'sources': ['join.pyx', _khash_primitive_helper],
+  'deps': _khash_primitive_helper_dep},
+ 'lib': {'sources': ['lib.pyx', 'src/parser/tokenizer.c']},
+@@ -113,8 +114,4 @@ foreach ext_name, ext_dict : libs_sources
+ )
+ endforeach
+ 
+-py.install_sources('__init__.py',
+-pure: false,
+-subdir: 'pandas/_libs')
+-
+ subdir('window')
+diff --git a/pandas/_libs/tslibs/meson.build b/pandas/_libs/tslibs/meson.build
+index 14d2eef..a862345 100644
+--- a/pandas/_libs/tslibs/meson.build
 b/pandas/_libs/tslibs/meson.build
+@@ -30,7 +30,3 @@ foreach ext_name, ext_dict : tslibs_sources
+ install: true
+ )
+ endforeach
+-
+-py.install_sources('__init__.py',
+-pure: false,
+-subdir: 'pandas/_libs/tslibs')
+-- 
+2.42.0
+

diff --git a/dev-python/pandas/pandas-2.1.0.ebuild 
b/dev-python/pandas/pandas-2.1.0.ebuild
index 9de1179c87be..327bd80ea823 100644
--- a/dev-python/pandas/pandas-2.1.0.ebuild
+++ b/dev-python/pandas/pandas-2.1.0.ebuild
@@ -10,7 +10,7 @@ PYTHON_REQ_USE="threads(+)"
 
 VIRTUALX_REQUIRED="manual"
 
-inherit distutils-r1 multiprocessing optfeature virtualx
+inherit distutils-r1 multiprocessing optfeature pypi virtualx
 
 DESCRIPTION="Powerful data structures for data analysis and statistics"
 HOMEPAGE="
@@ -18,19 +18,10 @@ HOMEPAGE="
https://github.com/pandas-dev/pandas/
https://pypi.org/project/pandas/
 "
-SRC_URI="
-   
https://github.com/pandas-dev/pandas/releases/download/v${PV}/${P}.tar.gz
-"
-S=${WORKDIR}/${P/_/}
 
 SLOT="0"
 LICENSE="BSD"
-# new meson build that:
-# 1) sometimes fails on .pxi.in → .pyx ordering
-#https://github.com/pandas-dev/pandas/issues/54889
-# 2) creates a broken wheel with two pandas/_libs/__init__.py files
-#https://github.com/pandas-dev/pandas/issues/54888
-KEYWORDS=""
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~arm64-macos ~x64-macos"
 IUSE="full-support minimal test X"
 RESTRICT="!test? ( test )"
 
@@ -97,6 +88,7 @@ BDEPEND="
>=dev-python/pytest-xdist-2.2.0[${PYTHON_USEDEP}]
>=dev-python/psycopg-2.9.3:2[${PYTHON_USEDEP}]
>=dev-python/xlsxwriter-3.0.3[${PYTHON_USEDEP}]
+   sys-apps/which
x11-misc/xclip
x11-misc/xsel
)
@@ -108,16 +100,92 @@ RDEPEND="
full-support? ( ${OPTIONAL_DEPEND} )
 "
 
+PATCHES=(
+   "${FILESDIR}/${P}-build-system.patch"
+)
+
 src_test() {
virtx distutils-r1_src_test
 }
 
 python_test() {
+   local EPYTEST_DESELECT=(
+   # test for rounding errors, fails if we have better precision
+   # e.g. on amd64 with FMA or on arm64
+   # https://github.com/pandas-dev/issues/38921
+   tests/window/test_rolling.py::test_rolling_var_numerical_issues
+
+   # TODO; unhappy about DISPLAY?
+   tests/test_downstream.py::test_seaborn
+   
+   # OOMs
+   

[gentoo-commits] repo/gentoo:master commit in: dev-python/pandas/files/, dev-python/pandas/

2021-10-29 Thread Sam James
commit: 45d65df5773c2bcaf1241e5c0881c7308d9c6740
Author: Sam James  gentoo  org>
AuthorDate: Fri Oct 29 16:59:28 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Oct 29 16:59:28 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45d65df5

dev-python/pandas: fix detecting 32-bit arm (for skipping some tests)

Bug: https://bugs.gentoo.org/818964
Signed-off-by: Sam James  gentoo.org>

 .../pandas/files/pandas-1.3.4-arm-tests.patch   | 21 +
 dev-python/pandas/pandas-1.3.4.ebuild   |  5 +
 2 files changed, 26 insertions(+)

diff --git a/dev-python/pandas/files/pandas-1.3.4-arm-tests.patch 
b/dev-python/pandas/files/pandas-1.3.4-arm-tests.patch
new file mode 100644
index 000..c30d10460b6
--- /dev/null
+++ b/dev-python/pandas/files/pandas-1.3.4-arm-tests.patch
@@ -0,0 +1,21 @@
+https://bugs.gentoo.org/818964
+https://github.com/pandas-dev/pandas/commit/b0992ee2f4653c7d70ddbad6f2d172a4ef0bda32
+
+From: Sam James 
+Date: Fri, 29 Oct 2021 17:24:01 +0100
+Subject: [PATCH] Update is_platform_arm() to detect 32-bit arm and other
+ variants (#44225)
+
+--- a/pandas/compat/__init__.py
 b/pandas/compat/__init__.py
+@@ -99,7 +99,9 @@ def is_platform_arm() -> bool:
+ bool
+ True if the running platform uses ARM architecture.
+ """
+-return platform.machine() in ("arm64", "aarch64")
++return platform.machine() in ("arm64", "aarch64") or 
platform.machine().startswith(
++"armv"
++)
+ 
+ 
+ def import_lzma():

diff --git a/dev-python/pandas/pandas-1.3.4.ebuild 
b/dev-python/pandas/pandas-1.3.4.ebuild
index 4c3b594f00c..4d866a1cf62 100644
--- a/dev-python/pandas/pandas-1.3.4.ebuild
+++ b/dev-python/pandas/pandas-1.3.4.ebuild
@@ -106,6 +106,11 @@ RDEPEND="${COMMON_DEPEND}
full-support? ( ${OPTIONAL_DEPEND} )
 "
 
+PATCHES=(
+   # Upstream patch to fix 32-bit ARM test detection
+   "${FILESDIR}"/${P}-arm-tests.patch
+)
+
 python_prepare_all() {
# Prevent un-needed download during build
sed -e "/^  'sphinx.ext.intersphinx',/d" \



[gentoo-commits] repo/gentoo:master commit in: dev-python/pandas/files/, dev-python/pandas/

2020-08-07 Thread Michał Górny
commit: ce536c2855117bfdf2a072e49ba1a5627941e481
Author: Michał Górny  gentoo  org>
AuthorDate: Fri Aug  7 19:47:38 2020 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri Aug  7 19:56:20 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce536c28

dev-python/pandas: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pandas/Manifest |   2 -
 .../files/pandas-0.24.2-skip-broken-test.patch |  15 --
 dev-python/pandas/pandas-0.24.2.ebuild | 166 ---
 dev-python/pandas/pandas-1.0.4.ebuild  | 175 -
 4 files changed, 358 deletions(-)

diff --git a/dev-python/pandas/Manifest b/dev-python/pandas/Manifest
index 61155686962..8a40c3370c6 100644
--- a/dev-python/pandas/Manifest
+++ b/dev-python/pandas/Manifest
@@ -1,4 +1,2 @@
-DIST pandas-0.24.2.tar.gz 11837693 BLAKE2B 
3762e94554a3ae3c803c9a412c5c551c15a9fbf15cb05633f7d1b0ccbfddc646f68f030e688a83a4495b0537cea2fec671157f5a63aaa5f9cad6b791261e
 SHA512 
0795c6bb8a47a511853558ea59d371b4540ec175f213cfba4ad2361d6481fea5d3f7074bb4961c32f2f0080a72d7436a9b3706f5cc692074f98d83bfc587fd15
-DIST pandas-1.0.4.tar.gz 5040267 BLAKE2B 
2855b1708e1ae4c56b6118613ec644d010a3af7db474bb30aec3cf84e497371af03b63a2168f6daf0fc42da07274f8724734117c6aaea34f49eeafbf6ac73b9f
 SHA512 
01ef73cab3db067ca4a29992d71aa637425b8d70473fde6ccfb359dfedc9546315c6d37d74f3825c924cab789c2536ec69db071a303cfc5e1a7897b253dd9467
 DIST pandas-1.0.5.tar.gz 5007108 BLAKE2B 
6aff9602f8b1642af1dca70c7c596f2978bfef8ca9bc782d55aeeab85d3768289849ccd0150291c33cab3442d38cedada91fb846abaade1b3905098edb06c06e
 SHA512 
bb9e3ed9988f7b878ac6f9d7c6c054b119acfc4b960ae42ea92436979ef2098289123cac32b176753942a1edb3b6bd35c4eaf05112a25fbf8a89078fd76a2646
 DIST pandas-1.1.0.tar.gz 5211071 BLAKE2B 
538e7579384dceb29f1761e00181fda4f07556ee15723a127966e47c317babead19b364943808d11f03007d5a48da3b28bf8fd9e5c1f40bb3285604307bff267
 SHA512 
496344967e6061ed451edfe2057d0b63d7277cdce0e12e2e2ce558aef2c23fa5d85daae239fcf88820196add3a928734f31af2734866da7b0385f363607e2885

diff --git a/dev-python/pandas/files/pandas-0.24.2-skip-broken-test.patch 
b/dev-python/pandas/files/pandas-0.24.2-skip-broken-test.patch
deleted file mode 100644
index dcc61dc0cfd..000
--- a/dev-python/pandas/files/pandas-0.24.2-skip-broken-test.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-diff --git a/pandas/tests/io/json/test_ujson.py 
b/pandas/tests/io/json/test_ujson.py
-index 63ba9bc0f..854afecab 100644
 a/pandas/tests/io/json/test_ujson.py
-+++ b/pandas/tests/io/json/test_ujson.py
-@@ -841,7 +841,9 @@ class TestNumpyJSONTests(object):
- arr_out = ujson.decode(ujson.encode(arr), numpy=True, dtype=dtype)
- tm.assert_almost_equal(arr, arr_out)
- 
--def test_0d_array(self):
-+# Segfaulting on gentoo, not sure why. TODO: find why.
-+# Clue: https://github.com/pandas-dev/pandas/issues/22718
-+def xtest_0d_array(self):
- with pytest.raises(TypeError):
- ujson.encode(np.array(1))
- 

diff --git a/dev-python/pandas/pandas-0.24.2.ebuild 
b/dev-python/pandas/pandas-0.24.2.ebuild
deleted file mode 100644
index fd193a5c024..000
--- a/dev-python/pandas/pandas-0.24.2.ebuild
+++ /dev/null
@@ -1,166 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{6,7} )
-PYTHON_REQ_USE="threads(+)"
-
-VIRTUALX_REQUIRED="manual"
-
-inherit distutils-r1 eutils flag-o-matic virtualx
-
-DESCRIPTION="Powerful data structures for data analysis and statistics"
-HOMEPAGE="https://pandas.pydata.org/;
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P/_/}.tar.gz"
-
-SLOT="0"
-LICENSE="BSD"
-KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
-IUSE="doc full-support minimal test X"
-RESTRICT="!test? ( test )"
-
-RECOMMENDED_DEPEND="
-   >=dev-python/bottleneck-1.2.1[${PYTHON_USEDEP}]
-   >=dev-python/numexpr-2.1[${PYTHON_USEDEP}]
-"
-
-# TODO: add pandas-gbq to the tree
-OPTIONAL_DEPEND="
-   dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
-   dev-python/blosc[${PYTHON_USEDEP}]
-   || (
-   dev-python/html5lib[${PYTHON_USEDEP}]
-   dev-python/lxml[${PYTHON_USEDEP}]
-   )
-   dev-python/jinja[${PYTHON_USEDEP}]
-   dev-python/matplotlib[${PYTHON_USEDEP}]
-   || (
-   dev-python/openpyxl[${PYTHON_USEDEP}]
-   dev-python/xlsxwriter[${PYTHON_USEDEP}]
-   )
-   >=dev-python/pytables-3.2.1[${PYTHON_USEDEP}]
-   dev-python/s3fs[${PYTHON_USEDEP}]
-   dev-python/statsmodels[${PYTHON_USEDEP}]
-   >=dev-python/sqlalchemy-0.8.1[${PYTHON_USEDEP}]
-   >=dev-python/xarray-0.10.8[${PYTHON_USEDEP}]
-   >=dev-python/xlrd-1.0.0[${PYTHON_USEDEP}]
-   dev-python/xlwt[${PYTHON_USEDEP}]
-   >=sci-libs/scipy-1.1[${PYTHON_USEDEP}]
-   X? (
-   || (
-   dev-python/PyQt5[${PYTHON_USEDEP}]
-

[gentoo-commits] repo/gentoo:master commit in: dev-python/pandas/files/, dev-python/pandas/

2020-01-19 Thread Pacho Ramos
commit: b4aec8ba0d4cce0ec3f22c735ba4d0c2d0f42087
Author: Pacho Ramos  gentoo  org>
AuthorDate: Sun Jan 19 19:48:27 2020 +
Commit: Pacho Ramos  gentoo  org>
CommitDate: Sun Jan 19 19:54:11 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4aec8ba

(cat_pn): Drop old

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Pacho Ramos  gentoo.org>

 dev-python/pandas/Manifest |   2 -
 dev-python/pandas/files/pandas-0.19.1-gapi.patch   |  27 --
 dev-python/pandas/files/pandas-0.19.1-seqf.patch   | 357 -
 .../files/pandas-0.23.4-skip-broken-test.patch |  24 --
 dev-python/pandas/pandas-0.19.1.ebuild | 159 -
 dev-python/pandas/pandas-0.23.4.ebuild | 169 --
 6 files changed, 738 deletions(-)

diff --git a/dev-python/pandas/Manifest b/dev-python/pandas/Manifest
index c5268587c92..979d04182ba 100644
--- a/dev-python/pandas/Manifest
+++ b/dev-python/pandas/Manifest
@@ -1,3 +1 @@
-DIST pandas-0.19.1.tar.gz 8360233 BLAKE2B 
82611ca1a3e3169ac2d084f4dcd9c4d4d74e9e9c9913a41acad48ae68a208a884dfd877445a7d658a7ff098ef383cedae7e79a4900baa8d56c032ce9aaad96eb
 SHA512 
6451990a7fae8c6db8ab0b014a13b4f1828754d3998f13c17b111f891fb9fd23f8e09b907623096dfa55668c42298eee1373210a9fddb95f56dd7d552b964e6f
-DIST pandas-0.23.4.tar.gz 10490077 BLAKE2B 
28a78860e0aa5de8def7bb529fc98b9121a516b7fd7620e31e000ae14217165e6677ce26b56da0b9c603930ab1304725c644426a135d8f9b2a84921b88f3d23d
 SHA512 
0c89db820a49e0cfb9764e64589ff9af819f9a53c01bd0254cd1b6dbd1e9fd452b2ff7c7330ede7623c7576589113e831a19a57c735562b55f90506df15805b9
 DIST pandas-0.24.2.tar.gz 11837693 BLAKE2B 
3762e94554a3ae3c803c9a412c5c551c15a9fbf15cb05633f7d1b0ccbfddc646f68f030e688a83a4495b0537cea2fec671157f5a63aaa5f9cad6b791261e
 SHA512 
0795c6bb8a47a511853558ea59d371b4540ec175f213cfba4ad2361d6481fea5d3f7074bb4961c32f2f0080a72d7436a9b3706f5cc692074f98d83bfc587fd15

diff --git a/dev-python/pandas/files/pandas-0.19.1-gapi.patch 
b/dev-python/pandas/files/pandas-0.19.1-gapi.patch
deleted file mode 100644
index 7a0456fdacf..000
--- a/dev-python/pandas/files/pandas-0.19.1-gapi.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From 1d6dbb41b26a39121ec8c4f19f5da78bb0ab4af7 Mon Sep 17 00:00:00 2001
-From: Jeff Reback 
-Date: Sat, 12 Nov 2016 12:44:06 -0500
-Subject: [PATCH] TST: skip test_gbq.test_upload_data_if_table_exists_replace
- for now
-

- pandas/io/tests/test_gbq.py | 3 +++
- 1 file changed, 3 insertions(+)
-
-diff --git a/pandas/io/tests/test_gbq.py b/pandas/io/tests/test_gbq.py
-index cca1580b8..f6ff35a6d 100644
 a/pandas/io/tests/test_gbq.py
-+++ b/pandas/io/tests/test_gbq.py
-@@ -824,6 +824,9 @@ class TestToGBQIntegration(tm.TestCase):
-private_key=_get_private_key_path())
- 
- def test_upload_data_if_table_exists_replace(self):
-+
-+raise nose.SkipTest("buggy test")
-+
- destination_table = DESTINATION_TABLE + "4"
- 
- test_size = 10
--- 
-2.11.0
-

diff --git a/dev-python/pandas/files/pandas-0.19.1-seqf.patch 
b/dev-python/pandas/files/pandas-0.19.1-seqf.patch
deleted file mode 100644
index c82c14ff8fd..000
--- a/dev-python/pandas/files/pandas-0.19.1-seqf.patch
+++ /dev/null
@@ -1,357 +0,0 @@
-From f8bd08e9c2fc6365980f41b846bbae4b40f08b83 Mon Sep 17 00:00:00 2001
-From: Jeff Reback 
-Date: Sat, 12 Nov 2016 10:58:54 -0500
-Subject: [PATCH] BUG: segfault manifesting with dateutil=2.6 w.r.t. replace
- when timezones are present
-
-closes #14621
-
-Author: Jeff Reback 
-
-Closes #14631 from jreback/replace and squashes the following commits:
-
-3f95042 [Jeff Reback] BUG: segfault manifesting with dateutil=2.6 w.r.t. 
replace when timezones are present

- ci/requirements-3.5_OSX.pip|  2 +-
- doc/source/whatsnew/v0.19.2.txt|  3 ++
- pandas/tseries/offsets.py  |  1 +
- pandas/tseries/tests/test_offsets.py   | 20 ---
- pandas/tseries/tests/test_timezones.py | 89 +--
- pandas/tseries/tests/test_tslib.py |  5 +-
- pandas/tslib.pyx   | 95 --
- 7 files changed, 188 insertions(+), 27 deletions(-)
-
-diff --git a/pandas/tseries/offsets.py b/pandas/tseries/offsets.py
-index 051cc8aa4..2e3852a7e 100644
 a/pandas/tseries/offsets.py
-+++ b/pandas/tseries/offsets.py
-@@ -68,6 +68,7 @@ def apply_wraps(func):
- other = other.tz_localize(None)
- 
- result = func(self, other)
-+
- if self._adjust_dst:
- result = tslib._localize_pydatetime(result, tz)
- 
-diff --git a/pandas/tseries/tests/test_offsets.py 
b/pandas/tseries/tests/test_offsets.py
-index 1735ac4e2..768e9212e 100644
 a/pandas/tseries/tests/test_offsets.py
-+++ b/pandas/tseries/tests/test_offsets.py
-@@ -1,4 +1,5 @@
- import os
-+from distutils.version import LooseVersion
- from datetime import date, datetime, timedelta
- from dateutil.relativedelta import 

[gentoo-commits] repo/gentoo:master commit in: dev-python/pandas/files/, dev-python/pandas/

2018-08-23 Thread Virgil Dupras
commit: cc8ad060fa2302154dc6ad938df1ac2f47e4ad69
Author: Virgil Dupras  gentoo  org>
AuthorDate: Thu Aug 23 18:06:13 2018 +
Commit: Virgil Dupras  gentoo  org>
CommitDate: Thu Aug 23 18:06:13 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc8ad060

dev-python/pandas: bump to 0.23.4

Also, make tests pass. Tests around the pandas ecosystem are rather
fragile and depend heavily on dependency versions. Dependency
constraints in the ebuild are tighter than upstream's, but it's
necessary to make tests pass.

Package-Manager: Portage-2.3.47, Repoman-2.3.10

 dev-python/pandas/Manifest |   1 +
 .../files/pandas-0.23.4-skip-broken-test.patch |  24 +++
 dev-python/pandas/pandas-0.23.4.ebuild | 171 +
 3 files changed, 196 insertions(+)

diff --git a/dev-python/pandas/Manifest b/dev-python/pandas/Manifest
index 1b61c339db9..a786c571827 100644
--- a/dev-python/pandas/Manifest
+++ b/dev-python/pandas/Manifest
@@ -1,2 +1,3 @@
 DIST pandas-0.19.1.tar.gz 8360233 BLAKE2B 
82611ca1a3e3169ac2d084f4dcd9c4d4d74e9e9c9913a41acad48ae68a208a884dfd877445a7d658a7ff098ef383cedae7e79a4900baa8d56c032ce9aaad96eb
 SHA512 
6451990a7fae8c6db8ab0b014a13b4f1828754d3998f13c17b111f891fb9fd23f8e09b907623096dfa55668c42298eee1373210a9fddb95f56dd7d552b964e6f
 DIST pandas-0.23.0.tar.gz 13092442 BLAKE2B 
e11ae088c9a4be481f516d83797b1b1d5e9c82f7d9fa98f1ea65e3405e33c99e1e1cf7a35f56a21d9dc922c1d0828b4947d9c6189a5f76ad5c1b28618293f9da
 SHA512 
c9dc7bf843e3392b8b1b4d46c6aa6dd12435aa974abc875574a7a8794abe6ea531fa92d8a635153839fd3fef9059d96a4512831b86b1fb6fb69588c8b29a95d6
+DIST pandas-0.23.4.tar.gz 10490077 BLAKE2B 
28a78860e0aa5de8def7bb529fc98b9121a516b7fd7620e31e000ae14217165e6677ce26b56da0b9c603930ab1304725c644426a135d8f9b2a84921b88f3d23d
 SHA512 
0c89db820a49e0cfb9764e64589ff9af819f9a53c01bd0254cd1b6dbd1e9fd452b2ff7c7330ede7623c7576589113e831a19a57c735562b55f90506df15805b9

diff --git a/dev-python/pandas/files/pandas-0.23.4-skip-broken-test.patch 
b/dev-python/pandas/files/pandas-0.23.4-skip-broken-test.patch
new file mode 100644
index 000..aa98b80c2c7
--- /dev/null
+++ b/dev-python/pandas/files/pandas-0.23.4-skip-broken-test.patch
@@ -0,0 +1,24 @@
+diff --git a/pandas/tests/io/formats/test_format.py 
b/pandas/tests/io/formats/test_format.py
+index 191e3f37f..8a1d89197 100644
+--- a/pandas/tests/io/formats/test_format.py
 b/pandas/tests/io/formats/test_format.py
+@@ -1585,6 +1585,7 @@ c  10  11  12  13  14\
+ with option_context('display.max_rows', 60, 'display.max_columns', 
20):
+ assert '...' in df._repr_html_()
+ 
++@pytest.mark.skip("Fails in Gentoo")
+ def test_info_repr(self):
+ max_rows = 60
+ max_cols = 20
+diff --git a/pandas/tests/io/json/test_ujson.py 
b/pandas/tests/io/json/test_ujson.py
+index 89acbfdc9..9c4b5c291 100644
+--- a/pandas/tests/io/json/test_ujson.py
 b/pandas/tests/io/json/test_ujson.py
+@@ -1097,6 +1097,7 @@ class TestNumpyJSONTests(object):
+ outp = ujson.decode(ujson.encode(arr), numpy=True, dtype=np.float32)
+ tm.assert_almost_equal(arr, outp)
+ 
++@pytest.mark.skip("Fails on Gentoo")
+ def test_OdArray(self):
+ def will_raise():
+ ujson.encode(np.array(1))

diff --git a/dev-python/pandas/pandas-0.23.4.ebuild 
b/dev-python/pandas/pandas-0.23.4.ebuild
new file mode 100644
index 000..b9c5ce203a1
--- /dev/null
+++ b/dev-python/pandas/pandas-0.23.4.ebuild
@@ -0,0 +1,171 @@
+# 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} )
+PYTHON_REQ_USE="threads(+)"
+
+VIRTUALX_REQUIRED="manual"
+
+inherit distutils-r1 eutils flag-o-matic virtualx
+
+DESCRIPTION="Powerful data structures for data analysis and statistics"
+HOMEPAGE="http://pandas.pydata.org/;
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P/_/}.tar.gz"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc full-support minimal test X"
+
+RECOMMENDED_DEPEND="
+   >=dev-python/bottleneck-1.2.1[${PYTHON_USEDEP}]
+   >=dev-python/numexpr-2.1[${PYTHON_USEDEP}]
+"
+OPTIONAL_DEPEND="
+   dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
+   dev-python/blosc[${PYTHON_USEDEP}]
+   dev-python/boto[${PYTHON_USEDEP}]
+   >=dev-python/google-api-python-client-1.2.0[$(python_gen_usedep 
python2_7 pypy)]
+   || (
+   dev-python/html5lib[${PYTHON_USEDEP}]
+   dev-python/lxml[${PYTHON_USEDEP}]
+   )
+   dev-python/httplib2[${PYTHON_USEDEP}]
+   dev-python/jinja[${PYTHON_USEDEP}]
+   dev-python/matplotlib[${PYTHON_USEDEP}]
+   || (
+   >=dev-python/openpyxl-1.6.1[${PYTHON_USEDEP}]
+   dev-python/xlsxwriter[${PYTHON_USEDEP}]
+   )
+   >=dev-python/pytables-3.2.1[${PYTHON_USEDEP}]
+   dev-python/python-gflags[$(python_gen_usedep python2_7 

[gentoo-commits] repo/gentoo:master commit in: dev-python/pandas/files/, dev-python/pandas/

2018-05-10 Thread Andreas Sturmlechner
commit: 5ac896040260eb9b03fdc10512f2e22dee798630
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Thu May 10 12:01:54 2018 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Thu May 10 14:10:23 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ac89604

dev-python/pandas: Drop old

Bug: https://bugs.gentoo.org/649104
Package-Manager: Portage-2.3.36, Repoman-2.3.9

 dev-python/pandas/Manifest |   5 -
 .../files/pandas-0.17.0-testfix-backport.patch |  28 
 dev-python/pandas/metadata.xml |   3 -
 dev-python/pandas/pandas-0.16.2.ebuild | 128 
 dev-python/pandas/pandas-0.17.0.ebuild | 137 -
 dev-python/pandas/pandas-0.17.1.ebuild | 166 -
 dev-python/pandas/pandas-0.20.1.ebuild | 162 
 dev-python/pandas/pandas-0.20.3.ebuild | 157 ---
 8 files changed, 786 deletions(-)

diff --git a/dev-python/pandas/Manifest b/dev-python/pandas/Manifest
index ca22c715c1c..d1daf66ed35 100644
--- a/dev-python/pandas/Manifest
+++ b/dev-python/pandas/Manifest
@@ -1,7 +1,2 @@
-DIST pandas-0.16.2.tar.gz 4931751 BLAKE2B 
5ffd1df908580d966f782a7b371c7798b65ae7caacda3d8591c8de770e2f9008a3d026d9cb7f80ae857db3c24c41c0d21b8586862c39ec1b20f6e02c28e1a79f
 SHA512 
44874e12a42a01dd7ed88f3f97e954732a534a5e2dc4815ef6203bdb2d88850a607e6631a35ae8fc79f4621a5dfaa34f39bb1c9a0ecfb17da1cf0c10f35ff27b
-DIST pandas-0.17.0.tar.gz 6508621 BLAKE2B 
226bf513c4fc7261331114832880da71f7b881e906d6739a81bc7c6bb048f3eeecc9806aa65c7eed246ea4df16c380595bd432ab7c25b9964ca8b879a7f705cf
 SHA512 
bae6964e263c7ff6cac722cdfe23081f23c357d9bc39a670b5627bef4630c236a58aa8c0393eae921721bf7049c8e5266b4dea71dd957da5d89dafc14a04797b
-DIST pandas-0.17.1.tar.gz 6674479 BLAKE2B 
0d61f0a603f758aaef6c2eddf6d70307255679b2ef0b599e81b3a4c0e67ebd7584b1f3d436e34d02264b9c17317508f40c5186fd874b4a362efa6edf68eef900
 SHA512 
9d9f9064585b1f3551625e0c8f4eedaaa1253790c2a5cb28e58e70eb805cc18f9770d793aa748cbd76798488ff60efdd01eb4b21daf5ad8f1dc4d9c050487234
 DIST pandas-0.19.1.tar.gz 8360233 BLAKE2B 
82611ca1a3e3169ac2d084f4dcd9c4d4d74e9e9c9913a41acad48ae68a208a884dfd877445a7d658a7ff098ef383cedae7e79a4900baa8d56c032ce9aaad96eb
 SHA512 
6451990a7fae8c6db8ab0b014a13b4f1828754d3998f13c17b111f891fb9fd23f8e09b907623096dfa55668c42298eee1373210a9fddb95f56dd7d552b964e6f
-DIST pandas-0.20.1.tar.gz 10307434 BLAKE2B 
f8490a4a7f5c165753df274a0dea81552efc90a0cbf78d9e1fbeb6d0bc26e8ffaf3dbdf796a3abfb29d01332004af2adfbd9946c69d905f309cc730613de8123
 SHA512 
d477a815914c825efd6430f7eb19f3f9115c1c4ab03000ca6d4f64023f7b5f53eff512792fea2d8b33c7febb3667fc3a3de55f11eeb453f285cae40e6b473707
-DIST pandas-0.20.3.tar.gz 10402185 BLAKE2B 
a2c8d8f0007d481ccb897d2e9be106319cd3b7c0edf397fb99e7c6f43511c218ff5e7a7f099fcf23406f7e3ea691272e75c0f130cce991ccf159df7223d26584
 SHA512 
891c7e04d075f96fadf3775e903472e279eaeaa4509eb0da81a74261a3ed86ff309de0b5a2c100ee93dd968fed1df6d7e426ca78785b2b36785fe7679218fdc5
 DIST pandas-0.23.0rc2.tar.gz 12542694 BLAKE2B 
7c6383d32430fec89b7d5cbb1f8eef0f2201ba85d5865118fa035b6ad4c852b5f4e691f98f0cf3ac5c1283720025f8500c43414d0931af5211972208428537bd
 SHA512 
3df13f74dbcac00baffd39c732751d4e7bd16adf529b60b05b2373651d86e0aba37d6f3a4339df170e9ab3d89ee03fc18827dd3728ff972bcdfe3a0604bff59d

diff --git a/dev-python/pandas/files/pandas-0.17.0-testfix-backport.patch 
b/dev-python/pandas/files/pandas-0.17.0-testfix-backport.patch
deleted file mode 100644
index c83319256f2..000
--- a/dev-python/pandas/files/pandas-0.17.0-testfix-backport.patch
+++ /dev/null
@@ -1,28 +0,0 @@
- pandas/tests/test_categorical.py | 10 ++
- 1 file changed, 6 insertions(+), 4 deletions(-)
-
-diff --git a/pandas/tests/test_categorical.py 
b/pandas/tests/test_categorical.py
-old mode 100755
-new mode 100644
-index e97010e..1d14323
 a/pandas/tests/test_categorical.py
-+++ b/pandas/tests/test_categorical.py
-@@ -86,12 +86,14 @@ class TestCategorical(tm.TestCase):
- factor = Categorical.from_array(arr, ordered=False)
- self.assertFalse(factor.ordered)
- 
--# this however will raise as cannot be sorted
--# but fixed in newer versions of numpy
--if LooseVersion(np.__version__) < "1.10":
-+if compat.PY3:
- self.assertRaises(TypeError, lambda :  
Categorical.from_array(arr, ordered=True))
- else:
--Categorical.from_array(arr, ordered=True)
-+# this however will raise as cannot be sorted (on PY3 or older 
numpies)
-+if LooseVersion(np.__version__) < "1.10":
-+self.assertRaises(TypeError, lambda :  
Categorical.from_array(arr, ordered=True))
-+else:
-+Categorical.from_array(arr, ordered=True)
- 
- def test_is_equal_dtype(self):
- 

diff --git a/dev-python/pandas/metadata.xml b/dev-python/pandas/metadata.xml
index 

[gentoo-commits] repo/gentoo:master commit in: dev-python/pandas/files/, dev-python/pandas/

2016-12-03 Thread Justin Lecher
commit: c8028ecb0e960b735506bf249ba143f96aad989f
Author: Justin Lecher  gentoo  org>
AuthorDate: Sat Dec  3 13:45:01 2016 +
Commit: Justin Lecher  gentoo  org>
CommitDate: Sat Dec  3 13:45:41 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8028ecb

dev-python/pandas: Version Bump

Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=585184

Move to modern virtualx.eclass usage

Package-Manager: portage-2.3.2
Signed-off-by: Justin Lecher  gentoo.org>

 dev-python/pandas/Manifest   |   1 +
 dev-python/pandas/files/pandas-0.19.1-gapi.patch |  27 ++
 dev-python/pandas/files/pandas-0.19.1-seqf.patch | 357 +++
 dev-python/pandas/pandas-0.19.1.ebuild   | 166 +++
 dev-python/pandas/pandas-.ebuild | 130 +
 5 files changed, 631 insertions(+), 50 deletions(-)

diff --git a/dev-python/pandas/Manifest b/dev-python/pandas/Manifest
index bb4cfe6..c7d4b01 100644
--- a/dev-python/pandas/Manifest
+++ b/dev-python/pandas/Manifest
@@ -1,3 +1,4 @@
 DIST pandas-0.16.2.tar.gz 4931751 SHA256 
e01853dfe111f3aea005315573400b7216ddbabbf1f28d482a71217d67ae4f81 SHA512 
44874e12a42a01dd7ed88f3f97e954732a534a5e2dc4815ef6203bdb2d88850a607e6631a35ae8fc79f4621a5dfaa34f39bb1c9a0ecfb17da1cf0c10f35ff27b
 WHIRLPOOL 
6f2874ac07b49f4b2aaefdb87375b7c5adb31e3ff60c6b808f3e3467ad82999dd894de884ebbfd64fc7235e875d17ce871b516c96ff71a17310b708597168702
 DIST pandas-0.17.0.tar.gz 6508621 SHA256 
320d4fdf734b82adebc8fde9d8ca4b05fe155a72b6f7aa95d76242da8748d6a4 SHA512 
bae6964e263c7ff6cac722cdfe23081f23c357d9bc39a670b5627bef4630c236a58aa8c0393eae921721bf7049c8e5266b4dea71dd957da5d89dafc14a04797b
 WHIRLPOOL 
d654eb2f9ffbfedbde60e4a6e6ce6f54650a8a68b4d20035744aa55111525d6bba4dae2ccbfce65acf71bb200e2e6029c7f6c9bcc9d0c582d808444738baedb1
 DIST pandas-0.17.1.tar.gz 6674479 SHA256 
cfd7214a7223703fe6999fbe34837749540efee1c985e6aee9933f30e3f72837 SHA512 
9d9f9064585b1f3551625e0c8f4eedaaa1253790c2a5cb28e58e70eb805cc18f9770d793aa748cbd76798488ff60efdd01eb4b21daf5ad8f1dc4d9c050487234
 WHIRLPOOL 
5238575bd64b8d38db4f9a0ea987a7f78ffd1821e5a22bad65c84c407feca3af6f3b536a0a2f337291aa04e94c86fdb40382dad4ce50f8a33a5e26d655c628c2
+DIST pandas-0.19.1.tar.gz 8360233 SHA256 
2509feaeda72fce03675e2eccd2284bb1cadb6a0737008a5e741fe2431d47421 SHA512 
6451990a7fae8c6db8ab0b014a13b4f1828754d3998f13c17b111f891fb9fd23f8e09b907623096dfa55668c42298eee1373210a9fddb95f56dd7d552b964e6f
 WHIRLPOOL 
700c0d819ab62134baf56430b7fa8840636ea377d00397341d33ec5f13474d9eeefea245aede80a80f7c16348ef811788947e5fe0020c9770005c74dd1288ef3

diff --git a/dev-python/pandas/files/pandas-0.19.1-gapi.patch 
b/dev-python/pandas/files/pandas-0.19.1-gapi.patch
new file mode 100644
index ..7a0456f
--- /dev/null
+++ b/dev-python/pandas/files/pandas-0.19.1-gapi.patch
@@ -0,0 +1,27 @@
+From 1d6dbb41b26a39121ec8c4f19f5da78bb0ab4af7 Mon Sep 17 00:00:00 2001
+From: Jeff Reback 
+Date: Sat, 12 Nov 2016 12:44:06 -0500
+Subject: [PATCH] TST: skip test_gbq.test_upload_data_if_table_exists_replace
+ for now
+
+---
+ pandas/io/tests/test_gbq.py | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/pandas/io/tests/test_gbq.py b/pandas/io/tests/test_gbq.py
+index cca1580b8..f6ff35a6d 100644
+--- a/pandas/io/tests/test_gbq.py
 b/pandas/io/tests/test_gbq.py
+@@ -824,6 +824,9 @@ class TestToGBQIntegration(tm.TestCase):
+private_key=_get_private_key_path())
+ 
+ def test_upload_data_if_table_exists_replace(self):
++
++raise nose.SkipTest("buggy test")
++
+ destination_table = DESTINATION_TABLE + "4"
+ 
+ test_size = 10
+-- 
+2.11.0
+

diff --git a/dev-python/pandas/files/pandas-0.19.1-seqf.patch 
b/dev-python/pandas/files/pandas-0.19.1-seqf.patch
new file mode 100644
index ..c82c14f
--- /dev/null
+++ b/dev-python/pandas/files/pandas-0.19.1-seqf.patch
@@ -0,0 +1,357 @@
+From f8bd08e9c2fc6365980f41b846bbae4b40f08b83 Mon Sep 17 00:00:00 2001
+From: Jeff Reback 
+Date: Sat, 12 Nov 2016 10:58:54 -0500
+Subject: [PATCH] BUG: segfault manifesting with dateutil=2.6 w.r.t. replace
+ when timezones are present
+
+closes #14621
+
+Author: Jeff Reback 
+
+Closes #14631 from jreback/replace and squashes the following commits:
+
+3f95042 [Jeff Reback] BUG: segfault manifesting with dateutil=2.6 w.r.t. 
replace when timezones are present
+---
+ ci/requirements-3.5_OSX.pip|  2 +-
+ doc/source/whatsnew/v0.19.2.txt|  3 ++
+ pandas/tseries/offsets.py  |  1 +
+ pandas/tseries/tests/test_offsets.py   | 20 ---
+ pandas/tseries/tests/test_timezones.py | 89 +--
+ pandas/tseries/tests/test_tslib.py |  5 +-
+ pandas/tslib.pyx   | 95 --
+ 7 files changed, 188 insertions(+), 27 deletions(-)
+
+diff --git a/pandas/tseries/offsets.py b/pandas/tseries/offsets.py
+index 051cc8aa4..2e3852a7e 100644

[gentoo-commits] repo/gentoo:master commit in: dev-python/pandas/files/, dev-python/pandas/

2015-11-16 Thread Justin Lecher
commit: 48d6128e4748e88bce06c1ab675ee69f80fe9b66
Author: Justin Lecher  gentoo  org>
AuthorDate: Mon Nov 16 11:11:55 2015 +
Commit: Justin Lecher  gentoo  org>
CommitDate: Mon Nov 16 11:12:45 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48d6128e

dev-python/pandas: Backport test fix

Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher  gentoo.org>

 .../files/pandas-0.17.0-testfix-backport.patch | 28 ++
 dev-python/pandas/pandas-0.17.0.ebuild |  4 
 2 files changed, 32 insertions(+)

diff --git a/dev-python/pandas/files/pandas-0.17.0-testfix-backport.patch 
b/dev-python/pandas/files/pandas-0.17.0-testfix-backport.patch
new file mode 100644
index 000..c833192
--- /dev/null
+++ b/dev-python/pandas/files/pandas-0.17.0-testfix-backport.patch
@@ -0,0 +1,28 @@
+ pandas/tests/test_categorical.py | 10 ++
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+diff --git a/pandas/tests/test_categorical.py 
b/pandas/tests/test_categorical.py
+old mode 100755
+new mode 100644
+index e97010e..1d14323
+--- a/pandas/tests/test_categorical.py
 b/pandas/tests/test_categorical.py
+@@ -86,12 +86,14 @@ class TestCategorical(tm.TestCase):
+ factor = Categorical.from_array(arr, ordered=False)
+ self.assertFalse(factor.ordered)
+ 
+-# this however will raise as cannot be sorted
+-# but fixed in newer versions of numpy
+-if LooseVersion(np.__version__) < "1.10":
++if compat.PY3:
+ self.assertRaises(TypeError, lambda :  
Categorical.from_array(arr, ordered=True))
+ else:
+-Categorical.from_array(arr, ordered=True)
++# this however will raise as cannot be sorted (on PY3 or older 
numpies)
++if LooseVersion(np.__version__) < "1.10":
++self.assertRaises(TypeError, lambda :  
Categorical.from_array(arr, ordered=True))
++else:
++Categorical.from_array(arr, ordered=True)
+ 
+ def test_is_equal_dtype(self):
+ 

diff --git a/dev-python/pandas/pandas-0.17.0.ebuild 
b/dev-python/pandas/pandas-0.17.0.ebuild
index b5f984f..a3fd1ca 100644
--- a/dev-python/pandas/pandas-0.17.0.ebuild
+++ b/dev-python/pandas/pandas-0.17.0.ebuild
@@ -81,6 +81,10 @@ RDEPEND="${CDEPEND}
)
R? ( dev-python/rpy[${PYTHON_USEDEP}] )"
 
+PATCHES=(
+   "${FILESDIR}"/${P}-testfix-backport.patch
+)
+
 python_prepare_all() {
# Prevent un-needed download during build
sed -e "/^  'sphinx.ext.intersphinx',/d" -i 
doc/source/conf.py || die