Skip to content

Commit

Permalink
appoint encoding of open to utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajunhuang committed May 3, 2016
1 parent 9b3a4d4 commit 42e8cc1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
# !/usr/bin/env python

from setuptools import setup, find_packages
from io import open

setup(
name='wechat-sdk',
version='0.6.2',
keywords=('wechat', 'sdk', 'wechat sdk'),
description=u'微信公众平台Python开发包',
long_description=open("README.rst").read(),
long_description=open("README.rst", encoding="utf-8").read(),
license='BSD License',

url='https://github.com/wechat-python-sdk/wechat-python-sdk',
Expand All @@ -17,7 +18,7 @@

packages=find_packages(),
include_package_data=True,
install_requires=list(map(lambda x: x.replace('==', '>=') and x.rstrip('\n'), open("requirements.txt").readlines())),
install_requires=list(map(lambda x: x.replace('==', '>=') and x.rstrip('\n'), open("requirements.txt", encoding="utf-8").readlines())),

tests_require=['nose', 'httmock'],
test_suite='tests',
Expand Down

0 comments on commit 42e8cc1

Please sign in to comment.