diff --git a/third_party/zhon/.travis.yml b/third_party/zhon/.travis.yml index d426bf49b..f0524394a 100644 --- a/third_party/zhon/.travis.yml +++ b/third_party/zhon/.travis.yml @@ -5,12 +5,6 @@ script: tox matrix: include: - - python: 2.7 - env: TOXENV=py27 - - python: 3.4 - env: TOXENV=py34 - - python: 3.5 - env: TOXENV=py35 - python: 3.6 env: TOXENV=py36 - python: 3.6 diff --git a/third_party/zhon/AUTHORS.rst b/third_party/zhon/AUTHORS.rst deleted file mode 100644 index 08a4360ed..000000000 --- a/third_party/zhon/AUTHORS.rst +++ /dev/null @@ -1,14 +0,0 @@ -======= -Credits -======= - -Author and Maintainer ---------------------- - -* Thomas Roten - -Contributors ------------- - -None yet. Why not be the first? - diff --git a/third_party/zhon/CHANGES.rst b/third_party/zhon/CHANGES.rst deleted file mode 100644 index 75bb91302..000000000 --- a/third_party/zhon/CHANGES.rst +++ /dev/null @@ -1,88 +0,0 @@ -Changes -======= - -v0.1.0 (2013-05-05) -------------------- - -* Initial release - -v0.1.1 (2013-05-05) -------------------- - -* Adds zhon.cedict package to setup.py - -v0.2.0 (2013-05-07) -------------------- - -* Allows for mapping between simplified and traditional. -* Adds logging to build_string(). -* Adds constants for numbered Pinyin and accented Pinyin. - -v0.2.1 (2013-05-07) -------------------- - -* Fixes typo in README.rst. - -v.1.0.0 (2014-01-25) --------------------- - -* Complete rewrite that refactors code, renames constants, and improves Pinyin - support. - -v.1.1.0 (2014-01-28) --------------------- - -* Adds ``zhon.pinyin.punctuation`` constant. -* Adds ``zhon.pinyin.accented_syllable``, ``zhon.pinyin.accented_word``, and - ``zhon.pinyin.accented_sentence`` constants. -* Adds ``zhon.pinyin.numbered_syllable``, ``zhon.pinyin.numbered_word``, and - ``zhon.pinyin.numbered_sentence`` constants. -* Fixes some README.rst typos. -* Clarifies information regarding Traditional and Simplified character - constants in README.rst. -* Adds constant short names to README.rst. - -v.1.1.1 (2014-01-29) --------------------- - -* Adds documentation. -* Adds ``zhon.cedict.all`` constant. -* Removes duplicate code ranges from ``zhon.hanzi.characters``. -* Makes ``zhon.hanzi.non_stops`` a string containing all non-stops instead of - a string containing code ranges. -* Removes duplicate letters in ``zhon.pinyin.consonants``. -* Refactors Pinyin vowels/consonant code. -* Removes the Latin alpha from ``zhon.pinyin.vowels``. Fixes #16. -* Adds ``cjk_ideographs`` alias for ``zhon.hanzi.characters``. -* Fixes various typos. -* Removes numbers from Pinyin word constants. Fixes #15. -* Adds lowercase and uppercase constants to ``zhon.pinyin``. -* Fixes a bug with ``zhon.pinyin.sentence``. -* Adds ``sent`` alias for ``zhon.pinyin.sentence``. - -v.1.1.2 (2014-01-31) --------------------- - -* Fixes bug with ``zhon.cedict.all``. - -v.1.1.3 (2014-02-12) --------------------- - -* Adds Ideographic number zero to ``zhon.hanzi.characters``. Fixes #17. -* Fixes r-suffix bug. Fixes #18. - -v.1.1.4 (2015-01-25) --------------------- - -* Removes duplicate module declarations in documentation. -* Moves tests inside zhon package. -* Adds travis config file. -* Adds Python 3.4 tests to travis and tox. -* Fixes flake8 warnings. -* Adds distutil fallback import statment to setup.py. -* Adds missing hanzi punctuation. Fixes #19. - -v.1.1.5 (2016-05-23) --------------------- - -* Add missing Zhuyin characters. Fixes #23. diff --git a/third_party/zhon/CONTRIBUTING.rst b/third_party/zhon/CONTRIBUTING.rst deleted file mode 100644 index e6a50bdf4..000000000 --- a/third_party/zhon/CONTRIBUTING.rst +++ /dev/null @@ -1,107 +0,0 @@ -============ -Contributing -============ - -Contributions are welcome, and they are greatly appreciated! Every -little bit helps, and credit will always be given. - -You can contribute in many ways: - -Types of Contributions ----------------------- - -Report Bugs -~~~~~~~~~~~ - -Report bugs at https://github.com/tsroten/zhon/issues. - -If you are reporting a bug, please include: - -* Your operating system name and version. -* Any details about your local setup that might be helpful in troubleshooting. -* Detailed steps to reproduce the bug. - -Fix Bugs -~~~~~~~~ - -Look through the GitHub issues for bugs. Anything tagged with "bug" -is open to whoever wants to implement it. - -Implement Features -~~~~~~~~~~~~~~~~~~ - -Look through the GitHub issues for features. Anything tagged with "feature" -is open to whoever wants to implement it. - -Write Documentation -~~~~~~~~~~~~~~~~~~~ - -Zhon could always use more documentation, whether as part of the -official Zhon docs, in docstrings, or even on the web in blog posts, -articles, and such. - -Submit Feedback -~~~~~~~~~~~~~~~ - -The best way to send feedback is to file an issue at https://github.com/tsroten/zhon/issues. - -If you are proposing a feature: - -* Explain in detail how it would work. -* Keep the scope as narrow as possible, to make it easier to implement. -* Remember that this is a volunteer-driven project, and that contributions - are welcome :) - -Get Started! ------------- - -Ready to contribute? Here's how to set up `zhon` for local development. - -1. Fork the `zhon` repo on GitHub. -2. Clone your fork locally:: - - $ git clone git@github.com:your_name_here/zhon.git - -3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development:: - - $ mkvirtualenv zhon - $ cd zhon/ - $ python setup.py develop - -4. Create a branch for local development:: - - $ git checkout -b name-of-your-bugfix-or-feature - - Now you can make your changes locally. - -5. When you're done making changes, check that your changes pass flake8 and the tests, including testing other Python versions with tox:: - - $ flake8 zhon - $ python setup.py test - $ tox - - To get flake8 and tox, just pip install them into your virtualenv. - - You can ignore the flake8 errors regarding `zhon.cedict` files. Rather than include hundreds of newline characters in each file, we are ignoring those errors. - -6. Commit your changes and push your branch to GitHub:: - - $ git add . - $ git commit -m "Your detailed description of your changes." - $ git push origin name-of-your-bugfix-or-feature - -7. Submit a pull request through the GitHub website. - -Pull Request Guidelines ------------------------ - -Before you submit a pull request, check that it meets these guidelines: - -1. The pull request should include tests. -2. If the pull request adds functionality, the docs should be updated. Put - your new functionality into a function with a docstring, and add the - feature to the list in README.rst. -3. The pull request should work for Python 2.7, 3.3, and 3.4. Check - https://travis-ci.org/tsroten/zhon/pull_requests - and make sure that the tests pass for all supported Python versions. -4. If you want to receive credit, add your name to `AUTHORS.rst`. diff --git a/third_party/zhon/LICENSE.txt b/third_party/zhon/LICENSE.txt deleted file mode 100644 index 9c7b63736..000000000 --- a/third_party/zhon/LICENSE.txt +++ /dev/null @@ -1,7 +0,0 @@ -Copyright (c) 2013-2014 Thomas Roten - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/third_party/zhon/README.rst b/third_party/zhon/README.rst index fad7c313d..55b8a6926 100644 --- a/third_party/zhon/README.rst +++ b/third_party/zhon/README.rst @@ -61,4 +61,3 @@ Getting Started * `Install Zhon `_ * Read `Zhon's introduction `_ * Learn from the `API documentation `_ -* `Contribute `_ documentation, code, or feedback diff --git a/third_party/zhon/setup.py b/third_party/zhon/setup.py index fd495a490..23e39b79b 100644 --- a/third_party/zhon/setup.py +++ b/third_party/zhon/setup.py @@ -37,9 +37,6 @@ setup( 'Development Status :: 5 - Production/Stable', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Text Processing :: Linguistic',