Skip to content

Commit

Permalink
Add missing encoding in setup.py
Browse files Browse the repository at this point in the history
Closes #20
  • Loading branch information
patrys committed Jan 27, 2017
1 parent 3a37930 commit e40a608
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#! /usr/bin/env python
import io
import logging
import sys
from setuptools import setup, find_packages, Command
from setuptools.command.test import test as TestCommand
import sys


class PyTest(TestCommand):
Expand Down Expand Up @@ -46,7 +47,7 @@ def run(self):


def get_long_description():
with open('README.rst') as readme_file:
with io.open('README.rst', encoding='utf-8') as readme_file:
readme = readme_file.read()
# add GitHub badge in PyPi
return readme.replace(
Expand Down

0 comments on commit e40a608

Please sign in to comment.