#1 Patch for Python 3.7
Closed 5 years ago by louizatakk. Opened 5 years ago by dormouse.
rpms/ dormouse/poezio master  into  master

Add a comment to the new patch.
Marcel Plch • 5 years ago  
Patch for Python 3.7
Marcel Plch • 5 years ago  
file added
+12
@@ -0,0 +1,12 @@ 

+ diff -ru poezio-0.11/poezio/core/handlers.py poezio-0.11_patched/poezio/core/handlers.py

+ --- poezio-0.11/poezio/core/handlers.py	2017-01-31 00:23:05.000000000 +0100

+ +++ poezio-0.11_patched/poezio/core/handlers.py	2018-08-03 17:01:23.002037781 +0200

+ @@ -1021,7 +1021,7 @@

+  

+          if config.get('enable_user_nick'):

+              self.core.xmpp.plugin['xep_0172'].publish_nick(nick=self.core.own_nick, callback=dumb_callback)

+ -        asyncio.async(self.core.xmpp.plugin['xep_0115'].update_caps())

+ +        asyncio.ensure_future(self.core.xmpp.plugin['xep_0115'].update_caps())

+          # Start the ping's plugin regular event

+          self.core.xmpp.set_keepalive_values()

+  

file modified
+8 -2
@@ -1,6 +1,6 @@ 

  Name:		poezio

  Version:	0.11

- Release:	3%{?dist}

+ Release:	4%{?dist}

  Summary:	IRC-like jabber (XMPP) console client

  

  License:	zlib
@@ -8,9 +8,12 @@ 

  Source0:    http://dev.louiz.org/attachments/download/118/%{name}-%{version}.tar.gz

  

  BuildRequires:	python3-devel

+ BuildRequires:  gcc

  Requires:       python3-slixmpp

  Requires:       python3-inotify

  

+ # asyncio.async() has been renamed to asyncio.ensure_future()

+ Patch0:     async.patch

  

  %description

  A jabber (XMPP) console client that aims at being similar to popular IRC
@@ -35,7 +38,7 @@ 

  

  

  %prep

- %autosetup

+ %autosetup -p1

  

  

  %build
@@ -82,6 +85,9 @@ 

  

  

  %changelog

+ * Fri Aug 03 2018 Marcel Plch <mplch@redhat.com> - 0.11-4

+ - Patch for Python 3.7

+ 

  * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-3

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

  

This pull request solves problems with Python 3.7.
Also, BuildRequire for gcc is added.

I'd add an explaining comment above.

1 new commit added

  • Add a comment to the new patch.
5 years ago

Thanks!

That was fixed upstream in a new release, and I upgraded the package to that version in f29 and above, so this is not needed anymore.

Pull-Request has been closed by louizatakk

5 years ago