From 29008993ff468524d97ee9988e5f0d77a9559dca Mon Sep 17 00:00:00 2001 From: Eric Lo Date: Mon, 14 Dec 2015 22:25:27 +0800 Subject: [PATCH] Prepare 0.5.4 release MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - replace open() calls with io.open() for Python 3 compatibility, fix `UnicodeDecodeError` - change \u730E 猎 to LIE4 - improve readme --- CHANGES.rst | 9 +++++++++ setup.cfg | 2 ++ setup.py | 23 +++++++++++++++++++---- 3 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 setup.cfg diff --git a/CHANGES.rst b/CHANGES.rst index 3fb2abc..b6c50f1 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -2,6 +2,15 @@ Changelog ========= +0.5.4 - Dec. 14, 2015 +---------------------- + +- replace open() calls with io.open() for Python 3 compatibility, + fix `UnicodeDecodeError` +- change \u730E 猎 to LIE4 +- improve readme + + 0.5.3 - Dec. 25, 2014 ---------------------- diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..5e40900 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[wheel] +universal = 1 diff --git a/setup.py b/setup.py index f39043e..b84301c 100644 --- a/setup.py +++ b/setup.py @@ -1,16 +1,31 @@ # -*- coding: utf-8 -*- import os +import io from setuptools import setup from setuptools import find_packages here = os.path.abspath(os.path.dirname(__file__)) -README = open(os.path.join(here, 'README.rst')).read() -CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() +README = io.open(os.path.join(here, 'README.rst'), encoding='UTF-8').read() +CHANGES = io.open(os.path.join(here, 'CHANGES.rst'), encoding='UTF-8').read() setup(name="xpinyin", - version='0.5.3', + version='0.5.4', description="translate chinese hanzi to pinyin by python", long_description=README + '\n\n' + CHANGES, + classifiers=[ + 'Intended Audience :: Developers', + 'License :: OSI Approved :: BSD License', + 'Operating System :: OS Independent', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.6', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Topic :: Software Development :: Libraries :: Python Modules', + ], + keywords='pinyin', author="Eric Lo", author_email="lxneng@gmail.com", url="https://github.com/lxneng/xpinyin", @@ -18,4 +33,4 @@ test_suite='xpinyin.tests', package_dir={'': 'src'}, include_package_data=True, - license="MIT License") + license="BSD")