public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Sandro Mani <manisandro@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/kdevelop-python] f43: Fix FTBFS due to syntax error due to async being a reserved keyword in python3.7
Date: Sat, 04 Jul 2026 11:13:39 GMT	[thread overview]
Message-ID: <178316361982.1.9928715960773622406.rpms-kdevelop-python-c728538694c2@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/kdevelop-python
Branch : f43
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=f43

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
 

                 reply	other threads:[~2026-07-04 11:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178316361982.1.9928715960773622406.rpms-kdevelop-python-c728538694c2@fedoraproject.org \
    --to=manisandro@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox