Skip to content

Commit ddb0e46

Browse files
authored
Remove fabric legacy CLI
1 parent d902516 commit ddb0e46

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

src/lightning/__setup__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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": [],

src/lightning/fabric/cli.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -50,25 +50,6 @@ def _get_supported_strategies() -> list[str]:
5050
if _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

0 commit comments

Comments
 (0)