Skip to content

Commit 5ab29f0

Browse files
committed
refactor: rename metadata to project-table
Signed-off-by: Henry Schreiner <[email protected]>
1 parent dc43aa6 commit 5ab29f0

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/scikit_build_core/build/__main__.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
)
1414

1515

16-
def main_metadata(_args: argparse.Namespace, /) -> None:
17-
"""Get the full metadata, including dynamic metadata."""
16+
def main_project_table(_args: argparse.Namespace, /) -> None:
17+
"""Get the full project table, including dynamic metadata."""
1818
with Path("pyproject.toml").open("rb") as f:
1919
pyproject = tomllib.load(f)
2020

@@ -65,12 +65,13 @@ def main() -> None:
6565
default="wheel",
6666
help="The build mode to get the requirements for",
6767
)
68-
metadata = subparsers.add_parser(
69-
"metadata",
70-
help="Get the full metadata, including dynamic metadata",
68+
69+
project_table = subparsers.add_parser(
70+
"project-table",
71+
help="Get the full project table, including dynamic metadata",
7172
description="Processes static and dynamic metadata without triggering the backend, only handles scikit-build-core's dynamic metadata.",
7273
)
73-
metadata.set_defaults(func=main_metadata)
74+
project_table.set_defaults(func=main_project_table)
7475

7576
args = parser.parse_args()
7677
args.func(args)

tests/test_build_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def test_requires_command(
8484
def test_metadata_command(
8585
capsys: pytest.CaptureFixture[str], monkeypatch: pytest.MonkeyPatch, tmp_path: Path
8686
) -> None:
87-
monkeypatch.setattr(sys, "argv", ["scikit_build_core.build", "metadata"])
87+
monkeypatch.setattr(sys, "argv", ["scikit_build_core.build", "project-table"])
8888
monkeypatch.setattr(shutil, "which", lambda _: None)
8989
(tmp_path / "pyproject.toml").write_text(PYPROJECT_2)
9090
(tmp_path / "version.py").write_text("version = '0.1.3'")

0 commit comments

Comments
 (0)