Skip to content

Commit

Permalink
Fix windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
nx10 committed Sep 18, 2024
1 parent 54d3308 commit d1148fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def iter_packages():

def iter_descriptors(package):
for filename_descriptor in sorted((PATH_DESCRIPTORS / package["id"]).glob("**/*.json")):
with open(filename_descriptor) as filehandle_descriptor:
with open(filename_descriptor, "r", encoding="utf-8") as filehandle_descriptor:
yield filename_descriptor, json.load(filehandle_descriptor)


Expand Down Expand Up @@ -71,7 +71,7 @@ def update_styxdefs_version():
import re
file_path = PATH_OUTPUT / "../../pyproject.toml"
new_version = styxdefs_compat()
with open(file_path, 'r') as file:
with open(file_path, 'r', encoding="utf-8") as file:
content = file.read()
pattern = r'(styxdefs\s*=\s*")[^"]+"'
updated_content = re.sub(pattern, f'\\1{new_version}"', content)
Expand Down

0 comments on commit d1148fc

Please sign in to comment.