[Git][debian-gis-team/python-stetl][master] 2 commits: Add patch to fix FTBFS with Python 3.12. (closes: #1058164)
Bas Couwenberg (@sebastic)
gitlab at salsa.debian.org
Tue Dec 12 08:55:46 GMT 2023
Bas Couwenberg pushed to branch master at Debian GIS Project / python-stetl
Commits:
d70ea011 by Bas Couwenberg at 2023-12-12T09:49:24+01:00
Add patch to fix FTBFS with Python 3.12. (closes: #1058164)
- - - - -
062b2c8b by Bas Couwenberg at 2023-12-12T09:49:39+01:00
Set distribution to unstable.
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/configparser.patch
- + debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,4 +1,4 @@
-python-stetl (2.1-2) UNRELEASED; urgency=medium
+python-stetl (2.1-2) unstable; urgency=medium
* Bump Standards-Version to 4.6.2, no changes.
* Bump debhelper compat to 13.
@@ -8,8 +8,10 @@ python-stetl (2.1-2) UNRELEASED; urgency=medium
(closes: #1047464)
* Use execute_{before,after} instead of override in rules file.
* Switch to dh-sequence-*.
+ * Add patch to fix FTBFS with Python 3.12.
+ (closes: #1058164)
- -- Bas Couwenberg <sebastic at debian.org> Wed, 18 Jan 2023 17:17:21 +0100
+ -- Bas Couwenberg <sebastic at debian.org> Tue, 12 Dec 2023 09:49:27 +0100
python-stetl (2.1-1) unstable; urgency=medium
=====================================
debian/patches/configparser.patch
=====================================
@@ -0,0 +1,17 @@
+Description: Use read_file() instead of readfp().
+ Fixes AttributeError with Python 3.12.
+Author: Bas Couwenberg <sebastic at debian.org>
+Bug-Debian: https://bugs.debian.org/1058164
+Forwarded: https://github.com/geopython/stetl/pull/128
+
+--- a/stetl/util.py
++++ b/stetl/util.py
+@@ -159,7 +159,7 @@ class Util:
+ raise StopIteration
+
+ cp = ConfigParser()
+- cp.readfp(FakeSecHead(open(file_path)))
++ cp.read_file(FakeSecHead(open(file_path)))
+ return cp._sections['asection']
+
+ @staticmethod
=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+configparser.patch
View it on GitLab: https://salsa.debian.org/debian-gis-team/python-stetl/-/compare/a99906ac1bcef1b07f5a4ba6a33522f5d1bb49e5...062b2c8ba1b169bb1e3818a79e5d5355e0e145d9
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/python-stetl/-/compare/a99906ac1bcef1b07f5a4ba6a33522f5d1bb49e5...062b2c8ba1b169bb1e3818a79e5d5355e0e145d9
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20231212/fca3c1ff/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list