summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Head <chead@chead.ca>2020-08-22 11:14:17 -0700
committerSam James <sam@gentoo.org>2020-09-16 01:14:51 +0000
commit969c2603e839604996ecf28d7996431d0f0a13f9 (patch)
tree4c8bd3513168a0067ea20b73c9f2d3f5a89ceb92
parent19fb39a6f775672015fae6c7880b495d18db7431 (diff)
downloadgentoo-969c2603e839604996ecf28d7996431d0f0a13f9.tar.gz
gentoo-969c2603e839604996ecf28d7996431d0f0a13f9.tar.bz2
gentoo-969c2603e839604996ecf28d7996431d0f0a13f9.zip
dev-python/influxdb: revbump, fix test, Py3.8
Add a patch that fixes a FutureWarning in the test suite. Add Python 3.8 to the list of supported interpreters; it passes the test suite. Closes: https://bugs.gentoo.org/737976 Signed-off-by: Christopher Head <chead@chead.ca> Closes: https://github.com/gentoo/gentoo/pull/17215 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--dev-python/influxdb/files/influxdb-5.3.0-pandas-future-warning.patch15
-rw-r--r--dev-python/influxdb/influxdb-5.3.0-r1.ebuild (renamed from dev-python/influxdb/influxdb-5.3.0.ebuild)7
2 files changed, 19 insertions, 3 deletions
diff --git a/dev-python/influxdb/files/influxdb-5.3.0-pandas-future-warning.patch b/dev-python/influxdb/files/influxdb-5.3.0-pandas-future-warning.patch
new file mode 100644
index 000000000000..efd510fc8420
--- /dev/null
+++ b/dev-python/influxdb/files/influxdb-5.3.0-pandas-future-warning.patch
@@ -0,0 +1,15 @@
+https://github.com/influxdata/influxdb-python/pull/845
+
+diff --git a/influxdb/_dataframe_client.py b/influxdb/_dataframe_client.py
+index 600bc1ec1f47..7f2b4ee2989f 100644
+--- a/influxdb/_dataframe_client.py
++++ b/influxdb/_dataframe_client.py
+@@ -294,7 +294,7 @@ class DataFrameClient(InfluxDBClient):
+ 'time': np.int64(ts.value / precision_factor)}
+ for ts, tag, (_, rec) in zip(
+ dataframe.index,
+- dataframe[tag_columns].to_dict('record'),
++ dataframe[tag_columns].to_dict('records'),
+ dataframe[field_columns].iterrows()
+ )
+ ]
diff --git a/dev-python/influxdb/influxdb-5.3.0.ebuild b/dev-python/influxdb/influxdb-5.3.0-r1.ebuild
index 84c5acb0015e..178929abf867 100644
--- a/dev-python/influxdb/influxdb-5.3.0.ebuild
+++ b/dev-python/influxdb/influxdb-5.3.0-r1.ebuild
@@ -2,7 +2,8 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-PYTHON_COMPAT=( python3_{6,7} )
+
+PYTHON_COMPAT=( python3_{6,7,8,9} )
inherit distutils-r1
@@ -22,14 +23,14 @@ RDEPEND="
>=dev-python/six-1.10.0[${PYTHON_USEDEP}]
"
BDEPEND="test? (
- ${RDEPEND}
dev-db/influxdb
dev-python/mock[${PYTHON_USEDEP}]
- dev-python/nose[${PYTHON_USEDEP}]
dev-python/pandas[${PYTHON_USEDEP}]
dev-python/requests-mock[${PYTHON_USEDEP}]
)"
+PATCHES=( "${FILESDIR}/${P}-pandas-future-warning.patch" )
+
distutils_enable_tests nose
src_prepare() {