Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-timeout-decorator for 
openSUSE:Factory checked in at 2023-05-12 20:38:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-timeout-decorator (Old)
 and      /work/SRC/openSUSE:Factory/.python-timeout-decorator.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-timeout-decorator"

Fri May 12 20:38:52 2023 rev:2 rq:1086742 version:0.5.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-timeout-decorator/python-timeout-decorator.changes
        2021-02-23 20:23:25.879816244 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-timeout-decorator.new.1533/python-timeout-decorator.changes
      2023-05-12 20:41:30.175257427 +0200
@@ -1,0 +2,8 @@
+Fri May 12 11:54:22 UTC 2023 - Dirk Müller <dmuel...@suse.com>
+
+- update to 0.5.0:
+  * Allow to use timeout in function kwargs even when initial
+    seconds is None
+  * drop support for 2.6, 3.4, 3.5 and add support for 3.7, 3.8, 3.9
+
+-------------------------------------------------------------------

Old:
----
  timeout-decorator-0.4.1.tar.gz

New:
----
  timeout-decorator-0.5.0.tar.gz

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

Other differences:
------------------
++++++ python-timeout-decorator.spec ++++++
--- /var/tmp/diff_new_pack.yUQRom/_old  2023-05-12 20:41:30.967261779 +0200
+++ /var/tmp/diff_new_pack.yUQRom/_new  2023-05-12 20:41:30.979261846 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-timeout-decorator
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,27 +12,27 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-timeout-decorator
-Version:        0.4.1
+Version:        0.5.0
 Release:        0
-License:        MIT
 Summary:        Python timeout decorator
-Url:            https://github.com/pnpnpn/timeout-decorator
+License:        MIT
 Group:          Development/Languages/Python
+URL:            https://github.com/pnpnpn/timeout-decorator
 Source:         
https://files.pythonhosted.org/packages/source/t/timeout-decorator/timeout-decorator-%{version}.tar.gz
 Source1:        
https://raw.githubusercontent.com/pnpnpn/timeout-decorator/master/tests/test_timeout_decorator.py
 # https://github.com/pnpnpn/timeout-decorator/issues/68
 Source2:        
https://raw.githubusercontent.com/pnpnpn/timeout-decorator/master/LICENSE.txt
-BuildRequires:  python-rpm-macros
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
 BuildArch:      noarch
-
 %python_subpackages
 
 %description
@@ -50,8 +50,7 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-# https://github.com/pnpnpn/timeout-decorator/issues/69
-%pytest -k 'not test_timeout_kwargs_with_initial_timeout_none'
+%pytest
 
 %files %{python_files}
 %doc CHANGES.rst README.rst

++++++ timeout-decorator-0.4.1.tar.gz -> timeout-decorator-0.5.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/timeout-decorator-0.4.1/PKG-INFO 
new/timeout-decorator-0.5.0/PKG-INFO
--- old/timeout-decorator-0.4.1/PKG-INFO        2018-12-05 19:36:50.000000000 
+0100
+++ new/timeout-decorator-0.5.0/PKG-INFO        2020-11-15 01:53:06.000000000 
+0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: timeout-decorator
-Version: 0.4.1
+Version: 0.5.0
 Summary: Timeout decorator
 Home-page: https://github.com/pnpnpn/timeout-decorator
 Author: Patrick Ng
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/timeout-decorator-0.4.1/setup.py 
new/timeout-decorator-0.5.0/setup.py
--- old/timeout-decorator-0.4.1/setup.py        2018-12-05 19:35:54.000000000 
+0100
+++ new/timeout-decorator-0.5.0/setup.py        2020-11-15 01:52:22.000000000 
+0100
@@ -27,7 +27,7 @@
 
 setup(
     name='timeout-decorator',
-    version='0.4.1',
+    version='0.5.0',
     description='Timeout decorator',
     long_description=long_description,
     author='Patrick Ng',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/timeout-decorator-0.4.1/timeout_decorator/__init__.py 
new/timeout-decorator-0.5.0/timeout_decorator/__init__.py
--- old/timeout-decorator-0.4.1/timeout_decorator/__init__.py   2018-12-05 
19:35:54.000000000 +0100
+++ new/timeout-decorator-0.5.0/timeout_decorator/__init__.py   2020-11-15 
01:52:22.000000000 +0100
@@ -4,4 +4,4 @@
 from .timeout_decorator import TimeoutError
 
 __title__ = 'timeout_decorator'
-__version__ = '0.4.1'
+__version__ = '0.5.0'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/timeout-decorator-0.4.1/timeout_decorator/timeout_decorator.py 
new/timeout-decorator-0.5.0/timeout_decorator/timeout_decorator.py
--- old/timeout-decorator-0.4.1/timeout_decorator/timeout_decorator.py  
2018-12-05 19:35:54.000000000 +0100
+++ new/timeout-decorator-0.5.0/timeout_decorator/timeout_decorator.py  
2020-11-15 01:52:22.000000000 +0100
@@ -64,9 +64,6 @@
     """
     def decorate(function):
 
-        if not seconds:
-            return function
-
         if use_signals:
             def handler(signum, frame):
                 _raise_exception(timeout_exception, exception_message)
@@ -77,6 +74,10 @@
                 if new_seconds:
                     old = signal.signal(signal.SIGALRM, handler)
                     signal.setitimer(signal.ITIMER_REAL, new_seconds)
+
+                if not seconds:
+                    return function(*args, **kwargs)
+
                 try:
                     return function(*args, **kwargs)
                 finally:
@@ -144,7 +145,8 @@
                                                  kwargs=kwargs)
         self.__process.daemon = True
         self.__process.start()
-        self.__timeout = self.__limit + time.time()
+        if self.__limit is not None:
+            self.__timeout = self.__limit + time.time()
         while not self.ready:
             time.sleep(0.01)
         return self.value
@@ -159,7 +161,7 @@
     @property
     def ready(self):
         """Read-only property indicating status of "value" property."""
-        if self.__timeout < time.time():
+        if self.__limit and self.__timeout < time.time():
             self.cancel()
         return self.__queue.full() and not self.__queue.empty()
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/timeout-decorator-0.4.1/timeout_decorator.egg-info/PKG-INFO 
new/timeout-decorator-0.5.0/timeout_decorator.egg-info/PKG-INFO
--- old/timeout-decorator-0.4.1/timeout_decorator.egg-info/PKG-INFO     
2018-12-05 19:36:50.000000000 +0100
+++ new/timeout-decorator-0.5.0/timeout_decorator.egg-info/PKG-INFO     
2020-11-15 01:53:06.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: timeout-decorator
-Version: 0.4.1
+Version: 0.5.0
 Summary: Timeout decorator
 Home-page: https://github.com/pnpnpn/timeout-decorator
 Author: Patrick Ng

Reply via email to