From dbcf88c2cae2162c4d485807690028aa633692de Mon Sep 17 00:00:00 2001 From: Andy Bryson Date: Tue, 29 Jan 2019 17:00:06 +0000 Subject: [PATCH 1/2] decode utf-8 README.rst --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 31a51aa..bf424d9 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ 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: From 6a616f99f085b31b5fde70cef7d88236459c68eb Mon Sep 17 00:00:00 2001 From: Andy Bryson Date: Wed, 30 Jan 2019 08:08:04 +0000 Subject: [PATCH 2/2] Make it work with python2 --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index bf424d9..617b6fc 100644 --- a/setup.py +++ b/setup.py @@ -2,8 +2,8 @@ from setuptools import setup, find_packages -with open('README.rst', encoding='utf-8') as infile: - readme = infile.read() +with open('README.rst', 'rb') as infile: + readme = infile.read().decode('UTF-8') with open('lazy_import/VERSION') as infile: version = infile.read().strip()