Skip to content

Commit ea657c4

Browse files
committed
chore: get rid of toml and packaging
1 parent 2434cab commit ea657c4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

cpp_linter_hooks/util.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
import sys
22
import shutil
33
import subprocess
4-
import tomllib
54
from pathlib import Path
65
import logging
76
from typing import Optional, List
87

8+
try:
9+
import tomllib
10+
except ModuleNotFoundError:
11+
import tomli as tomllib
12+
913
LOG = logging.getLogger(__name__)
1014

1115

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ classifiers = [
3434
dependencies = [
3535
"clang-format==20.1.7",
3636
"clang-tidy==20.1.0",
37-
"tomllib; python_version < '3.11'",
37+
"tomli>=1.1.0; python_version < '3.11'",
3838
]
3939
dynamic = ["version"]
4040

0 commit comments

Comments
 (0)