-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- replace open() calls with io.open() for Python 3 compatibility, fix `UnicodeDecodeError` - change \u730E 猎 to LIE4 - improve readme
- Loading branch information
Showing
3 changed files
with
30 additions
and
4 deletions.
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
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[wheel] | ||
universal = 1 |
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,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") |