Source: pcbasic
Version: 2.0.7-9
Severity: normal

Dear Maintainer,

python3-toml is on it's way out.

Python3 projects are migrating to Tomli
or tomllib (the copy integrated the Python standard library)


Please consider this patch that allows removal of
the python3-toml build-dependency.

Greetings

Alexandre


/tmp/pcbasic$ cat debian/patches/0004_drop_usage_of_old_toml.patch
--- a/make/linux.py
+++ b/make/linux.py
@@ -9,15 +9,15 @@
 import os
 import sys
 import subprocess
-
-import toml
+import tomllib
 
 from .common import make_clean, build_icon, make_docs, mkdir, make_ready
 from .common import VERSION, HERE, RESOURCE_PATH
 
 
 # project config
-SETUP_DATA = toml.load(os.path.join(HERE, 'pyproject.toml'))['project']
+with open(os.path.join(HERE, 'pyproject.toml'), 'rb') as fd:
+    SETUP_DATA = tomllib.load(fd)['project']
 
 # paths
 CONTROL_FILE = os.path.join(RESOURCE_PATH, 'control')

Reply via email to