diff --git a/bindgen/__init__.py b/bindgen/__init__.py index 3eb9a52..86cdcc5 100644 --- a/bindgen/__init__.py +++ b/bindgen/__init__.py @@ -5,7 +5,7 @@ from typing import List import logzero -import toml as toml +import tomli import pandas as pd import pyparsing as pp @@ -23,8 +23,8 @@ def read_settings(p): - with open(p) as f: - settings = toml.load(f) + with open(p, 'rb') as f: + settings = tomli.load(f) # validate settings = global_schema.validate(settings) diff --git a/env.yml b/env.yml index 015916e..cbf1d18 100644 --- a/env.yml +++ b/env.yml @@ -10,7 +10,7 @@ dependencies: - pybind11=2.4.3 - python=3.6 - joblib - - toml + - tomli - pip - cmake=3.16 - ninja diff --git a/setup.py b/setup.py index db3bdb2..718f185 100755 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ "logzero", "path", "clang", - "toml", + "tomli", "pandas", "joblib", "tqdm",