mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-20 00:08:58 -04:00
Closes: https://bugs.gentoo.org/934950 Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
23 lines
619 B
Diff
23 lines
619 B
Diff
Gentoo issue: https://bugs.gentoo.org/934950
|
|
Switch to use tomli instead of toml
|
|
diff '--color=auto' -Naur a/docs/conf.py b/docs/conf.py
|
|
--- a/docs/conf.py
|
|
+++ b/docs/conf.py
|
|
@@ -3,13 +3,14 @@
|
|
import os
|
|
import subprocess
|
|
|
|
-import toml
|
|
+import tomli
|
|
|
|
import sphinxcontrib.katex as katex
|
|
|
|
|
|
# -- GENERAL -------------------------------------------------------------
|
|
-config = toml.load(os.path.join("..", "pyproject.toml"))
|
|
+with open("../pyproject.toml", "rb") as f:
|
|
+ config = tomli.load(f)
|
|
|
|
project = config["project"]["name"]
|
|
author = ", ".join(author["name"] for author in config["project"]["authors"])
|