chore: bump version to 0.1.5

This commit is contained in:
Adam Ladachowski
2026-02-03 23:58:09 +01:00
parent 38bc0417b4
commit 9c0a0766ac
3 changed files with 20 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[project] [project]
name = "tensors" name = "tensors"
version = "0.1.4" version = "0.1.5"
description = "Read safetensor metadata and fetch CivitAI model information" description = "Read safetensor metadata and fetch CivitAI model information"
readme = "README.md" readme = "README.md"
requires-python = ">=3.12" requires-python = ">=3.12"
+18
View File
@@ -4,6 +4,7 @@ from __future__ import annotations
import json import json
import sys import sys
from importlib.metadata import version
from pathlib import Path from pathlib import Path
from typing import Annotated, Any from typing import Annotated, Any
@@ -41,11 +42,28 @@ from tensors.safetensor import compute_sha256, get_base_name, read_safetensor_me
# Key masking threshold # Key masking threshold
MIN_KEY_LENGTH_FOR_MASKING = 8 MIN_KEY_LENGTH_FOR_MASKING = 8
def _version_callback(value: bool) -> None:
if value:
print(f"tsr {version('tensors')}")
raise typer.Exit
app = typer.Typer( app = typer.Typer(
name="tsr", name="tsr",
help="Read safetensor metadata, search and download CivitAI models.", help="Read safetensor metadata, search and download CivitAI models.",
no_args_is_help=True, no_args_is_help=True,
) )
@app.callback()
def _main(
_version: Annotated[
bool,
typer.Option("--version", "-V", callback=_version_callback, is_eager=True, help="Show version and exit."),
] = False,
) -> None:
"""Read safetensor metadata, search and download CivitAI models."""
console = Console() console = Console()
Generated
+1 -1
View File
@@ -574,7 +574,7 @@ wheels = [
[[package]] [[package]]
name = "tensors" name = "tensors"
version = "0.1.3" version = "0.1.4"
source = { editable = "." } source = { editable = "." }
dependencies = [ dependencies = [
{ name = "httpx" }, { name = "httpx" },