Commit 756792a3 authored by 赵小蒙's avatar 赵小蒙

update:

add entry points can exec in shell
parent a99689d4
...@@ -29,7 +29,11 @@ if __name__ == '__main__': ...@@ -29,7 +29,11 @@ if __name__ == '__main__':
"cpu": ["paddlepaddle"], "cpu": ["paddlepaddle"],
}, },
python_requires=">=3.9", # 项目依赖的 Python 版本 python_requires=">=3.9", # 项目依赖的 Python 版本
# entry_points={"console_scripts": ["my_command=my_project.main:run"]}, # 项目提供的可执行命令 entry_points={
"console_scripts": [
"magic-pdf = magic_pdf.cli.magicpdf:cli"
],
}, # 项目提供的可执行命令
include_package_data=True, # 是否包含非代码文件,如数据文件、配置文件等 include_package_data=True, # 是否包含非代码文件,如数据文件、配置文件等
zip_safe=False, # 是否使用 zip 文件格式打包,一般设为 False zip_safe=False, # 是否使用 zip 文件格式打包,一般设为 False
) )
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