Browse Source

update:
add entry points can exec in shell

赵小蒙 1 year ago
parent
commit
756792a3f6
1 changed files with 5 additions and 1 deletions
  1. 5 1
      setup.py

+ 5 - 1
setup.py

@@ -29,7 +29,11 @@ if __name__ == '__main__':
             "cpu": ["paddlepaddle"],
         },
         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,  # 是否包含非代码文件,如数据文件、配置文件等
         zip_safe=False,  # 是否使用 zip 文件格式打包,一般设为 False
     )