Lukas Fleischer pushed to branch main at Arch Linux / Packaging / Packages / 
python-urwidtrees


Commits:
712234aa by Lukas Fleischer at 2025-06-22T12:52:54-04:00
upgpkg: 1.0.3-12: Fix compatibility with urwid 3.0.2

- - - - -


3 changed files:

- .SRCINFO
- + 0001-Replace-__super-with-super.patch
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = python-urwidtrees
        pkgdesc = Tree widgets for urwid.
        pkgver = 1.0.3
-       pkgrel = 11
+       pkgrel = 12
        url = https://github.com/pazz/urwidtrees
        arch = any
        license = GPL3
@@ -10,8 +10,10 @@ pkgbase = python-urwidtrees
        depends = python
        depends = python-urwid>=1.1.0
        source = 
urwidtrees-1.0.3.tar.gz::https://github.com/pazz/urwidtrees/archive/1.0.3.tar.gz
+       source = 0001-Replace-__super-with-super.patch
        source = 
https://github.com/pazz/urwidtrees/commit/ed39dbc4fc67b0e0249bf108116a88cd18543aa9.patch
        sha256sums = 
6e4178eac8c69237011449e5225a7b7f369b5052a0964a5b6e413fcdc1502b3a
+       sha256sums = 
a27c598a9323c4db06208b613cbb07d092e2a7de2d89437321590d8a53702de5
        sha256sums = 
290abfba27ca1ceed14d7626d5232871bcaf8ef588f2c480a7a0544765416478
 
 pkgname = python-urwidtrees


=====================================
0001-Replace-__super-with-super.patch
=====================================
@@ -0,0 +1,31 @@
+From 3b5d090e6ddd6f04c55e6fca5478b14bdceda91f Mon Sep 17 00:00:00 2001
+From: Lukas Fleischer <[email protected]>
+Date: Sun, 22 Jun 2025 09:50:53 -0400
+Subject: [PATCH] Replace __super with super()
+
+Support for the __super property has been removed in urwid commit
+9378442 [1].
+
+[1] https://github.com/urwid/urwid/commit/9378442
+
+Signed-off-by: Lukas Fleischer <[email protected]>
+---
+ urwidtrees/widgets.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/urwidtrees/widgets.py b/urwidtrees/widgets.py
+index f600d3e..c4e5923 100644
+--- a/urwidtrees/widgets.py
++++ b/urwidtrees/widgets.py
+@@ -114,7 +114,7 @@ class TreeBox(WidgetWrap):
+         self._outer_list = ListBox(self._walker)
+         if focus is not None:
+             self.set_focus(focus)
+-        self.__super.__init__(self._outer_list)
++        super().__init__(self._outer_list)
+ 
+     # Widget API
+     def get_focus(self):
+-- 
+2.50.0
+


=====================================
PKGBUILD
=====================================
@@ -4,7 +4,7 @@
 _pkgname=urwidtrees
 pkgname=python-urwidtrees
 pkgver=1.0.3
-pkgrel=11
+pkgrel=12
 pkgdesc="Tree widgets for urwid."
 arch=(any)
 url="https://github.com/pazz/$_pkgname";
@@ -12,8 +12,10 @@ license=(GPL3)
 makedepends=(python-setuptools python-sphinx)
 depends=(python 'python-urwid>=1.1.0')
 
source=("$_pkgname-$pkgver.tar.gz::https://github.com/pazz/$_pkgname/archive/$pkgver.tar.gz";
+       0001-Replace-__super-with-super.patch
         
"https://github.com/pazz/urwidtrees/commit/ed39dbc4fc67b0e0249bf108116a88cd18543aa9.patch";)
 sha256sums=('6e4178eac8c69237011449e5225a7b7f369b5052a0964a5b6e413fcdc1502b3a'
+            'a27c598a9323c4db06208b613cbb07d092e2a7de2d89437321590d8a53702de5'
             '290abfba27ca1ceed14d7626d5232871bcaf8ef588f2c480a7a0544765416478')
 
 prepare() {
@@ -21,6 +23,7 @@ prepare() {
 
     # drop unneeded mock dependency: 
https://github.com/pazz/urwidtrees/issues/48
     patch -p1 -i ../ed39dbc4fc67b0e0249bf108116a88cd18543aa9.patch
+    patch -p1 -i ../0001-Replace-__super-with-super.patch
 }
 
 build() {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-urwidtrees/-/commit/712234aa2a866f8be9078d752f585f152351b7ce

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-urwidtrees/-/commit/712234aa2a866f8be9078d752f585f152351b7ce
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to