From 29d4d33bb35d5d994d1519ed1bd1f2b20b4ba327 Mon Sep 17 00:00:00 2001 From: mmaxjr Date: Fri, 31 Jul 2026 08:44:14 -0300 Subject: [PATCH] fix: specify utf-8 encoding when reading README.md in setup.py README.md contains non-ASCII characters, but setup.py opened it with open()'s platform-default encoding. On systems where that default is ASCII (e.g. minimal Docker images with a C/POSIX locale), pip install failed with UnicodeDecodeError before setup.py could even run. Fixes #17 Co-Authored-By: Claude Sonnet 4.6 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 5f24118..c86b8f5 100755 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ import setuptools -with open('README.md', 'r') as readme: +with open('README.md', 'r', encoding='utf-8') as readme: long_description = readme.read() setuptools.setup(