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 /dev-python/influxdb/files
parentdev-python/PyQtWebEngine: add 5.15.1 (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>
Diffstat (limited to 'dev-python/influxdb/files')
-rw-r--r--dev-python/influxdb/files/influxdb-5.3.0-pandas-future-warning.patch15
1 files changed, 15 insertions, 0 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()
+ )
+ ]