Use explicit UTF8 encoding (#452)

* Use explicit UTF8 encoding

Resolves #451

* Resolve encoding issue with Python3 (#1)

* Use open from Py3 in Py2
This commit is contained in:
Campbell Barton 2017-08-07 13:03:12 +10:00 committed by Aaron Carlisle
parent 3e386cdf1f
commit 728d5da2e4

View File

@ -4,6 +4,7 @@
.. _github: https://www.github.com/snide/sphinx_rtd_theme .. _github: https://www.github.com/snide/sphinx_rtd_theme
""" """
from io import open
from setuptools import setup from setuptools import setup
from sphinx_rtd_theme import __version__ from sphinx_rtd_theme import __version__
@ -16,7 +17,7 @@ setup(
author='Dave Snider', author='Dave Snider',
author_email='dave.snider@gmail.com', author_email='dave.snider@gmail.com',
description='Read the Docs theme for Sphinx', description='Read the Docs theme for Sphinx',
long_description=open('README.rst').read(), long_description=open('README.rst', encoding='utf-8').read(),
zip_safe=False, zip_safe=False,
packages=['sphinx_rtd_theme'], packages=['sphinx_rtd_theme'],
package_data={'sphinx_rtd_theme': [ package_data={'sphinx_rtd_theme': [