From 0ee55a9db5b4423d477d679f146c7eaa8a8121f2 Mon Sep 17 00:00:00 2001 From: Adam Ladachowski Date: Mon, 26 Jan 2026 09:45:57 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AC=20Commit=20message:=20Update=20202?= =?UTF-8?q?6-01-26=2009:45:57,=205=20files,=2018=20lines?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 📁 Files changed: 5 📝 Lines changed: 18 • build.py • check.py • pyproject.toml • tensors.py • uv.lock --- build.py | 6 +++--- check.py | 2 +- pyproject.toml | 8 ++++---- sft_get.py => tensors.py | 0 uv.lock | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) rename sft_get.py => tensors.py (100%) 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 = [