From c02cad2dc5ad08740a863e60134521876eb09d75 Mon Sep 17 00:00:00 2001 From: Andreas Tille Date: Wed, 14 Feb 2024 21:07:22 +0100 Subject: [PATCH] Make sure autopkgtest also passes with Python3.12 --- debian/changelog | 2 ++ debian/patches/python3.12.patch | 14 ++++++++++++++ debian/patches/series | 1 + 3 files changed, 17 insertions(+) create mode 100644 debian/patches/python3.12.patch diff --git a/debian/changelog b/debian/changelog index d52c3ea..ffb4a67 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,8 @@ mathgl (8.0.1-6) UNRELEASED; urgency=medium * Team upload. * Run autopkgtest with all supported Python3 versions + * Make sure autopkgtest also passes with Python3.12 + Closes: #1061810 -- Andreas Tille Wed, 14 Feb 2024 12:02:47 +0100 diff --git a/debian/patches/python3.12.patch b/debian/patches/python3.12.patch new file mode 100644 index 0000000..e648036 --- /dev/null +++ b/debian/patches/python3.12.patch @@ -0,0 +1,14 @@ +Description: Make sure autopkgtest also passes with Python3.12 +Bug-Debian: https://bugs.debian.org/1061810 +Author: Andreas Tille +Last-Update: Wed, 14 Feb 2024 12:02:47 +0100 + +--- a/examples/test.py ++++ b/examples/test.py +@@ -12,5 +12,5 @@ gr.Light(True) # enable lighting + gr.Surf(dat) # plot surface + gr.Cont(dat,"y") # plot yellow contour lines + gr.Axis() # draw axis +-gr.Puts(mglPoint(1,1,1.2),"\i f = \dfrac{1}{1+(5x-5)^2+(5y-5)^2}") ++gr.Puts(mglPoint(1,1,1.2),r"\i f = \dfrac{1}{1+(5x-5)^2+(5y-5)^2}") + gr.WriteFrame("sample.png") # save it diff --git a/debian/patches/series b/debian/patches/series index 38edaa7..24e4f64 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ spelling-errors.patch +python3.12.patch -- 2.30.2