Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(setup): fix encoding problem in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Aug 16, 2019
1 parent 469bc51 commit 977822d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
try:
pkg_name = 'gnes'
libinfo_py = path.join(pkg_name, '__init__.py')
libinfo_content = open(libinfo_py, 'r').readlines()
libinfo_content = open(libinfo_py, 'r', encoding='utf8').readlines()
version_line = [l.strip() for l in libinfo_content if l.startswith('__version__')][0]
exec(version_line) # produce __version__
except FileNotFoundError:
__version__ = '0.0.0'

try:
with open('README.md') as fp:
with open('README.md', encoding='utf8') as fp:
_long_description = fp.read()
except FileNotFoundError:
_long_description = ''
Expand Down

0 comments on commit 977822d

Please sign in to comment.