[med-svn] [Git][med-team/microbegps][master] 2 commits: Created patch to include TkAgg backend from matplotlib

Israel Komolehin (@Komolehin) gitlab at salsa.debian.org
Wed Feb 14 05:26:00 GMT 2024



Israel Komolehin pushed to branch master at Debian Med / microbegps


Commits:
f25c074c by Komolehin Israel Timilehin at 2024-02-14T05:12:17+00:00
Created patch to include TkAgg backend from matplotlib

- - - - -
206ebdb0 by Komolehin Israel Timilehin at 2024-02-14T05:24:03+00:00
Added autopkgtest

- - - - -


3 changed files:

- + debian/patches/TkAgg.patch
- + debian/tests/control
- + debian/tests/run-unit-test


Changes:

=====================================
debian/patches/TkAgg.patch
=====================================
@@ -0,0 +1,16 @@
+Description: Includes TkAgg backend
+ Running the package throws an Exception "ImportError: Cannot load backend 'TkAgg' which requires the 'tk' interactive framework, as 'qt' is currently running"
+ This patch includes the TkAgg backend from matplotlib to fix the error.
+Author: Komolehin Israel <komolehinisrael at gmail.com>
+Last-Update: Wed, 14 Feb 2024 04:40:53 +0000
+--- a/microbegps/gui.py
++++ b/microbegps/gui.py
+@@ -11,6 +11,8 @@
+ 
+ from PyQt5 import QtGui, QtCore, QtWidgets
+ 
++import matplotlib
++matplotlib.use('Agg')
+ import matplotlib.pyplot as plt
+ from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
+ import matplotlib_venn as venn


=====================================
debian/tests/control
=====================================
@@ -0,0 +1,3 @@
+Test-Command: xvfb-run -s "-screen 0 1024x768x24 -ac +extension GLX +render -noreset" sh debian/tests/run-unit-test
+Depends: xvfb, xauth, microbegps
+Restrictions: allow-stderr, superficial
\ No newline at end of file


=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+pkg=microbegps
+
+
+if [ "$AUTOPKGTEST_TMP" = ""]; then
+	AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXX`
+
+	trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
+
+fi
+
+cd $AUTOPKGTEST_TMP
+
+# Start program
+
+echo "Starting MicrobeGPS"
+
+timeout 10s MicrobeGPS || true
+
+echo "Pass"
\ No newline at end of file



View it on GitLab: https://salsa.debian.org/med-team/microbegps/-/compare/88f43526da9121813a099bd2aded0c0512595ad0...206ebdb0bc041d525ea081ec7abf0a69f07de764

-- 
View it on GitLab: https://salsa.debian.org/med-team/microbegps/-/compare/88f43526da9121813a099bd2aded0c0512595ad0...206ebdb0bc041d525ea081ec7abf0a69f07de764
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/debian-med-commit/attachments/20240214/6baf4f4e/attachment-0001.htm>


More information about the debian-med-commit mailing list