Skip to content

Commit

Permalink
Fix encoding error in setup.py when read README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Hao Zhou committed Jan 29, 2020
1 parent 9c6bce7 commit 0829fa1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import io
import re
try:
from setuptools import setup
Expand All @@ -18,7 +19,7 @@
packages=['pixivpy3'],
version=version,
description='Pixiv API for Python (with 6.x AppAPI supported)',
long_description=open('README.md', 'r').read(),
long_description=io.open('README.md', mode='r', encoding='utf-8').read(),
long_description_content_type="text/markdown",
author='upbit',
author_email='[email protected]',
Expand Down

0 comments on commit 0829fa1

Please sign in to comment.