From 219db429a9b7d1ce056e1dc0f1cb99d1e49af79c Mon Sep 17 00:00:00 2001 From: xc <92363585+ace-xc@users.noreply.github.com> Date: Tue, 27 Jan 2026 15:57:35 +0800 Subject: [PATCH] Fix UnicodeDecodeError on Windows by specifying utf-8 encoding --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 31a51aa..5204819 100644 --- a/setup.py +++ b/setup.py @@ -2,10 +2,10 @@ from setuptools import setup, find_packages -with open('README.rst') as infile: +with open('README.rst', encoding='utf-8') as infile: readme = infile.read() -with open('lazy_import/VERSION') as infile: +with open('lazy_import/VERSION', encoding='utf-8') as infile: version = infile.read().strip() tests_require = ['pytest', 'pytest-xdist']