Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion comfy_kitchen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
# Import registry and exceptions
from .registry import registry

__version__ = "0.1.0"
try:
from importlib.metadata import version, PackageNotFoundError

__version__ = version("comfy-kitchen")
except PackageNotFoundError:
__version__ = "0.0.0" # Fallback for editable/dev installs

__all__ = [
# Exceptions
Expand Down
2 changes: 0 additions & 2 deletions comfy_kitchen/backends/cuda/dlpack_bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,6 @@ NB_MODULE(_C, m) {
// Feature availability flag (computed at module load time)
m.attr("HAS_CUBLASLT") = comfy::CublasLtRuntime::instance().is_available();

// Add version info
m.attr("__version__") = "0.1.0";
m.attr("__nanobind__") = true;
m.attr("__stable_abi__") = true;
}