Skip to content

Commit

Permalink
Added encoding specification when reading README.rst in setup.py as i…
Browse files Browse the repository at this point in the history
…t fails in environments where default encoding is set to ascii (#124)
  • Loading branch information
tomasatdatabricks authored and andrewmchen committed Jun 3, 2018
1 parent cb4b3be commit 9440bf4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Expand Up @@ -22,6 +22,7 @@
# limitations under the License.

import imp
import io
import os
from setuptools import setup, find_packages

Expand All @@ -48,7 +49,7 @@
author='Andrew Chen',
author_email='andrewchen@databricks.com',
description='A command line interface for Databricks',
long_description=open('README.rst').read(),
long_description=io.open('README.rst', encoding='utf-8').read(),
license='Apache License 2.0',
classifiers=[
'Intended Audience :: Developers',
Expand Down

0 comments on commit 9440bf4

Please sign in to comment.