Skip to content

Commit 10d0e99

Browse files
authored
Use built-in tomllib rather than toml (#71)
The toml library has been unmaintained for years and is no longer packaged by some distributions.
1 parent 3ebe8a9 commit 10d0e99

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_setup.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pkgutil
22

3-
import toml
3+
import tomllib
44

55
import scc
66

@@ -19,7 +19,8 @@ def test_packages(self):
1919
pass
2020

2121
# Load the packages from pyproject.toml
22-
pyproject = toml.load("pyproject.toml")
22+
with open("pyproject.toml", "rb") as file:
23+
pyproject = tomllib.load(file)
2324
packages = pyproject["tool"]["setuptools"]["packages"]
2425

2526
for importer, modname, ispkg in pkgutil.walk_packages(path=scc.__path__, prefix="scc.", onerror=lambda x: None):

0 commit comments

Comments
 (0)