diff --git a/build.py b/build.py index da2be86..7c07e11 100644 --- a/build.py +++ b/build.py @@ -8,7 +8,7 @@ from pathlib import Path def main(): project_dir = Path(__file__).parent - main_file = project_dir / "sft_get.py" + main_file = project_dir / "tensors.py" output_dir = project_dir / "dist" output_dir.mkdir(exist_ok=True) @@ -20,7 +20,7 @@ def main(): "--standalone", "--onefile", f"--output-dir={output_dir}", - "--output-filename=sft-get", + "--output-filename=sft", "--assume-yes-for-downloads", "--remove-output", # Include required packages @@ -32,7 +32,7 @@ def main(): print(f"Building with command:\n{' '.join(cmd)}\n") subprocess.run(cmd, check=True) - print(f"\nBuild complete! Binary at: {output_dir / 'sft-get'}") + print(f"\nBuild complete! Binary at: {output_dir / 'sft'}") if __name__ == "__main__": diff --git a/check.py b/check.py index aca30d4..af3b559 100644 --- a/check.py +++ b/check.py @@ -28,7 +28,7 @@ def main() -> int: ["uv", "run", "ruff", "check", ".", *(["--fix"] if fix_mode else [])], "Ruff Lint", ), - (["uv", "run", "mypy", "sft_get.py"], "Mypy"), + (["uv", "run", "mypy", "tensors.py"], "Mypy"), ] # Fix the format check command diff --git a/pyproject.toml b/pyproject.toml index f1b1514..28d4684 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "sft-get" +name = "tensors" version = "0.1.0" description = "Read safetensor metadata and fetch CivitAI model information" readme = "README.md" @@ -11,14 +11,14 @@ dependencies = [ ] [project.scripts] -sft-get = "sft_get:main" +sft = "tensors:main" [build-system] requires = ["hatchling"] build-backend = "hatchling.build" [tool.hatch.build.targets.wheel] -packages = ["sft_get.py"] +packages = ["tensors.py"] [dependency-groups] dev = [ @@ -53,7 +53,7 @@ ignore = [ ] [tool.ruff.lint.isort] -known-first-party = ["sft_get"] +known-first-party = ["tensors"] [tool.mypy] python_version = "3.12" diff --git a/sft_get.py b/tensors.py similarity index 100% rename from sft_get.py rename to tensors.py diff --git a/uv.lock b/uv.lock index 016a083..d47e395 100644 --- a/uv.lock +++ b/uv.lock @@ -284,7 +284,7 @@ wheels = [ ] [[package]] -name = "sft-get" +name = "tensors" version = "0.1.0" source = { editable = "." } dependencies = [