Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / 
gramps


Commits:
0baedf03 by Jelle van der Waa at 2024-10-06T14:03:00+02:00
Add Python 3.13 compatibility

Closes: #1

- - - - -


4 changed files:

- .SRCINFO
- PKGBUILD
- + replace-deprecated-makesuite.patch
- + replace-deprecated-warn-method.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -22,6 +22,10 @@ pkgbase = gramps
        optdepends = libgexiv2: manage Exif metadata embedded in your media
        optdepends = geocode-glib: associate a geographical position to a place 
name
        source = 
gramps-5.2.3.tar.gz::https://github.com/gramps-project/gramps/archive/v5.2.3.tar.gz
+       source = replace-deprecated-warn-method.patch
+       source = replace-deprecated-makesuite.patch
        sha256sums = 
bd1b7dc3f26ffd480f607a79e3a76688024a28b0f0b412ac1e4d77402ddc87d6
+       sha256sums = 
5b8ebcd419d17011deeffae60a85e02086e4ceb78a050b5481aff63d8a25fa7e
+       sha256sums = 
a33d2afb646af97ea47c3f04f7092cc3a5f2049a904aeec0103fbf5286de335c
 
 pkgname = gramps


=====================================
PKGBUILD
=====================================
@@ -21,8 +21,18 @@ optdepends=('osm-gps-map: show maps in the geography view'
             'python-pillow: crop and convert images to JPG'
             'libgexiv2: manage Exif metadata embedded in your media'
             'geocode-glib: associate a geographical position to a place name')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/gramps-project/$pkgname/archive/v$pkgver.tar.gz";)
-sha256sums=('bd1b7dc3f26ffd480f607a79e3a76688024a28b0f0b412ac1e4d77402ddc87d6')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/gramps-project/$pkgname/archive/v$pkgver.tar.gz";
+       "replace-deprecated-warn-method.patch"
+       "replace-deprecated-makesuite.patch")
+sha256sums=('bd1b7dc3f26ffd480f607a79e3a76688024a28b0f0b412ac1e4d77402ddc87d6'
+            '5b8ebcd419d17011deeffae60a85e02086e4ceb78a050b5481aff63d8a25fa7e'
+            'a33d2afb646af97ea47c3f04f7092cc3a5f2049a904aeec0103fbf5286de335c')
+
+prepare() {
+  cd $pkgname-$pkgver
+  patch -Np1 -i "${srcdir}/replace-deprecated-warn-method.patch"
+  patch -Np1 -i "${srcdir}/replace-deprecated-makesuite.patch"
+}
 
 build() {
   cd $pkgname-$pkgver


=====================================
replace-deprecated-makesuite.patch
=====================================
@@ -0,0 +1,37 @@
+From 3c660121d5fbb5b41ba3a7023f08e9f05b323d2a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= <[email protected]>
+Date: Wed, 12 Jun 2024 20:39:13 +0200
+Subject: [PATCH] Replace deprecated makeSuite with
+ TestLoader().loadTestsFromTestCase
+
+---
+ test/GrampsLogger/ErrorReportAssistant_Test.py | 2 +-
+ test/GrampsLogger/GtkHandler_Test.py           | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/test/GrampsLogger/ErrorReportAssistant_Test.py 
b/test/GrampsLogger/ErrorReportAssistant_Test.py
+index 2799ab080f5..f298284013f 100644
+--- a/test/GrampsLogger/ErrorReportAssistant_Test.py
++++ b/test/GrampsLogger/ErrorReportAssistant_Test.py
+@@ -68,7 +68,7 @@ def test_buffer_recall(self):
+ 
+ 
+ def testSuite():
+-    suite = unittest.makeSuite(ErrorReportAssistantTest, "test")
++    suite = 
unittest.TestLoader().loadTestsFromTestCase(ErrorReportAssistantTest)
+     return suite
+ 
+ 
+diff --git a/test/GrampsLogger/GtkHandler_Test.py 
b/test/GrampsLogger/GtkHandler_Test.py
+index a5bfced1764..d6ff19d9ca7 100644
+--- a/test/GrampsLogger/GtkHandler_Test.py
++++ b/test/GrampsLogger/GtkHandler_Test.py
+@@ -71,7 +71,7 @@ def test_window(self):
+ 
+ 
+ def testSuite():
+-    suite = unittest.makeSuite(GtkHandlerTest, "test")
++    suite = unittest.TestLoader().loadTestsFromTestCase(GtkHandlerTest)
+     return suite
+ 
+ 


=====================================
replace-deprecated-warn-method.patch
=====================================
@@ -0,0 +1,22 @@
+From 094794a36e742957b33f04a6c1e2d3003286f6b2 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= <[email protected]>
+Date: Wed, 12 Jun 2024 20:40:05 +0200
+Subject: [PATCH] Replace deprecated 'warn' method with 'warning'
+
+---
+ test/GrampsLogger/GtkHandler_Test.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/GrampsLogger/GtkHandler_Test.py 
b/test/GrampsLogger/GtkHandler_Test.py
+index d6ff19d9ca..023111e542 100644
+--- a/test/GrampsLogger/GtkHandler_Test.py
++++ b/test/GrampsLogger/GtkHandler_Test.py
+@@ -55,7 +55,7 @@ def test_window(self):
+         l.addHandler(gtkh)
+ 
+         l.info("An info message")
+-        l.warn("A warn message")
++        l.warning("A warn message")
+         l.debug("A debug message")
+         log_message = "Debug message"
+ 



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/gramps/-/commit/0baedf03bc7b8cc54c5b71fef2c459d3930b16e4

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/gramps/-/commit/0baedf03bc7b8cc54c5b71fef2c459d3930b16e4
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to