From 7af665c693af55ed16fe8a628db30be6d6dfc434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Furma=C5=84ski?= Date: Thu, 21 Apr 2016 08:55:06 +0200 Subject: [PATCH] Fix #59: UnicodeDecodeError --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 74ca6c4..3317f1f 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from setuptools import setup, find_packages import django_cassandra_engine as meta @@ -8,10 +9,10 @@ try: with open('README.rst', 'r') as f: - LONG_DESCRIPTION = f.read() + LONG_DESCRIPTION = f.read().decode('utf-8') except IOError: with open('README.md', 'r') as f: - LONG_DESCRIPTION = f.read() + LONG_DESCRIPTION = f.read().decode('utf-8') with open('requirements.txt', 'r') as f: DEPENDENCIES = f.read().splitlines()