Skip to content

Commit 22f108b

Browse files
Use 'tomli' instead of 'toml' library for toml parsing
setuptools_scm[toml] actually uses tomli instead of toml
1 parent 51b87f8 commit 22f108b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
# Use setuptools to build packages. Advised to import setuptools before distutils
4444
import setuptools
45-
import toml
45+
import tomli
4646
from setuptools import Extension
4747
from setuptools import __version__ as setuptools_version
4848
from setuptools import find_packages, setup
@@ -195,7 +195,7 @@ def run(self):
195195
pyproject_toml = this_dir / "pyproject.toml"
196196
assert pyproject_toml.is_file()
197197
pyproject_text = pyproject_toml.read_text()
198-
pyproject_data = toml.loads(pyproject_text)
198+
pyproject_data = tomli.loads(pyproject_text)
199199

200200

201201
# Try to grab all necessary environment variables.

0 commit comments

Comments
 (0)