提交 da96da3b 编写于 作者: B breezedeus

fix: add vocab files when packaging

上级 2c14298f
......@@ -33,7 +33,7 @@ doc:
package:
python setup.py sdist bdist_wheel
VERSION = 2.1.2
VERSION = 2.1.2.1
upload:
python -m twine upload dist/cnocr-$(VERSION)* --verbose
......
......@@ -17,4 +17,4 @@
# specific language governing permissions and limitations
# under the License.
__version__ = '2.1.2'
__version__ = '2.1.2.1'
......@@ -69,7 +69,17 @@ setup(
platforms=["Mac", "Linux", "Windows"],
packages=find_packages(),
include_package_data=True,
data_files=[('', ['cnocr/label_cn.txt'])],
data_files=[
(
'',
[
'cnocr/label_cn.txt',
'cnocr/ppocr/utils/ppocr_keys_v1.txt',
'cnocr/ppocr/utils/en_dict.txt',
'cnocr/ppocr/utils/chinese_cht_dict.txt',
],
)
],
entry_points=entry_points,
install_requires=required,
extras_require=extras_require,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册