From b1ba598e906f70791174610785b77f9a7e74936f Mon Sep 17 00:00:00 2001 From: Joona Yoon Date: Mon, 30 May 2022 01:25:55 +0900 Subject: [PATCH] fix: Fixed README & version.py encoding in setup (#56) --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index b44c93d..1d6ccdf 100644 --- a/setup.py +++ b/setup.py @@ -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 = [