From c0602980c279877c9d94f0b6c7d099d108debc68 Mon Sep 17 00:00:00 2001 From: Brandon Carpenter Date: Wed, 12 Mar 2025 15:48:36 -0700 Subject: [PATCH] Explicitly define encoding of README.md Building the project on Windows fails unless the environment variable PYTHONUTF8=1 is set or the encoding is explicitly specified when opening README.md. The latter option allows pip installs to work as expected without requiring the environment variable. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 579a12d..c070dd5 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ import setuptools -with open("README.md", "r") as fh: +with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup(