From d724aab7215e03f91b9e7c9a93c9d7fb8ae8f132 Mon Sep 17 00:00:00 2001 From: Joeri Bekker Date: Wed, 1 Jun 2016 12:24:52 +0200 Subject: [PATCH] Fixes issue 162: UnicodeDecodeError on pip install --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 7470e78..8551fe1 100644 --- a/setup.py +++ b/setup.py @@ -2,6 +2,7 @@ # -*- coding: utf-8 -*- import os +import codecs from setuptools import setup, find_packages VERSION = '1.6.1' @@ -11,8 +12,8 @@ setup( version=VERSION, description="Keep track of failed login attempts in Django-powered sites.", long_description=( - open("README.rst").read() + '\n' + - open("CHANGES.txt").read()), + codecs.open("README.rst", encoding='utf-8').read() + '\n' + + codecs.open("CHANGES.txt", encoding='utf-8').read()), keywords='authentication, django, pci, security', author='Josh VanderLinden, Philip Neustrom, Michael Blume, Camilo Nova', author_email='codekoala@gmail.com',