From 2e88f0c41f3d3cf928e8c48ca494af4d4412914a Mon Sep 17 00:00:00 2001 From: Mehul Tikekar Date: Thu, 5 Apr 2018 01:51:20 -0400 Subject: [PATCH] Update setup.py to work on Windows --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b8b98e2..e373aee 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,14 @@ # -*- coding: utf-8 -*- import sys +import io from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand from getkey import __version__ def read_description(): - with open('README.rst') as fd: + with io.open('README.rst', encoding='utf-8') as fd: return fd.read()