commit: 969c2603e839604996ecf28d7996431d0f0a13f9 Author: Christopher Head <chead <AT> chead <DOT> ca> AuthorDate: Sat Aug 22 18:14:17 2020 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Sep 16 01:14:51 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=969c2603
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 <AT> chead.ca> Closes: https://github.com/gentoo/gentoo/pull/17215 Signed-off-by: Sam James <sam <AT> gentoo.org> .../files/influxdb-5.3.0-pandas-future-warning.patch | 15 +++++++++++++++ .../{influxdb-5.3.0.ebuild => influxdb-5.3.0-r1.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 00000000000..efd510fc842 --- /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 similarity index 91% rename from dev-python/influxdb/influxdb-5.3.0.ebuild rename to dev-python/influxdb/influxdb-5.3.0-r1.ebuild index 84c5acb0015..178929abf86 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() {
