diff --git a/influxdb-pr845-pandas-future.patch b/influxdb-pr845-pandas-future.patch index fd02837..fb85658 100644 --- a/influxdb-pr845-pandas-future.patch +++ b/influxdb-pr845-pandas-future.patch @@ -7,11 +7,11 @@ Subject: [PATCH] Fix FutureWarning from pandas influxdb/_dataframe_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -diff --git a/influxdb/_dataframe_client.py b/influxdb/_dataframe_client.py -index e7ae9c17..1363cbf0 100644 ---- a/influxdb/_dataframe_client.py -+++ b/influxdb/_dataframe_client.py -@@ -305,7 +305,7 @@ def _convert_dataframe_to_json(dataframe, +Index: influxdb-5.3.1/influxdb/_dataframe_client.py +=================================================================== +--- influxdb-5.3.1.orig/influxdb/_dataframe_client.py ++++ influxdb-5.3.1/influxdb/_dataframe_client.py +@@ -305,7 +305,7 @@ class DataFrameClient(InfluxDBClient): 'time': np.int64(ts.value / precision_factor)} for ts, tag, (_, rec) in zip( dataframe.index, @@ -20,3 +20,16 @@ index e7ae9c17..1363cbf0 100644 dataframe[field_columns].iterrows() ) ] +Index: influxdb-5.3.1/influxdb/tests/dataframe_client_test.py +=================================================================== +--- influxdb-5.3.1.orig/influxdb/tests/dataframe_client_test.py ++++ influxdb-5.3.1/influxdb/tests/dataframe_client_test.py +@@ -334,7 +334,7 @@ class TestDataFrameClient(unittest.TestC + ['some', "2", 2, None], # skip None + ['', "2", 2, None], # all tags empty + ], +- index=pd.period_range(now, freq='H', periods=5), ++ index=pd.period_range(now, freq='h', periods=5), + columns=["tag_one", "column_one", "column_two", "tag_three"] + ) + diff --git a/python-influxdb.changes b/python-influxdb.changes index 1645475..53a1fb6 100644 --- a/python-influxdb.changes +++ b/python-influxdb.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 8 15:47:41 UTC 2024 - Ben Greiner + +- Update python-influxdb-new-pandas.patch once more + ------------------------------------------------------------------- Sun Feb 18 12:38:12 UTC 2024 - Ben Greiner diff --git a/python-influxdb.spec b/python-influxdb.spec index e760bef..2cb2564 100644 --- a/python-influxdb.spec +++ b/python-influxdb.spec @@ -1,7 +1,7 @@ # # spec file for package python-influxdb # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,7 +29,7 @@ Source: https://files.pythonhosted.org/packages/source/i/influxdb/influx # https://github.com/influxdata/influxdb-python/pull/835 Patch0: python-influxdb-remove-nose.patch # PATCH-FIX-UPSTREAM influxdb-pr845-pandas-future.patch -- gh#influxdb/influxdb-python#845 -Patch1: https://github.com/influxdata/influxdb-python/pull/845.patch#/influxdb-pr845-pandas-future.patch +Patch1: influxdb-pr845-pandas-future.patch # do not require six (repo archived in favour of influxdb2, not reporting) Patch2: python-influxdb-no-six.patch # fix tests with newer pandas