diff --git a/setup.py b/setup.py index 365bb74..88ee5a2 100644 --- a/setup.py +++ b/setup.py @@ -1,10 +1,16 @@ +import sys from setuptools import setup +if sys.version_info >= (3,0): + description = open('README.md', encoding='utf-8').read() +else: + description = open('README.md').read() + setup( name='unicode-slugify', version='0.1.3', description='A slug generator that turns strings into unicode slugs.', - long_description=open('README.md').read(), + long_description=description, author='Jeff Balogh, Dave Dash', author_email='jbalogh@mozilla.com, dd@mozilla.com', url='http://github.com/mozilla/unicode-slugify',