File tree Expand file tree Collapse file tree 2 files changed +0
-20
lines changed
Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,6 @@ def _setup_args() -> dict[str, Any]:
9898 "entry_points" : {
9999 "console_scripts" : [
100100 "fabric = lightning.fabric.cli:_main" ,
101- "lightning = lightning.fabric.cli:_legacy_main" ,
102101 ],
103102 },
104103 "setup_requires" : [],
Original file line number Diff line number Diff line change @@ -50,25 +50,6 @@ def _get_supported_strategies() -> list[str]:
5050if _CLICK_AVAILABLE :
5151 import click
5252
53- def _legacy_main () -> None :
54- """Legacy CLI handler for fabric.
55-
56- Raises deprecation warning and runs through fabric cli if necessary, else runs the entrypoint directly
57-
58- """
59- hparams = sys .argv [1 :]
60- if len (hparams ) >= 2 and hparams [0 ] == "run" and hparams [1 ] == "model" :
61- print (
62- "`lightning run model` is deprecated and will be removed in future versions."
63- " Please call `fabric run` instead."
64- )
65- _main ()
66- return
67-
68- if _LIGHTNING_SDK_AVAILABLE :
69- subprocess .run ([sys .executable , "-m" , "lightning_sdk.cli.entrypoint" ] + hparams )
70- return
71-
7253 @click .group ()
7354 def _main () -> None :
7455 pass
You can’t perform that action at this time.
0 commit comments