summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYing-Chun Liu (PaulLiu) <paulliu@debian.org>2025-12-25 20:44:26 +0000
committergit-ubuntu importer <ubuntu-devel-discuss@lists.ubuntu.com>2025-12-26 04:39:51 +0000
commitff2e925b6a59059286e31631fd2d9bbfde959bca (patch)
tree9026624b76a3e8ea3f987fd30ca88518350a93de
parent3aec38a29d9661cbd1a40e7bf4cda76168e953f4 (diff)
Imported using git-ubuntu import.
Notes
Notes: * Port to python 3.14. (Closes: #1123277) - Add debian/patches/0001_port_to_python3.14.patch
-rw-r--r--debian/changelog7
-rw-r--r--debian/patches/0001_port_to_python3.14.patch24
-rw-r--r--debian/patches/series1
3 files changed, 32 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index a7a75c7..24b3bf0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+python-openleadr-python (0.5.34+dfsg.1-3) unstable; urgency=low
+
+ * Port to python 3.14. (Closes: #1123277)
+ - Add debian/patches/0001_port_to_python3.14.patch
+
+ -- Ying-Chun Liu (PaulLiu) <paulliu@debian.org> Thu, 25 Dec 2025 20:44:26 +0000
+
python-openleadr-python (0.5.34+dfsg.1-2) unstable; urgency=low
* Add debian/tests/pkg-python/import-name: fix autopkgtest failure.
diff --git a/debian/patches/0001_port_to_python3.14.patch b/debian/patches/0001_port_to_python3.14.patch
new file mode 100644
index 0000000..a2bd51d
--- /dev/null
+++ b/debian/patches/0001_port_to_python3.14.patch
@@ -0,0 +1,24 @@
+Description: Port to python 3.14
+ In Python 3.14, get_event_loop() no longer create a new event loop
+ when there is none. Thus we modify the code to create a new event loop
+ if there is RuntimeError.
+Author: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
+Bug-Debian: https://bugs.debian.org/1123277
+Last-Update: 2025-12-25
+Index: python-openleadr-python-0.5.34+dfsg.1/test/test_reports.py
+===================================================================
+--- python-openleadr-python-0.5.34+dfsg.1.orig/test/test_reports.py
++++ python-openleadr-python-0.5.34+dfsg.1/test/test_reports.py
+@@ -10,7 +10,11 @@ import time
+
+ from openleadr.messaging import create_message
+
+-loop = asyncio.get_event_loop()
++try:
++ loop = asyncio.get_event_loop()
++except RuntimeError:
++ loop = asyncio.new_event_loop()
++ asyncio.set_event_loop(loop)
+ loop.set_debug(True)
+
+ enable_default_logging()
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..030708f
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001_port_to_python3.14.patch