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
|
Author: Alexandre Detiste <tchet@debian.org>
Forwarded: https://github.com/newAM/idasen/pull/477
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -25,7 +25,7 @@
import inspect
import os
import sys
-import toml
+import tomllib
this_dir = os.path.dirname(os.path.abspath(__file__))
repo_root = os.path.abspath(os.path.join(this_dir, ".."))
@@ -45,8 +45,8 @@
templates_path = []
source_suffix = ".rst"
-with open(os.path.join(repo_root, "pyproject.toml"), "r") as f:
- pyproject = toml.load(f)
+with open(os.path.join(repo_root, "pyproject.toml"), "rb") as f:
+ pyproject = tomllib.load(f)
# The master toctree document.
master_doc = "index"
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -31,7 +31,6 @@
pytest-cov = "^4.1.0"
sphinx = "^7.1.2"
sphinx-rtd-theme = "^2.0.0"
-toml = "^0.10.2"
mypy = "^1.8"
types-PyYAML = "^6.0.12"
|