Hello community,

here is the log from the commit of package python-pyuv for openSUSE:Leap:15.2 
checked in at 2020-02-22 18:50:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-pyuv (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-pyuv.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyuv"

Sat Feb 22 18:50:04 2020 rev:1 rq:775558 version:1.4.0

Changes:
--------
New Changes file:

--- /dev/null   2019-12-19 10:12:34.003146842 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.python-pyuv.new.26092/python-pyuv.changes     
2020-02-22 18:50:04.292434577 +0100
@@ -0,0 +1,11 @@
+-------------------------------------------------------------------
+Sun Oct 20 13:09:52 UTC 2019 - John Vandenberg <[email protected]>
+
+- Activate test suite with two patches for Python 3
+  * tests_py3.patch
+  * tests_async_keyword.patch
+
+-------------------------------------------------------------------
+Tue Sep 10 01:32:43 PM UTC 2019 - John Vandenberg <[email protected]>
+
+- Initial spec for v1.4.0

New:
----
  python-pyuv.changes
  python-pyuv.spec
  pyuv-1.4.0.tar.gz
  tests_async_keyword.patch
  tests_py3.patch

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

Other differences:
------------------
++++++ python-pyuv.spec ++++++
#
# spec file for package python-pyuv
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-pyuv
Version:        1.4.0
Release:        0
Summary:        Python interface for libuv
License:        MIT
Group:          Development/Languages/Python
URL:            https://github.com/saghul/pyuv
Source:         
https://files.pythonhosted.org/packages/source/p/pyuv/pyuv-%{version}.tar.gz
# Both patches in https://github.com/saghul/pyuv/pull/262
Patch0:         tests_async_keyword.patch
Patch1:         tests_py3.patch
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module pytest}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  pkgconfig
BuildRequires:  python-rpm-macros
BuildRequires:  pkgconfig(libuv)
%python_subpackages

%description
Python interface for libuv.

%prep
%setup -q -n pyuv-%{version}
%patch0 -p1
%patch1 -p1
# Force system libuv
rm -r deps/libuv
rmdir deps
sed -i 's/self.use_system_libuv = 0/self.use_system_libuv = 1/' setup_libuv.py

sed -i 's/"python"/sys.executable/' tests/test_process.py
# Allow tests to be invoked at parent directory, and proc_*.py found in 
subdirectory
sed -i 's:"proc_:"tests/proc_:' tests/test_process.py

%build
export CFLAGS="%{optflags}"
%python_build

%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}

%check
mv pyuv .pyuv
%pytest_arch -k 'not (test_tty or test_getaddrinfo_service or 
test_getaddrinfo_service_bytes or UDPBroadcastTest or UDPTestMulticast)'
mv .pyuv pyuv

%files %{python_files}
%doc AUTHORS ChangeLog README.rst
%license LICENSE
%{python_sitearch}/*

%changelog
++++++ tests_async_keyword.patch ++++++
diff -ur pyuv-1.4.0-orig/tests/test_async.py pyuv-1.4.0/tests/test_async.py
--- pyuv-1.4.0-orig/tests/test_async.py 2014-12-02 03:59:46.000000000 +0700
+++ pyuv-1.4.0/tests/test_async.py      2019-10-20 19:47:32.605757346 +0700
@@ -12,12 +12,12 @@
     def test_async1(self):
         self.async_cb_called = 0
         self.prepare_cb_called = 0
-        def async_cb(async):
+        def async_cb(async_):
             with self.lock:
                 self.async_cb_called += 1
                 n = self.async_cb_called
             if n == 3:
-                self.async.close()
+                self.async_.close()
                 self.prepare.close()
         def prepare_cb(prepare):
             if self.prepare_cb_called:
@@ -31,8 +31,8 @@
                     n = self.async_cb_called
                     if n == 3:
                         break
-                    self.async.send()
-        self.async = pyuv.Async(self.loop, async_cb)
+                    self.async_.send()
+        self.async_ = pyuv.Async(self.loop, async_cb)
         self.prepare = pyuv.Prepare(self.loop)
         self.prepare.start(prepare_cb)
         self.lock = threading.Lock()
@@ -52,8 +52,8 @@
             self.loop.stop()
         def thread_cb():
             time.sleep(0.01)
-            self.async.send()
-        self.async = pyuv.Async(self.loop)
+            self.async_.send()
+        self.async_ = pyuv.Async(self.loop)
         self.prepare = pyuv.Prepare(self.loop)
         self.prepare.start(prepare_cb)
         self.check = pyuv.Check(self.loop)
diff -ur pyuv-1.4.0-orig/tests/test_signal.py pyuv-1.4.0/tests/test_signal.py
--- pyuv-1.4.0-orig/tests/test_signal.py        2014-12-02 03:59:46.000000000 
+0700
+++ pyuv-1.4.0/tests/test_signal.py     2019-10-20 20:00:39.561701185 +0700
@@ -15,17 +15,17 @@
     def signal_cb(self, handle, signum):
         self.assertEqual(signum, signal.SIGUSR1)
         self.signal_cb_called += 1
-        self.async.send()
+        self.async_.send()
 
-    def async_cb(self, async):
+    def async_cb(self, async_):
         self.async_cb_called += 1
-        self.async.close()
+        self.async_.close()
         self.signal_h.close()
 
     def test_signal1(self):
         self.async_cb_called = 0
         self.signal_cb_called = 0
-        self.async = pyuv.Async(self.loop, self.async_cb)
+        self.async_ = pyuv.Async(self.loop, self.async_cb)
         self.signal_h = pyuv.Signal(self.loop)
         self.signal_h.start(self.signal_cb, signal.SIGUSR1)
         thread = threading.Thread(target=self.loop.run)
++++++ tests_py3.patch ++++++
--- pyuv-1.4.0-orig/tests/test_fs.py    2015-12-15 15:46:33.000000000 +0700
+++ pyuv-1.4.0/tests/test_fs.py 2019-10-20 20:01:57.978490880 +0700
@@ -9,7 +9,10 @@
 
 
 # Make stat return integers
-os.stat_float_times(False)
+try:
+    os.stat_float_times(False)
+except AttributeError:
+    pass
 pyuv.fs.stat_float_times(False)
 
 

Reply via email to