From 95e503cf1f5d67d077a269f0943106a2a866cd8c Mon Sep 17 00:00:00 2001 From: Ofek Lev Date: Wed, 23 Aug 2017 20:53:57 -0400 Subject: [PATCH 1/2] fix setup.py `.decode('utf-8')` is unnecessary and breaks on Python 3 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index f0ab78b39..b5cd3e2d5 100644 --- a/setup.py +++ b/setup.py @@ -50,7 +50,7 @@ package_name = "lbrynet" base_dir = os.path.abspath(os.path.dirname(__file__)) # Get the long description from the README file with open(os.path.join(base_dir, 'README.md')) as f: - long_description = f.read().decode('utf-8') + long_description = f.read() setup( name=package_name, From 780044ebd6f03fd205b5fa7af8561e05bef37404 Mon Sep 17 00:00:00 2001 From: Ofek Lev Date: Mon, 28 Aug 2017 14:32:55 -0400 Subject: [PATCH 2/2] unify behavior --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index b5cd3e2d5..3eb8b1dfd 100644 --- a/setup.py +++ b/setup.py @@ -49,8 +49,8 @@ def package_files(directory): package_name = "lbrynet" base_dir = os.path.abspath(os.path.dirname(__file__)) # Get the long description from the README file -with open(os.path.join(base_dir, 'README.md')) as f: - long_description = f.read() +with open(os.path.join(base_dir, 'README.md'), 'rb') as f: + long_description = f.read().decode('utf-8') setup( name=package_name,