Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-qt5-sip for openSUSE:Factory 
checked in at 2023-01-14 20:30:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-qt5-sip (Old)
 and      /work/SRC/openSUSE:Factory/.python-qt5-sip.new.32243 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-qt5-sip"

Sat Jan 14 20:30:45 2023 rev:6 rq:1058062 version:12.11.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-qt5-sip/python-qt5-sip.changes    
2022-06-25 10:23:45.694630867 +0200
+++ /work/SRC/openSUSE:Factory/.python-qt5-sip.new.32243/python-qt5-sip.changes 
2023-01-14 20:30:53.184918277 +0100
@@ -1,0 +2,6 @@
+Thu Jan 12 07:37:05 UTC 2023 - Antonio Larrosa <alarr...@suse.com>
+
+- Add patch to revert the drop of support for python 3.6:
+  * support-python3.6.patch 
+
+-------------------------------------------------------------------

New:
----
  support-python3.6.patch

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

Other differences:
------------------
++++++ python-qt5-sip.spec ++++++
--- /var/tmp/diff_new_pack.TBLigc/_old  2023-01-14 20:30:56.016935003 +0100
+++ /var/tmp/diff_new_pack.TBLigc/_new  2023-01-14 20:30:56.020935026 +0100
@@ -24,7 +24,8 @@
 URL:            https://www.riverbankcomputing.com/software/sip/
 Group:          Development/Languages/Python
 Source0:        
https://files.pythonhosted.org/packages/source/P/PyQt5-sip/PyQt5_sip-%{version}.tar.gz
-BuildRequires:  %{python_module devel >= 3.7}
+Patch0:         support-python3.6.patch
+BuildRequires:  %{python_module devel >= 3.6}
 BuildRequires:  %{python_module setuptools >= 30.3}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -43,6 +44,7 @@
 
 %prep
 %setup -q -n PyQt5_sip-%{version}
+%patch0 -p1
 
 %build
 %python_build

++++++ support-python3.6.patch ++++++
Index: PyQt5_sip-12.11.0/setup.py
===================================================================
--- PyQt5_sip-12.11.0.orig/setup.py
+++ PyQt5_sip-12.11.0/setup.py
@@ -40,6 +40,6 @@ setup(
         name='PyQt5_sip',
         version='12.11.0',
         license='SIP',
-        python_requires='>=3.7',
+        python_requires='>=3.6',
         ext_modules=[module]
      )
Index: PyQt5_sip-12.11.0/sip.h
===================================================================
--- PyQt5_sip-12.11.0.orig/sip.h
+++ PyQt5_sip-12.11.0/sip.h
@@ -24,8 +24,8 @@
 #include <Python.h>
 
 /* Sanity check on the Python version. */
-#if PY_VERSION_HEX < 0x03070000
-#error "This version of PyQt5.sip requires Python v3.7 or later"
+#if PY_VERSION_HEX < 0x03060000
+#error "This version of PyQt5.sip requires Python v3.6 or later"
 #endif
 
 
Index: PyQt5_sip-12.11.0/siplib.c
===================================================================
--- PyQt5_sip-12.11.0.orig/siplib.c
+++ PyQt5_sip-12.11.0/siplib.c
@@ -1041,6 +1041,10 @@ const sipAPIDef *sip_init_library(PyObje
     PyObject *obj;
     PyMethodDef *md;
 
+#if PY_VERSION_HEX < 0x03070000 && defined(WITH_THREAD)
+    PyEval_InitThreads();
+#endif
+
     /* Add the SIP version number. */
     obj = PyLong_FromLong(SIP_VERSION);
 
@@ -13289,12 +13293,16 @@ int sip_api_convert_from_slice_object(Py
         Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step,
         Py_ssize_t *slicelength)
 {
+#if PY_VERSION_HEX >= 0x03070000
     if (PySlice_Unpack(slice, start, stop, step) < 0)
         return -1;
 
     *slicelength = PySlice_AdjustIndices(length, start, stop, *step);
 
     return 0;
+#else
+    return PySlice_GetIndicesEx(slice, length, start, stop, step, slicelength);
+#endif
 }
 
 
Index: PyQt5_sip-12.11.0/PKG-INFO
===================================================================
--- PyQt5_sip-12.11.0.orig/PKG-INFO
+++ PyQt5_sip-12.11.0/PKG-INFO
@@ -9,7 +9,7 @@ License: SIP
 Platform: X11
 Platform: macOS
 Platform: Windows
-Requires-Python: >=3.7
+Requires-Python: >=3.6
 License-File: LICENSE
 License-File: LICENSE-GPL3
 License-File: LICENSE-GPL2
Index: PyQt5_sip-12.11.0/PyQt5_sip.egg-info/PKG-INFO
===================================================================
--- PyQt5_sip-12.11.0.orig/PyQt5_sip.egg-info/PKG-INFO
+++ PyQt5_sip-12.11.0/PyQt5_sip.egg-info/PKG-INFO
@@ -9,7 +9,7 @@ License: SIP
 Platform: X11
 Platform: macOS
 Platform: Windows
-Requires-Python: >=3.7
+Requires-Python: >=3.6
 License-File: LICENSE
 License-File: LICENSE-GPL3
 License-File: LICENSE-GPL2

Reply via email to