mirror of
https://github.com/RapidAI/RapidOCR.git
synced 2026-11-11 21:40:52 +08:00
Format by black
This commit is contained in:
1 parent
ad4631fdd4
commit
f4fd5cdcba
40 files changed
+908
-854
No files matched your search
+27
-20
@@ -10,14 +10,14 @@ from get_pypi_latest_version import GetPyPiLatestVersion
|
||||
|
||||
def get_readme():
|
||||
root_dir = Path(__file__).resolve().parent.parent
|
||||
readme_path = str(root_dir / 'docs' / 'doc_whl_rapidocr_ort.md')
|
||||
readme_path = str(root_dir / "docs" / "doc_whl_rapidocr_ort.md")
|
||||
print(readme_path)
|
||||
with open(readme_path, 'r', encoding='utf-8') as f:
|
||||
with open(readme_path, "r", encoding="utf-8") as f:
|
||||
readme = f.read()
|
||||
return readme
|
||||
|
||||
|
||||
MODULE_NAME = 'rapidocr_onnxruntime'
|
||||
MODULE_NAME = "rapidocr_onnxruntime"
|
||||
|
||||
obtainer = GetPyPiLatestVersion()
|
||||
latest_version = obtainer(MODULE_NAME)
|
||||
@@ -25,7 +25,7 @@ VERSION_NUM = obtainer.version_add_one(latest_version)
|
||||
|
||||
# 优先提取commit message中的语义化版本号,如无,则自动加1
|
||||
if len(sys.argv) > 2:
|
||||
match_str = ' '.join(sys.argv[2:])
|
||||
match_str = " ".join(sys.argv[2:])
|
||||
matched_versions = obtainer.extract_version(match_str)
|
||||
if matched_versions:
|
||||
VERSION_NUM = matched_versions
|
||||
@@ -37,31 +37,38 @@ setuptools.setup(
|
||||
platforms="Any",
|
||||
description="A cross platform OCR Library based on OnnxRuntime.",
|
||||
long_description=get_readme(),
|
||||
long_description_content_type='text/markdown',
|
||||
long_description_content_type="text/markdown",
|
||||
author="SWHL",
|
||||
author_email="liekkaskono@163.com",
|
||||
url="https://github.com/RapidAI/RapidOCR",
|
||||
license='Apache-2.0',
|
||||
license="Apache-2.0",
|
||||
include_package_data=True,
|
||||
install_requires=[
|
||||
"pyclipper>=1.2.1", "onnxruntime>=1.7.0", "opencv_python>=4.5.1.48",
|
||||
"numpy>=1.19.3", "six>=1.15.0", "Shapely>=1.7.1", 'PyYAML', 'Pillow'
|
||||
"pyclipper>=1.2.1",
|
||||
"onnxruntime>=1.7.0",
|
||||
"opencv_python>=4.5.1.48",
|
||||
"numpy>=1.19.3",
|
||||
"six>=1.15.0",
|
||||
"Shapely>=1.7.1",
|
||||
"PyYAML",
|
||||
"Pillow",
|
||||
],
|
||||
package_dir={'': MODULE_NAME},
|
||||
package_dir={"": MODULE_NAME},
|
||||
packages=setuptools.find_namespace_packages(where=MODULE_NAME),
|
||||
package_data={'': ['*.onnx', '*.yaml']},
|
||||
package_data={"": ["*.onnx", "*.yaml"]},
|
||||
keywords=[
|
||||
'ocr,text_detection,text_recognition,db,onnxruntime,paddleocr,openvino,rapidocr'
|
||||
"ocr,text_detection,text_recognition,db,onnxruntime,paddleocr,openvino,rapidocr"
|
||||
],
|
||||
classifiers=[
|
||||
'Programming Language :: Python :: 3.6',
|
||||
'Programming Language :: Python :: 3.7',
|
||||
'Programming Language :: Python :: 3.8',
|
||||
'Programming Language :: Python :: 3.9',
|
||||
'Programming Language :: Python :: 3.10',
|
||||
'Programming Language :: Python :: 3.11',
|
||||
"Programming Language :: Python :: 3.6",
|
||||
"Programming Language :: Python :: 3.7",
|
||||
"Programming Language :: Python :: 3.8",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
],
|
||||
python_requires='>=3.6,<3.12',
|
||||
python_requires=">=3.6,<3.12",
|
||||
entry_points={
|
||||
'console_scripts': [f'{MODULE_NAME}={MODULE_NAME}.rapid_ocr_api:main'],
|
||||
})
|
||||
"console_scripts": [f"{MODULE_NAME}={MODULE_NAME}.rapid_ocr_api:main"],
|
||||
},
|
||||
)
|
||||
Reference in new issue
Block a user