File: tomli.patch

package info (click to toggle)
guidata 3.13.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,716 kB
  • sloc: python: 20,020; makefile: 17
file content (50 lines) | stat: -rw-r--r-- 1,464 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
From: Debian Science Maintainers
 <debian-science-maintainers@lists.alioth.debian.org>
Date: Tue, 25 Nov 2025 17:59:24 +0100
Subject: tomli

---
 guidata/utils/genreqs.py | 6 +-----
 pyproject.toml           | 2 +-
 requirements.txt         | 1 -
 3 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/guidata/utils/genreqs.py b/guidata/utils/genreqs.py
index b041601..98a4142 100644
--- a/guidata/utils/genreqs.py
+++ b/guidata/utils/genreqs.py
@@ -19,11 +19,7 @@ import pathlib
 import re
 
 import requests
-
-try:
-    import tomllib  # type: ignore # Python 3.11+
-except ImportError:
-    import tomli as tomllib  # fallback for Python <3.11
+import tomllib as tomli
 
 
 def __parse_toml_requirements(pyproject_fname: str) -> dict[str, list[str]] | None:
diff --git a/pyproject.toml b/pyproject.toml
index 0cf744c..5390060 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -38,7 +38,7 @@ classifiers = [
     "Topic :: Utilities",
 ]
 requires-python = ">=3.9, <4"
-dependencies = ["h5py >= 3.6", "NumPy >= 1.22", "pandas", "Pillow", "QtPy >= 1.9", "requests", "tomli"]
+dependencies = ["h5py >= 3.6", "NumPy >= 1.22", "pandas", "Pillow", "QtPy >= 1.9", "requests"]
 dynamic = ["version"]
 
 [project.gui-scripts]
diff --git a/requirements.txt b/requirements.txt
index c1cc0bc..df0cf25 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -18,4 +18,3 @@ ruff
 sphinx
 sphinx-copybutton
 sphinx_qt_documentation
-tomli; python_version < '3.11'