refactor: rename CLI command and distribution to songtrace

This commit is contained in:
2026-07-27 18:18:11 -07:00
parent 322f8eb98b
commit 8a87534c5d
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -16,4 +16,4 @@ ENV KARAOKE_MAKER_CONFIG=/config/config.toml \
XDG_CACHE_HOME=/data/models/cache
EXPOSE 8000
CMD ["karaoke-maker", "serve"]
CMD ["songtrace", "serve"]
+1 -1
View File
@@ -1,5 +1,5 @@
services:
karaoke-maker:
songtrace:
build: .
ports:
- "8000:8000"
+2 -2
View File
@@ -1,5 +1,5 @@
[project]
name = "karaoke-maker"
name = "songtrace"
version = "0.1.0"
description = "Generate UltraStar/Melody Mania karaoke songs from a video and reference lyrics"
requires-python = ">=3.11"
@@ -26,7 +26,7 @@ dependencies = [
dev = ["pytest", "playwright"]
[project.scripts]
karaoke-maker = "songtrace.cli:main"
songtrace = "songtrace.cli:main"
[build-system]
requires = ["setuptools>=68"]
+2 -2
View File
@@ -16,7 +16,7 @@ def _positive_float(value: str) -> float:
def build_parser() -> argparse.ArgumentParser:
parser = argparse.ArgumentParser(prog="karaoke-maker")
parser = argparse.ArgumentParser(prog="songtrace")
parser.add_argument("--version", action="store_true")
sub = parser.add_subparsers(dest="command")
@@ -72,7 +72,7 @@ def _cmd_make(args) -> int:
def main(argv: list[str] | None = None) -> int:
args = build_parser().parse_args(argv)
if args.version:
print(f"karaoke-maker {version('karaoke-maker')}")
print(f"songtrace {version('songtrace')}")
return 0
if args.command == "make":
return _cmd_make(args)
+1 -1
View File
@@ -2,4 +2,4 @@ from songtrace.cli import main
def test_version(capsys):
assert main(["--version"]) == 0
assert "karaoke-maker" in capsys.readouterr().out
assert "songtrace" in capsys.readouterr().out