From cce34a8820c4fc10d5ab47e83588001adcfb2fbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E5=85=83=E5=87=AF?= Date: Fri, 27 Nov 2020 18:21:42 +0800 Subject: [PATCH 1/3] update python version requirement --- minlp-tokenizer/setup.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/minlp-tokenizer/setup.py b/minlp-tokenizer/setup.py index 28c48d81..663f6bd0 100644 --- a/minlp-tokenizer/setup.py +++ b/minlp-tokenizer/setup.py @@ -24,15 +24,15 @@ installed_packages = pkg_resources.working_set tensorflow_pkgs = [i.key for i in installed_packages if 'tensorflow' in i.key] if 'tensorflow-gpu' in tensorflow_pkgs: - install_requires.append('tensorflow-gpu>=1.15,<2') + install_requires.append('tensorflow-gpu>=1.14') else: - install_requires.append('tensorflow>=1.15,<2') + install_requires.append('tensorflow>=1.14') except ImportError: - install_requires.append('tensorflow>=1.15,<2') + install_requires.append('tensorflow>=1.14') setup( name='minlp-tokenizer', - version='3.2.2', + version='3.2.3', description='MiNLP-Tokenizer中文分词工具', author='Yuankai Guo, Liang Shi, Yupeng Chen', author_email='guoyuankai@xiaomi.com, shiliang1@xiaomi.com', @@ -40,6 +40,7 @@ long_description_content_type='text/markdown', url='https://github.com/XiaoMi/MiNLP', license='Apache 2.0', + python_requires='>=3.5, <=3.8', packages=['minlptokenizer'], package_dir={'minlptokenizer': 'minlptokenizer'}, package_data={'minlptokenizer': ['model/zh/*', 'vocab/*', 'lexicon/*', 'trans/*']}, From ea0b68e1f30223f544e11583c3b7e97f14f5e682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E5=85=83=E5=87=AF?= Date: Fri, 27 Nov 2020 18:36:23 +0800 Subject: [PATCH 2/3] fix requirements in readme --- minlp-tokenizer/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minlp-tokenizer/README.md b/minlp-tokenizer/README.md index fca3a410..7f32ad43 100644 --- a/minlp-tokenizer/README.md +++ b/minlp-tokenizer/README.md @@ -17,7 +17,7 @@ pip全自动安装: ``` pip install minlp-tokenizer ``` -适用环境:Python 3.5~3.7,TensorFlow>=1.15,<2 +适用环境:Python 3.5~3.8,TensorFlow>=1.14 ## 3. 使用API From 8ee015469d3ee4a96cb385241c9a2a5a20b0d875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E5=85=83=E5=87=AF?= Date: Fri, 27 Nov 2020 18:50:44 +0800 Subject: [PATCH 3/3] add python3.8 requirements --- minlp-tokenizer/setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/minlp-tokenizer/setup.py b/minlp-tokenizer/setup.py index 663f6bd0..be7c2ba6 100644 --- a/minlp-tokenizer/setup.py +++ b/minlp-tokenizer/setup.py @@ -52,6 +52,7 @@ 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', 'Operating System :: OS Independent', ] )