public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/kdevelop-python] f44: Fix FTBFS due to syntax error due to async being a reserved keyword in python3.7
@ 2026-07-04  1:00 Sandro Mani
  0 siblings, 0 replies; only message in thread
From: Sandro Mani @ 2026-07-04  1:00 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/kdevelop-python
Branch : f44
Commit : c728538694c295b4e4836e9b3fd2ee257f016008
Author : Sandro Mani <manisandro@gmail.com>
Date   : 2018-07-12T10:49:30+02:00
Stats  : +33/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/kdevelop-python/c/c728538694c295b4e4836e9b3fd2ee257f016008?branch=f44

Log:
Fix FTBFS due to syntax error due to async being a reserved keyword in python3.7

---
diff --git a/kdev-python_async.patch b/kdev-python_async.patch
new file mode 100644
index 0000000..555912e
--- /dev/null
+++ b/kdev-python_async.patch
@@ -0,0 +1,24 @@
+diff -rupN kdev-python-5.2.3/documentation_files/PyKDE4/kdecore.py kdev-python-5.2.3-new/documentation_files/PyKDE4/kdecore.py
+--- kdev-python-5.2.3/documentation_files/PyKDE4/kdecore.py	2018-05-17 20:38:20.000000000 +0200
++++ kdev-python-5.2.3-new/documentation_files/PyKDE4/kdecore.py	2018-07-04 23:24:21.832704858 +0200
+@@ -312,7 +312,7 @@ class KAuth():
+         def executesAsync(self):
+             '''bool KAuth.Action.executesAsync()'''
+             return bool()
+-        def setExecutesAsync(self, async):
++        def setExecutesAsync(self, async_):
+             '''void KAuth.Action.setExecutesAsync(bool async)'''
+         def execute(self):
+             '''KAuth.ActionReply KAuth.Action.execute()'''
+diff -rupN kdev-python-5.2.3/documentation_files/PyKDE4/khtml.py kdev-python-5.2.3-new/documentation_files/PyKDE4/khtml.py
+--- kdev-python-5.2.3/documentation_files/PyKDE4/khtml.py	2018-05-17 20:38:20.000000000 +0200
++++ kdev-python-5.2.3-new/documentation_files/PyKDE4/khtml.py	2018-07-04 23:17:16.075728408 +0200
+@@ -1619,7 +1619,7 @@ class DOM():
+         def setAsync(self):
+             '''bool DOM.Document.setAsync()'''
+             return bool()
+-        def async(self):
++        def async_(self):
+             '''bool DOM.Document.async()'''
+             return bool()
+         def getOverrideStyle(self, elt, pseudoElt):

diff --git a/kdevelop-python.spec b/kdevelop-python.spec
index 55f77b5..4235ae2 100644
--- a/kdevelop-python.spec
+++ b/kdevelop-python.spec
@@ -3,7 +3,7 @@ Name:       kdevelop-python
 Version:    5.2.3
 %global py3_suffix -py3
 %global py3_tag .py3
-Release:    2%{?py3_tag}%{?dist}
+Release:    3%{?py3_tag}%{?dist}
 License:    GPLv2
 Source0:    http://download.kde.org/stable/kdevelop/%{version}/src/kdev-python-%{version}.tar.xz
 
@@ -16,6 +16,9 @@ Patch0:     kdev-python-1.7.0-py3-shebang.patch
 # brp-python-bytecompile script choke
 Patch1:     kdev-python-1.7.0-py3-doc-syntax.patch
 
+# Fix syntax error due to async being a reserved keyword in python3.7
+Patch2:     kdev-python_async.patch
+
 Summary:    Python 3 Plugin for KDevelop
 URL:        https://www.kdevelop.org/
 
@@ -55,6 +58,8 @@ Python 3 language support for the KDevelop Integrated Development Environment.
 %patch0 -p1
 # doc-syntax
 %patch1 -p1
+# async
+%patch2 -p1
 
 %build
 mkdir %{_target_platform}
@@ -91,6 +96,9 @@ rm -f %{buildroot}%{_datadir}/kdevpythonsupport/documentation_files/PyKDE4/parse
 %{_datadir}/metainfo/org.kde.kdev-python.metainfo.xml
 
 %changelog
+* Thu Jul 12 2018 Sandro Mani <manisandro@gmail.com> - 5.2.3-3.py3
+- Fix FTBFS due to syntax error due to async being a reserved keyword in python3.7
+
 * Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 5.2.3-2.py3
 - Rebuilt for Python 3.7
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-04  1:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-04  1:00 [rpms/kdevelop-python] f44: Fix FTBFS due to syntax error due to async being a reserved keyword in python3.7 Sandro Mani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox