diff --git a/.gitignore b/.gitignore index 4b77414..e3521d7 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ build dist *.egg-info +.mypy_cache diff --git a/LICENSE b/LICENSE index 78e28f1..20ff9ca 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,3 @@ -1. Source code is distributed under MIT license - MIT License Copyright (c) 2020 sgalal @@ -9,5 +7,3 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of 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. - -2. Dictionary data follows the original license diff --git a/README.md b/README.md index 7d51e71..fd92a9f 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,6 @@ Helper: # License -Source code is distributed under MIT license. +This repository is distributed under MIT license. -Dictionary data follows the original license. +Dictionary data is taken from [rime/rime-cantonese](https://github.com/rime/rime-cantonese), which is licensed under a Creative Commons Attribution 4.0 International License. diff --git a/preprocess.py b/preprocess.py index b5889fa..7514f14 100644 --- a/preprocess.py +++ b/preprocess.py @@ -7,7 +7,7 @@ def download_file_if_not_exist(): '''Download the dictionary file to the current folder if not exists.''' - DICT_URL = 'https://raw.githubusercontent.com/rime/rime-cantonese/70b9e9eb4da84c3371fe2cd77452c37ca0cb2ef0/jyut6ping3.dict.yaml' + DICT_URL = 'https://raw.githubusercontent.com/rime/rime-cantonese/bae9900305b4852954c3a8f65b2e69a3280cdd01/jyut6ping3.dict.yaml' if not path.exists(path.join(here, 'jyut6ping3.dict.yaml')): request.urlretrieve(DICT_URL, path.join(here, 'jyut6ping3.dict.yaml')) diff --git a/setup.py b/setup.py index 6459a09..f84937a 100644 --- a/setup.py +++ b/setup.py @@ -20,10 +20,10 @@ description='粵語拼音自動標註工具 | Cantonese Pronunciation Automatic Labeling Tool', long_description=long_description, long_description_content_type='text/markdown', - url='https://github.com/sgalal/to-jyutping', + url='https://github.com/sgalal/ToJyutping', author='sgalal', - author_email='ayaka@mail.shn.hk', - license='Other', + author_email='sgalal.me@outlook.com', + license='MIT', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', @@ -32,7 +32,7 @@ 'Natural Language :: Cantonese', 'Natural Language :: Chinese (Simplified)', 'Natural Language :: Chinese (Traditional)', - 'License :: Other/Proprietary License', + 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', @@ -51,8 +51,8 @@ install_requires=['pygtrie', 'opencc!=1.1.1'], entry_points={}, project_urls={ - 'Bug Reports': 'https://github.com/sgalal/to-jyutping/issues', - 'Source': 'https://github.com/sgalal/to-jyutping', + 'Bug Reports': 'https://github.com/sgalal/ToJyutping/issues', + 'Source': 'https://github.com/sgalal/ToJyutping', }, zip_safe=False ) diff --git a/src/ToJyutping/version.py b/src/ToJyutping/version.py index a4619bc..514c7db 100644 --- a/src/ToJyutping/version.py +++ b/src/ToJyutping/version.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -__version__ = '0.1.3' +__version__ = '0.1.4'