Control: tags -1 + patch

Hi again,

On Sat, Nov 08, 2025 at 03:13:10PM -0300, Carlos Henrique Lima Melara wrote:
> 
> It has been reported upstream [1] and there is a proposed MR fixing it
> [2]. I'll take a look at the proposed fix and test it. If all goes well,
> I can send a patch or MR to salsa, would that be ok? I also would like
> propose a trixie-pu because our VM is using trixie...
> 
> Ah, should we bump the severity to grave? It seems to really break
> feed2toot in every shape or form.
> 
> [1] https://gitlab.com/chaica/feed2toot/-/issues/87
> [2] https://gitlab.com/chaica/feed2toot/-/merge_requests/25

I did prepare the fix for unstable together with a few more improvements
in the packaging [1] and also prepared the trixie-pu [2] (and see the
attached diff). Hope you are ok with "Team upload".

Cheers,
Charles

[1] https://salsa.debian.org/python-team/packages/feed2toot/-/merge_requests/2
[2] https://salsa.debian.org/charles/feed2toot/-/tree/debian/trixie
diff --git a/debian/changelog b/debian/changelog
index b2988e7..c18bbc0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+feed2toot (0.17-1+deb13u1) trixie; urgency=medium
+
+  * Team upload.
+  * debian/patches/fix-compatibility-with-py3.13.patch: add new patch so
+    feed2toot works again. (Closes: #1118778)
+  * debian/tests/control: add superficial test to catch problems.
+
+ -- Carlos Henrique Lima Melara <[email protected]>  Sat, 08 Nov 2025 17:25:53 -0300
+
 feed2toot (0.17-1) unstable; urgency=medium
 
   * New upstream release
diff --git a/debian/patches/fix-compatibility-with-py3.13.patch b/debian/patches/fix-compatibility-with-py3.13.patch
new file mode 100644
index 0000000..85bd9e5
--- /dev/null
+++ b/debian/patches/fix-compatibility-with-py3.13.patch
@@ -0,0 +1,34 @@
+From: fluffy <[email protected]>
+Date: Thu, 12 Sep 2024 20:56:43 -0700
+Subject: Switch from long-deprecated SafeConfigParser to ConfigParser
+
+Bug: https://gitlab.com/chaica/feed2toot/-/issues/87
+Bug-Debian: https://bugs.debian.org/1118778
+Origin: https://gitlab.com/chaica/feed2toot/-/merge_requests/25
+Last-Update: 2025-11-08
+---
+ feed2toot/confparse.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/feed2toot/confparse.py b/feed2toot/confparse.py
+index 54010a2..c9cb66f 100644
+--- a/feed2toot/confparse.py
++++ b/feed2toot/confparse.py
+@@ -17,7 +17,7 @@
+ '''Get values of the configuration file'''
+ 
+ # standard library imports
+-from configparser import SafeConfigParser
++from configparser import ConfigParser
+ import logging
+ import os
+ import os.path
+@@ -58,7 +58,7 @@ class ConfParse:
+         for pathtoconfig in self.clioptions.configs:
+             options = {}
+             # read the configuration file
+-            config = SafeConfigParser()
++            config = ConfigParser()
+             if not config.read(os.path.expanduser(pathtoconfig)):
+                 sys.exit('Could not read config file')
+             ####################
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..403bd68
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-compatibility-with-py3.13.patch
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..4b19a70
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Test-Command: feed2toot --help
+Restrictions: superficial

Reply via email to