Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-streamz for openSUSE:Factory 
checked in at 2022-02-09 20:39:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-streamz (Old)
 and      /work/SRC/openSUSE:Factory/.python-streamz.new.1898 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-streamz"

Wed Feb  9 20:39:00 2022 rev:7 rq:952247 version:0.6.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-streamz/python-streamz.changes    
2021-02-15 23:21:30.863863065 +0100
+++ /work/SRC/openSUSE:Factory/.python-streamz.new.1898/python-streamz.changes  
2022-02-09 20:39:55.638480346 +0100
@@ -1,0 +2,12 @@
+Sun Feb  6 18:06:08 UTC 2022 - Ben Greiner <[email protected]>
+
+- Update to 0.6.3
+  * no release notes
+- Add streamz-pr434-asyncdask.patch
+  * gh#python-streamz/streamz#434
+  * gh#python-streamz/streamz#439
+- Don't test with dask on python310: not supported yet
+- Enable test suite: cannot use ifarch in noarch package
+- Add streamz-opensuse-python-exec.patch
+
+-------------------------------------------------------------------

Old:
----
  streamz-0.6.0.tar.gz

New:
----
  streamz-0.6.3.tar.gz
  streamz-opensuse-python-exec.patch
  streamz-pr434-asyncdask.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-streamz.spec ++++++
--- /var/tmp/diff_new_pack.TVOa7N/_old  2022-02-09 20:39:56.258481829 +0100
+++ /var/tmp/diff_new_pack.TVOa7N/_new  2022-02-09 20:39:56.262481838 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-streamz
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,17 +16,20 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%{?!python_module:%define python_module() python3-%{**}}
 %define         skip_python2 1
-%define         skip_python36 1
 Name:           python-streamz
-Version:        0.6.0
+Version:        0.6.3
 Release:        0
 Summary:        Tool to build continuous data pipelines
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
 URL:            https://github.com/python-streamz/streamz/
 Source:         
https://files.pythonhosted.org/packages/source/s/streamz/streamz-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM streamz-pr434-asyncdask.patch -- 
gh#python-streamz/streamz#434, gh#python-streamz/streamz#439
+Patch1:         streamz-pr434-asyncdask.patch
+# PATCH-FIX-OPENSUSE streamz-opensuse-python-exec.patch -- call tests with 
correct flavor
+Patch2:         streamz-opensuse-python-exec.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -46,13 +49,16 @@
 # SECTION test requirements
 BuildRequires:  %{python_module certifi}
 BuildRequires:  %{python_module confluent-kafka}
-BuildRequires:  %{python_module dask-dataframe}
-BuildRequires:  %{python_module dask-distributed}
-BuildRequires:  %{python_module dask}
-BuildRequires:  %{python_module distributed}
+BuildRequires:  %{python_module dask if %python-base < 3.10}
+BuildRequires:  %{python_module dask-dataframe if %python-base < 3.10}
+BuildRequires:  %{python_module dask-distributed if %python-base < 3.10}
+BuildRequires:  %{python_module distributed  if %python-base < 3.10}
+BuildRequires:  %{python_module flaky}
 BuildRequires:  %{python_module graphviz}
+BuildRequires:  %{python_module ipywidgets}
 BuildRequires:  %{python_module networkx}
 BuildRequires:  %{python_module pandas}
+BuildRequires:  %{python_module pytest-asyncio}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module requests}
 BuildRequires:  %{python_module six}
@@ -68,7 +74,7 @@
 Streamz helps you build pipelines to manage continuous streams of data.
 
 %prep
-%setup -q -n streamz-%{version}
+%autosetup -p1 -n streamz-%{version}
 
 %build
 %python_build
@@ -78,17 +84,23 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-rm -rf build _build.*
-# Tests assume 64bit numbers
-%ifarch x86_64
-rm -rf build _build.*
-%pytest
-%endif
+# infinite loop because the automatic skip does not work here; the kafka tests 
need a docker container with STREAMZ_LAUNCH_KAFKA=true
+donttest="test_from_kafka or test_to_kafka"
+# no dask on python310 yet: this disables a majority of the test suite, but 
dask and kafka are nominally optional
+python310_flags="--ignore streamz/dataframe/tests/test_dataframes.py"
+python310_flags+=" --ignore streamz/tests/test_core.py"
+python310_flags+=" --ignore streamz/tests/test_kafka.py"
+if [ $(getconf LONG_BIT) -eq 32 ]; then
+  # don't test on 32-bit: 64-bit datatypes expected
+  donttest+=" or test_dataframes"
+fi
+# flaky: some tests are very fragile when run server-side
+%pytest -m "not network" --asyncio-mode=auto --force-flaky --max-runs=10 
--no-success-flaky-report -rsfE ${$python_flags} -k "not ($donttest)"
 
 %files %{python_files}
 %doc README.rst
 %license LICENSE.txt
 %{python_sitelib}/streamz
-%{python_sitelib}/streamz-%{version}-py*.egg-info
+%{python_sitelib}/streamz-%{version}*-info
 
 %changelog

++++++ streamz-0.6.0.tar.gz -> streamz-0.6.3.tar.gz ++++++
++++ 4816 lines of diff (skipped)

++++++ streamz-opensuse-python-exec.patch ++++++
Index: streamz-0.6.3/streamz/tests/test_sources.py
===================================================================
--- streamz-0.6.3.orig/streamz/tests/test_sources.py
+++ streamz-0.6.3/streamz/tests/test_sources.py
@@ -101,7 +101,7 @@ def test_http():
 
 @gen_test(timeout=60)
 def test_process():
-    cmd = ["python", "-c", "for i in range(4): print(i, end='')"]
+    cmd = [sys.executable, "-c", "for i in range(4): print(i, end='')"]
     s = Source.from_process(cmd, with_end=True)
     if sys.platform != "win32":
         # don't know why - something with pytest and new processes
@@ -117,7 +117,7 @@ def test_process():
 
 @gen_test(timeout=60)
 def test_process_str():
-    cmd = 'python -c "for i in range(4): print(i)"'
+    cmd = f'{sys.executable} -c "for i in range(4): print(i)"'
     s = Source.from_process(cmd)
     if sys.platform != "win32":
         # don't know why - something with pytest and new processes

++++++ streamz-pr434-asyncdask.patch ++++++
++++ 762 lines (skipped)

Reply via email to