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 6f2be6f commit 151852fCopy full SHA for 151852f
docs/source/conf.py
@@ -54,7 +54,10 @@
54
# built documents.
55
#
56
# The short X.Y version.
57
-import tomllib
+try:
58
+ import tomllib
59
+except ImportError:
60
+ import tomlli as tomllib
61
with open("../../pyproject.toml", "rb") as f:
62
toml_dict = tomllib.load(f)
63
version = toml_dict['project']['version']
requirements.txt
@@ -4,4 +4,5 @@ wheel
4
Cython
5
Sphinx
6
flake8
7
+tomli; python_version < '3.11'
8
pytest>=8.0.0
0 commit comments