Skip to content

Commit

Permalink
Merge pull request #22 from marceltschoppch/master
Browse files Browse the repository at this point in the history
Fix reading of README file for python >= 3.0
  • Loading branch information
davedash authored Nov 2, 2017
2 parents a73321c + 9259034 commit a8c03ba
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -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='[email protected], [email protected]',
url='http://github.com/mozilla/unicode-slugify',
Expand Down

0 comments on commit a8c03ba

Please sign in to comment.