Skip to content

Commit

Permalink
fix: read encoding with utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
joonas-yoon committed May 29, 2022
1 parent 4d4fcbf commit ba8230b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
version += '+' + sha[:7]
print(f"Building wheel {package_name}-{version}")

with open(cwd.joinpath('torchscan', 'version.py'), 'w') as f:
with open(cwd.joinpath('torchscan', 'version.py'), 'w', encoding='utf-8') as f:
f.write(f"__version__ = '{version}'\n")

with open('README.md', 'r') as f:
with open('README.md', 'r', encoding='utf-8') as f:
readme = f.read()

_deps = [
Expand Down

0 comments on commit ba8230b

Please sign in to comment.