From 3ec12925661b82271f3666d10ec4e806a2e8dfb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Wed, 21 Oct 2020 12:11:11 +0200 Subject: [PATCH] Force README encoding in setup.py --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 01287a8f..a45b9486 100644 --- a/setup.py +++ b/setup.py @@ -2,6 +2,7 @@ # Copyright © 2015-2017 ACSONE SA/NV # License LGPLv3 (http://www.gnu.org/licenses/lgpl-3.0-standalone.html) +import io import os import setuptools @@ -9,9 +10,9 @@ here = os.path.abspath(os.path.dirname(__file__)) long_description = [] -with open(os.path.join("README.rst")) as f: +with io.open(os.path.join("README.rst"), encoding="utf-8") as f: long_description.append(f.read()) -with open(os.path.join("CHANGES.rst")) as f: +with io.open(os.path.join("CHANGES.rst"), encoding="utf-8") as f: long_description.append(f.read())