We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fbd5d0 commit e3e08ebCopy full SHA for e3e08eb
babel_runner.py
@@ -6,7 +6,15 @@
6
import subprocess
7
from pathlib import Path
8
9
-import tomllib
+try:
10
+ import tomllib
11
+except ImportError:
12
+ try:
13
+ import tomli as tomllib
14
+ except ImportError as ie:
15
+ raise ImportError(
16
+ "tomli or tomllib is required to parse pyproject.toml"
17
+ ) from ie
18
19
PROJECT_DIR = Path(__file__).resolve().parent
20
requirements.txt
@@ -0,0 +1,5 @@
1
+# for babel_runner.py
2
+setuptools
3
+Babel
4
+Jinja2
5
+tomli; python_version < "3.10"
0 commit comments