Skip to content

Commit

Permalink
Prepare 0.5.4 release
Browse files Browse the repository at this point in the history
- replace open() calls with io.open() for Python 3 compatibility,
  fix `UnicodeDecodeError`
- change \u730E 猎 to LIE4
- improve readme
  • Loading branch information
lxneng committed Dec 14, 2015
1 parent 0dd9756 commit 2900899
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
9 changes: 9 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------------------

Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[wheel]
universal = 1
23 changes: 19 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,36 @@
# -*- 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="[email protected]",
url="https://github.com/lxneng/xpinyin",
packages=find_packages('src'),
test_suite='xpinyin.tests',
package_dir={'': 'src'},
include_package_data=True,
license="MIT License")
license="BSD")

0 comments on commit 2900899

Please sign in to comment.