Accepting request 1156405 from home:bnavigator:branches:devel:languages:python

- Update python-influxdb-new-pandas.patch once more

OBS-URL: https://build.opensuse.org/request/show/1156405
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-influxdb?expand=0&rev=41
This commit is contained in:
Matej Cepl 2024-03-11 21:29:46 +00:00 committed by Git OBS Bridge
parent 803a668306
commit c6fdf954cd
3 changed files with 25 additions and 7 deletions

View File

@ -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"]
)

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Mar 8 15:47:41 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Update python-influxdb-new-pandas.patch once more
-------------------------------------------------------------------
Sun Feb 18 12:38:12 UTC 2024 - Ben Greiner <code@bnavigator.de>

View File

@ -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