Skip to content

Commit bcaaade

Browse files
committed
switch to tomli
1 parent e3873ab commit bcaaade

File tree

4 files changed

+20385
-5
lines changed

4 files changed

+20385
-5
lines changed

doc/ReleaseNotes/mk_releasenotes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
tex_path = Path(f"{fname}.tex").absolute()
1919
tex_path.unlink(missing_ok=True)
2020

21-
import tomlkit
21+
import tomli
2222
from jinja2 import Environment, FileSystemLoader
2323

2424
loader = FileSystemLoader(tex_path.parent)
@@ -37,8 +37,8 @@
3737
)
3838
template = env.get_template(f"{tex_path.name}.jinja")
3939
with open(tex_path, "w") as tex_file:
40-
with open(toml_path) as toml_file:
41-
notes = tomlkit.load(toml_file).get("notes")
40+
with open(toml_path, "rb") as toml_file:
41+
notes = tomli.load(toml_file).get("notes")
4242
if not notes:
4343
warn("No release notes found, aborting")
4444
sys.exit(0)

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ dependencies:
4141
- scipy
4242
- shapely
4343
- syrupy
44-
- tomlkit
44+
- tomli
4545

0 commit comments

Comments
 (0)