We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbfc559 commit 118b666Copy full SHA for 118b666
docs/source/conf.py
@@ -54,9 +54,12 @@
54
# built documents.
55
#
56
# The short X.Y version.
57
-import tomli
+try:
58
+ import tomllib
59
+except ImportError:
60
+ import tomli
61
with open("../../pyproject.toml", "rb") as f:
- toml_dict = tomli.load(f)
62
+ toml_dict = tomllib.load(f)
63
version = toml_dict['project']['version']
64
# The full version, including alpha/beta/rc tags.
65
release = version
requirements.txt
@@ -4,5 +4,5 @@ wheel
4
Cython
5
Sphinx
6
flake8
7
-tomli
+tomli;python_version<"3.11"
8
pytest>=8.0.0
0 commit comments