Dear maintainer, Attached is a patch to fix the Python 3.12 FTBFS.
-- Michael R. Crusoe
Author: Michael R. Crusoe <cru...@debian.org> Date: Wed Jan 31 16:53:11 2024 +0100 d/patches/1006_configparser.patch: Fix Python 3.12 compatability. Closes: #1061748 diff --git a/debian/patches/1006_configparser.patch b/debian/patches/1006_configparser.patch new file mode 100644 index 0000000..d0e47c5 --- /dev/null +++ b/debian/patches/1006_configparser.patch @@ -0,0 +1,44 @@ +From: Michael R. Crusoe <cru...@debian.org> +Subject: Add Python 3.12 compatability +--- ontospy.orig/ontospy/core/__init__.py ++++ ontospy/ontospy/core/__init__.py +@@ -6,7 +6,7 @@ + import logging + logging.basicConfig() + +-from configparser import SafeConfigParser ++from configparser import ConfigParser + import sys, os + import pickle as cPickle + +--- ontospy.orig/ontospy/core/actions.py ++++ ontospy/ontospy/core/actions.py +@@ -19,7 +19,7 @@ + import urllib.request + from urllib.request import urlopen + from urllib.parse import quote # Python 3+ +-from configparser import SafeConfigParser ++from configparser import ConfigParser + + from . import * + from .ontospy import Ontospy +@@ -521,7 +521,7 @@ + + if os.path.isdir(_location): + +- config = SafeConfigParser() ++ config = ConfigParser() + config_filename = ONTOSPY_LOCAL + '/config.ini' + config.read(config_filename) + if not config.has_section('models'): +--- ontospy.orig/ontospy/core/manager.py ++++ ontospy/ontospy/core/manager.py +@@ -63,7 +63,7 @@ + """Gets the path of the local library folder + :return - a string e.g. "/users/mac/ontospy" + """ +- config = SafeConfigParser() ++ config = ConfigParser() + config_filename = ONTOSPY_LOCAL + '/config.ini' + + if not os.path.exists(config_filename): diff --git a/debian/patches/series b/debian/patches/series index 90369c2..f8938eb 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -3,4 +3,5 @@ 1003_bootstrap.patch 1004_chart.patch 1005_d3.patch +1006_configparser.patch 2001_privacy.patch
OpenPGP_signature.asc
Description: OpenPGP digital signature