mirror of
https://github.com/modelscope/modelscope.git
synced 2026-08-29 10:08:40 +02:00
Delegate CLI script ownership to modelscope-hub (#1780)
This commit is contained in:
@@ -18,14 +18,21 @@ classifiers = [
|
||||
'Programming Language :: Python :: 3.9',
|
||||
'Programming Language :: Python :: 3.10',
|
||||
'Programming Language :: Python :: 3.11',
|
||||
'Programming Language :: Python :: 3.12',
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
Homepage = "https://github.com/modelscope/modelscope"
|
||||
|
||||
[project.scripts]
|
||||
modelscope = "modelscope.cli.cli:run_cmd"
|
||||
ms = "modelscope.cli.cli:run_cmd"
|
||||
# No [project.scripts] here on purpose: the `modelscope`, `ms`, `modelscope-hub`
|
||||
# and `ms-hub` console scripts are all owned by the `modelscope-hub`
|
||||
# distribution that this package depends on. When two distributions declare the
|
||||
# same script name, upgrading or removing either one can overwrite or delete the
|
||||
# other's file and leave the user with no CLI at all; OS packagers such as
|
||||
# FreeBSD pkg reject two ports owning one path outright. This package
|
||||
# contributes its own commands through the plugin group below instead.
|
||||
#
|
||||
# `python -m modelscope.cli.cli` remains available as a direct entry point.
|
||||
|
||||
[project.entry-points."modelscope_hub.cli_plugins"]
|
||||
pipeline = "modelscope.cli.pipeline:PipelineCMD"
|
||||
|
||||
Reference in New Issue
Block a user