-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix encoding error in setup.py when read README.md
- Loading branch information
Hao Zhou
committed
Jan 29, 2020
1 parent
9c6bce7
commit 0829fa1
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import io | ||
import re | ||
try: | ||
from setuptools import setup | ||
|
@@ -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]', | ||
|