File tree Expand file tree Collapse file tree 4 files changed +20385
-5
lines changed Expand file tree Collapse file tree 4 files changed +20385
-5
lines changed Original file line number Diff line number Diff line change 18
18
tex_path = Path (f"{ fname } .tex" ).absolute ()
19
19
tex_path .unlink (missing_ok = True )
20
20
21
- import tomlkit
21
+ import tomli
22
22
from jinja2 import Environment , FileSystemLoader
23
23
24
24
loader = FileSystemLoader (tex_path .parent )
37
37
)
38
38
template = env .get_template (f"{ tex_path .name } .jinja" )
39
39
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" )
42
42
if not notes :
43
43
warn ("No release notes found, aborting" )
44
44
sys .exit (0 )
Original file line number Diff line number Diff line change @@ -41,5 +41,5 @@ dependencies:
41
41
- scipy
42
42
- shapely
43
43
- syrupy
44
- - tomlkit
44
+ - tomli
45
45
You can’t perform that action at this time.
0 commit comments