summaryrefslogtreecommitdiffstats
path: root/debian/patches/0002-use-system-tomli.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-29 04:26:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-29 04:26:28 +0000
commit5c790d583db9dfc596ae940133483e4e62165b1c (patch)
treea3218a0874d66700ee344a4837672b9de4e9c176 /debian/patches/0002-use-system-tomli.patch
parentAdding upstream version 3.8.0. (diff)
downloadflit-debian.tar.xz
flit-debian.zip
Adding debian version 3.8.0-3.debian/3.8.0-3debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/0002-use-system-tomli.patch')
-rw-r--r--debian/patches/0002-use-system-tomli.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/0002-use-system-tomli.patch b/debian/patches/0002-use-system-tomli.patch
new file mode 100644
index 0000000..5d9fa65
--- /dev/null
+++ b/debian/patches/0002-use-system-tomli.patch
@@ -0,0 +1,23 @@
+From: Scott Kitterman <scott@kitterman.com>
+Date: Thu, 30 Dec 2021 09:10:52 -0500
+Subject: use system tomli in python lt 3_11
+
+Origin: vendor
+Forwarded: not-needed
+---
+ flit_core/flit_core/config.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/flit_core/flit_core/config.py b/flit_core/flit_core/config.py
+index 1292956..3fd0bd5 100644
+--- a/flit_core/flit_core/config.py
++++ b/flit_core/flit_core/config.py
+@@ -11,7 +11,7 @@ try:
+ import tomllib
+ except ImportError:
+ try:
+- from .vendor import tomli as tomllib
++ import tomli as tomllib
+ # Some downstream distributors remove the vendored tomli.
+ # When that is removed, import tomli from the regular location.
+ except ImportError: