-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-pyton/sphinxcontrib-katex: fix build USE="doc"; switch toml->tomli
Closes: https://bugs.gentoo.org/934950 Signed-off-by: Sergey Torokhov <[email protected]>
- Loading branch information
1 parent
883718f
commit c2b1ca2
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
dev-python/sphinxcontrib-katex/files/sphinxcontrib-katex-0.9.10_fix_use_tomli.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
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"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters