Skip to content

Commit 3a17749

Browse files
- fixed build dependencies; also switched to official
version of tomli, as there seems no need to use pip-vendored version;
1 parent 6362470 commit 3a17749

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pyproject.toml

+5-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ dependencies = [
2929
]
3030

3131
[build-system]
32-
requires = ["setuptools>61", "wheel"]
32+
requires = [
33+
"setuptools>61",
34+
"wheel",
35+
"tomli; python_version < '3.11'" # tomllib alternative
36+
]
3337
build-backend = "setuptools.build_meta"
3438

3539
[project.scripts]

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
try:
66
import tomllib
77
except ImportError:
8-
from pip._vendor import tomli as tomllib
8+
import tomli as tomllib
99

1010
def get_version():
1111
return tomllib.loads(Path("pyproject.toml").read_text())['project']['version']

0 commit comments

Comments
 (0)