1 parent e913b14 commit 9a00554Copy full SHA for 9a00554
1 file changed
doc/conf.py
@@ -12,12 +12,10 @@
12
# -- Project information -----------------------------------------------------
13
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
14
15
-import tomllib
+import toml
16
from datetime import datetime
17
from pathlib import Path
18
-_pyproject_path = Path(__file__).resolve().parent.parent / "pyproject.toml"
19
-with open(_pyproject_path, "rb") as f:
20
- _pyproject = tomllib.load(f)
+_pyproject = toml.load(Path(__file__).resolve().parent.parent / "pyproject.toml")
21
_author = ", ".join(_pyproject["tool"]["poetry"]["authors"])
22
_year = datetime.now().year
23
0 commit comments