Skip to content

Commit

Permalink
Merge pull request #140 from makinacorpus/utf8
Browse files Browse the repository at this point in the history
Fix utf-8 in setup.py
  • Loading branch information
leplatrem committed Feb 8, 2016
2 parents abc9d87 + 4598fc6 commit 45f50f5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@

import os
from setuptools import setup, find_packages
import sys

here = os.path.abspath(os.path.dirname(__file__))
import codecs

requires = ['Django']
if sys.version_info < (2, 7):
Expand All @@ -16,9 +18,12 @@
url='https://github.com/makinacorpus/django-leaflet',
download_url="http://pypi.python.org/pypi/django-leaflet/",
description="Use Leaflet in your django projects",
long_description=open(
os.path.join(here, 'README.rst')).read() + '\n\n' +
open(os.path.join(here, 'CHANGES')).read(),
long_description=codecs.open(
os.path.join(
here, 'README.rst'), 'r', 'utf-8').read() + '\n\n' +
codecs.open(
os.path.join(here, 'CHANGES'),
'r', 'utf-8').read(),
license='LPGL, see LICENSE file.',
install_requires=requires,
packages=find_packages(),
Expand Down

0 comments on commit 45f50f5

Please sign in to comment.