Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-promise for openSUSE:Factory 
checked in at 2023-06-07 23:07:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-promise (Old)
 and      /work/SRC/openSUSE:Factory/.python-promise.new.15902 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-promise"

Wed Jun  7 23:07:52 2023 rev:6 rq:1091247 version:2.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-promise/python-promise.changes    
2023-02-27 12:55:31.679481518 +0100
+++ /work/SRC/openSUSE:Factory/.python-promise.new.15902/python-promise.changes 
2023-06-07 23:08:32.743734863 +0200
@@ -1,0 +2,8 @@
+Wed Jun  7 08:08:55 UTC 2023 - [email protected]
+
+- do not require six
+- added patches
+  fix https://github.com/syrusakbary/promise/issues/101
+  + python-promise-no-six.patch
+
+-------------------------------------------------------------------

New:
----
  python-promise-no-six.patch

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

Other differences:
------------------
++++++ python-promise.spec ++++++
--- /var/tmp/diff_new_pack.uPjo5O/_old  2023-06-07 23:08:33.267737906 +0200
+++ /var/tmp/diff_new_pack.uPjo5O/_new  2023-06-07 23:08:33.275737953 +0200
@@ -21,20 +21,21 @@
 Release:        0
 Summary:        Promises/A+ implementation for Python
 License:        MIT
+Group:          Development/Languages/Python
 URL:            https://github.com/syrusakbary/promise
 Source:         
https://github.com/syrusakbary/promise/archive/v%{version}.tar.gz#/promise-%{version}.tar.gz
 # PATCH-FIX-UPSTREAM gh#syrusakbary/promise#96
 Patch0:         pytest-7-support.patch
 # PATCH-FIX-UPSTREAM python-311.patch gh#syrusakbary/promise#99
 Patch1:         python-311.patch
+# https://github.com/syrusakbary/promise/issues/101
+Patch2:         python-promise-no-six.patch
 BuildRequires:  %{python_module pytest-asyncio}
 BuildRequires:  %{python_module pytest-benchmark}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
-BuildRequires:  %{python_module six}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-Requires:       python-six
 BuildArch:      noarch
 %python_subpackages
 

++++++ python-promise-no-six.patch ++++++
Index: promise-2.3.0/promise/promise.py
===================================================================
--- promise-2.3.0.orig/promise/promise.py
+++ promise-2.3.0/promise/promise.py
@@ -5,7 +5,6 @@ from threading import RLock
 from types import TracebackType
 from weakref import WeakKeyDictionary
 
-from six import reraise  # type: ignore
 from .async_ import Async
 from .compat import (
     Future,
@@ -223,7 +222,7 @@ class Promise(Generic[T]):
         elif self._state == STATE_REJECTED:
             if _raise:
                 raise_val = self._fulfillment_handler0
-                reraise(type(raise_val), raise_val, self._traceback)
+                raise raise_val.with_traceback(self._traceback)
             return self._fulfillment_handler0
 
     def _fulfill(self, value):
Index: promise-2.3.0/setup.py
===================================================================
--- promise-2.3.0.orig/setup.py
+++ promise-2.3.0/setup.py
@@ -58,7 +58,6 @@ setup(
     extras_require={"test": tests_require},
     install_requires=[
         "typing>=3.6.4; python_version < '3.5'",
-        "six"
     ],
     tests_require=tests_require,
 )

Reply via email to