Commit 5c963168 authored by myhloli's avatar myhloli
Browse files

feat(setup.py): restructure extras_require options for clarity

Refactor the `extras_require` section in `setup.py` to simplify and clarify
the available options. Consolidate CPU and GPU requirements into single
"lite" and "full" options to streamline installation for users.
parent 27e98a81
...@@ -32,9 +32,8 @@ if __name__ == '__main__': ...@@ -32,9 +32,8 @@ if __name__ == '__main__':
}, },
install_requires=parse_requirements('requirements.txt'), # 项目依赖的第三方库 install_requires=parse_requirements('requirements.txt'), # 项目依赖的第三方库
extras_require={ extras_require={
"gpu": ["paddleocr==2.7.3", "paddlepaddle-gpu"], "lite": ["paddleocr==2.7.3", "paddlepaddle", "paddlepaddle-gpu"],
"cpu": ["paddleocr==2.7.3", "paddlepaddle"], "full": ["unimernet", "matplotlib", "ultralytics", "paddleocr==2.7.3", "paddlepaddle", "paddlepaddle-gpu"],
"full-cpu": ["unimernet", "matplotlib", "ultralytics", "paddleocr==2.7.3", "paddlepaddle"],
}, },
description="A practical tool for converting PDF to Markdown", # 简短描述 description="A practical tool for converting PDF to Markdown", # 简短描述
long_description=long_description, # 详细描述 long_description=long_description, # 详细描述
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment