Dominique Leuenberger 2023-01-13 23:02:08 +00:00 committed by Git OBS Bridge
commit b546035906
6 changed files with 117 additions and 20 deletions

View File

@ -1,3 +1,19 @@
-------------------------------------------------------------------
Thu Jan 12 09:02:28 UTC 2023 - Antonio Larrosa <alarrosa@suse.com>
- Add patch to support python 3.6 needed by SLE15:
* support-python3.6.patch
-------------------------------------------------------------------
Wed Jan 11 09:17:06 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Update to 6.7.5
* This is a minor bug-fix release that fixes a problem with
extract filenames that contain Windows drive letters.
- Version 6.7.4 is a minor big fix release that fixes the typo
affecting type hints for properties.
- Drop sip-hg2860-fixprop.patch
-------------------------------------------------------------------
Mon Oct 31 10:44:03 UTC 2022 - Ben Greiner <code@bnavigator.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-sip6
#
# Copyright (c) 2022 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
@ -17,16 +17,15 @@
Name: python-sip6
Version: 6.7.3
Version: 6.7.5
Release: 0
Summary: A Python bindings generator for C/C++ libraries
License: GPL-2.0-only OR GPL-3.0-only OR SUSE-SIP
Group: Development/Libraries/Python
URL: https://www.riverbankcomputing.com/software/sip
Source0: https://files.pythonhosted.org/packages/source/s/sip/sip-%{version}.tar.gz
# PATCH-FIX-UPSTREAM sip-hg2860-fixprop.patch https://www.riverbankcomputing.com/hg/sip/rev/2157850bf018, https://www.riverbankcomputing.com/pipermail/pyqt/2022-October/045021.html
Patch0: sip-hg2860-fixprop.patch
BuildRequires: %{python_module devel >= 3.7}
Patch0: support-python3.6.patch
BuildRequires: %{python_module devel >= 3.6}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module ply}
BuildRequires: %{python_module setuptools}
@ -48,7 +47,10 @@ to generate wxPython, the Python bindings for wxWidgets.
Summary: A Python bindings generator for C/C++ libraries
Group: Development/Libraries/Python
Requires: c++_compiler
Requires: python-devel >= 3.7
Requires: python-devel >= 3.6
%if %{python_version_nodots} <= 36
Requires: python-dataclasses
%endif
Requires: python-packaging
Requires: python-ply
Requires: python-setuptools

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:564a7a8c5c1a42f1b69e9258af2b43ea31fbbab206d2e182e75c173caf7d83f8
size 1160568

3
sip-6.7.5.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9655d089e1d0c5fbf66bde11558a874980729132b5bd0c2ae355ac1a7b893ab4
size 1160691

View File

@ -1,11 +0,0 @@
--- a/sipbuild/generator/outputs/pyi.py Fri Oct 28 16:36:35 2022 +0100
+++ b/sipbuild/generator/outputs/pyi.py Sat Oct 29 09:18:07 2022 +0100
@@ -495,7 +495,7 @@
defined)
s = _indent(indent)
- s += f'def {prop.name.name}{sinature}: ...\n'
+ s += f'def {prop.name.name}{signature}: ...\n'
pf.write(s)
break

90
support-python3.6.patch Normal file
View File

@ -0,0 +1,90 @@
Index: sip-6.7.5/PKG-INFO
===================================================================
--- sip-6.7.5.orig/PKG-INFO
+++ sip-6.7.5/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: sip-6.7.5/setup.py
===================================================================
--- sip-6.7.5.orig/setup.py
+++ sip-6.7.5/setup.py
@@ -50,7 +50,7 @@ setup(
name='sip',
version=version,
license='SIP',
- python_requires='>=3.7',
+ python_requires='>=3.6',
install_requires=['packaging', 'ply', 'setuptools', 'toml'],
packages=find_packages(),
package_data={
Index: sip-6.7.5/sipbuild/py_versions.py
===================================================================
--- sip-6.7.5.orig/sipbuild/py_versions.py
+++ sip-6.7.5/sipbuild/py_versions.py
@@ -22,4 +22,4 @@
# The oldest supported minor version of Python v3.
-OLDEST_SUPPORTED_MINOR = 7
+OLDEST_SUPPORTED_MINOR = 6
Index: sip-6.7.5/sipbuild/module/source/12/setup.py.in
===================================================================
--- sip-6.7.5.orig/sipbuild/module/source/12/setup.py.in
+++ sip-6.7.5/sipbuild/module/source/12/setup.py.in
@@ -40,6 +40,6 @@ setup(
name='@SIP_MODULE_PROJECT_NAME@',
version='@SIP_MODULE_VERSION@',
license='SIP',
- python_requires='>=3.7',
+ python_requires='>=3.6',
ext_modules=[module]
)
Index: sip-6.7.5/sipbuild/module/source/12/sip.h.in
===================================================================
--- sip-6.7.5.orig/sipbuild/module/source/12/sip.h.in
+++ sip-6.7.5/sipbuild/module/source/12/sip.h.in
@@ -24,8 +24,8 @@
#include <Python.h>
/* Sanity check on the Python version. */
-#if PY_VERSION_HEX < 0x03070000
-#error "This version of @_SIP_MODULE_FQ_NAME@ requires Python v3.7 or later"
+#if PY_VERSION_HEX < 0x03060000
+#error "This version of @_SIP_MODULE_FQ_NAME@ requires Python v3.6 or later"
#endif
Index: sip-6.7.5/sipbuild/module/source/13/setup.py.in
===================================================================
--- sip-6.7.5.orig/sipbuild/module/source/13/setup.py.in
+++ sip-6.7.5/sipbuild/module/source/13/setup.py.in
@@ -40,6 +40,6 @@ setup(
name='@SIP_MODULE_PROJECT_NAME@',
version='@SIP_MODULE_VERSION@',
license='SIP',
- python_requires='>=3.7',
+ python_requires='>=3.6',
ext_modules=[module]
)
Index: sip-6.7.5/sipbuild/module/source/13/sip.h.in
===================================================================
--- sip-6.7.5.orig/sipbuild/module/source/13/sip.h.in
+++ sip-6.7.5/sipbuild/module/source/13/sip.h.in
@@ -24,8 +24,8 @@
#include <Python.h>
/* Sanity check on the Python version. */
-#if PY_VERSION_HEX < 0x03070000
-#error "This version of @_SIP_MODULE_FQ_NAME@ requires Python v3.7 or later"
+#if PY_VERSION_HEX < 0x03060000
+#error "This version of @_SIP_MODULE_FQ_NAME@ requires Python v3.6 or later"
#endif