Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-influxdb for openSUSE:Factory
checked in at 2021-04-17 23:24:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-influxdb (Old)
and /work/SRC/openSUSE:Factory/.python-influxdb.new.12324 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-influxdb"
Sat Apr 17 23:24:38 2021 rev:9 rq:886232 version:5.3.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-influxdb/python-influxdb.changes
2020-07-09 13:21:27.965667562 +0200
+++
/work/SRC/openSUSE:Factory/.python-influxdb.new.12324/python-influxdb.changes
2021-04-17 23:24:39.849563275 +0200
@@ -1,0 +2,19 @@
+Thu Apr 15 14:29:34 UTC 2021 - Ben Greiner <[email protected]>
+
+- Skip python36: Extensive use of pandas in the test suite
+- Add influxdb-pr845-pandas-future.patch
+ gh#influxdb/influxdb-python#845
+- Skip tests failing with pandas -- #influxdb/influxdb-python#884
+- Don't use extra mock
+
+-------------------------------------------------------------------
+Tue Feb 2 00:19:18 UTC 2021 - Dirk M??ller <[email protected]>
+
+- update to 5.3.1:
+ * Add support for custom headers in the InfluxDBClient
+ * Add support for custom indexes for query in the DataFrameClient
+ * Amend retry to avoid sleep after last retry before raising exception
+ * Remove msgpack pinning for requirements
+ * Update support for HTTP headers in the InfluxDBClient
+
+-------------------------------------------------------------------
Old:
----
v5.3.0.tar.gz
New:
----
influxdb-5.3.1.tar.gz
influxdb-pr845-pandas-future.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-influxdb.spec ++++++
--- /var/tmp/diff_new_pack.mlSyQb/_old 2021-04-17 23:24:40.797564890 +0200
+++ /var/tmp/diff_new_pack.mlSyQb/_new 2021-04-17 23:24:40.801564897 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-influxdb
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,33 +16,35 @@
#
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%global skip_python2 1
+%{?!python_module:%define python_module() python3-%{**}}
+%define skip_python2 1
+%define skip_python36 1
Name: python-influxdb
-Version: 5.3.0
+Version: 5.3.1
Release: 0
Summary: InfluxDB client
License: MIT
Group: Development/Languages/Python
URL: https://github.com/influxdb/influxdb-python
-Source:
https://github.com/influxdata/influxdb-python/archive/v%{version}.tar.gz
+Source:
https://files.pythonhosted.org/packages/source/i/influxdb/influxdb-%{version}.tar.gz
# https://github.com/influxdata/influxdb-python/pull/835
Patch0: python-influxdb-remove-nose.patch
-BuildRequires: %{python_module python-dateutil >= 2.0.0}
+# 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
+BuildRequires: %{python_module python-dateutil >= 2.6.0}
BuildRequires: %{python_module pytz}
-BuildRequires: %{python_module requests >= 1.0.3}
+BuildRequires: %{python_module requests >= 2.17.0}
BuildRequires: %{python_module setuptools}
-BuildRequires: %{python_module six >= 1.9.0}
+BuildRequires: %{python_module six >= 1.10.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-msgpack
Requires: python-python-dateutil >= 2.6.0
Requires: python-pytz
-Requires: python-requests >= 1.17.0
+Requires: python-requests >= 2.17.0
Requires: python-six >= 1.10.0
BuildArch: noarch
# SECTION test requirements
-BuildRequires: %{python_module mock}
BuildRequires: %{python_module msgpack}
BuildRequires: %{python_module pandas}
BuildRequires: %{python_module pytest}
@@ -55,25 +57,31 @@
%python_subpackages
%description
-InfluxDB-Python is a client for interacting with InfluxDB_. Maintained by
@aviau (https://github.com/aviau).
+InfluxDB-Python is a client for interacting with InfluxDB 1.x
%prep
-%setup -q -n influxdb-python-%{version}
-%patch0 -p1
+%autosetup -p1 -n influxdb-%{version}
+# remove extra mock
+sed -e 's/^import mock/from unittest import mock/' \
+ -e 's/^from mock import/from unittest.mock import/' \
+ -i influxdb/tests/*.py influxdb/tests/*/*.py
%build
%python_build
-%check
-%pytest influxdb
-
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%check
+# https://github.com/influxdata/influxdb-python/issues/884
+donttest="test_write_points_from_dataframe_with_nan_json or
test_write_points_from_dataframe_with_tags_and_nan_json"
+%pytest influxdb -k "not ($donttest)"
+
%files %{python_files}
%license LICENSE
%doc README.rst
-%{python_sitelib}/*
+%{python_sitelib}/influxdb
+%{python_sitelib}/influxdb-%{version}*-info
%changelog
++++++ influxdb-pr845-pandas-future.patch ++++++
>From db0714de2350493a1776ca4d4d9b743695d68576 Mon Sep 17 00:00:00 2001
From: Christopher Head <[email protected]>
Date: Sat, 22 Aug 2020 11:15:33 -0700
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,
'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()
)
]