Some checks failed
Build and Test / build (pull_request) Failing after 1m40s
Add mods/sdk/ with the kindred_sdk Python package providing a stable API layer for addon integration with Kindred Create platform features. Modules: - context: editing context/overlay registration wrappers - theme: YAML-driven palette system (Catppuccin Mocha) - origin: FileOrigin registration helpers - dock: deferred dock panel registration - compat: version detection utilities The SDK loads at priority 0 (before all other addons) via the existing manifest-driven loader. Theme colors are defined in a single YAML palette file instead of hardcoded Python dicts, enabling future theme support and eliminating color duplication across addons. Closes #249
22 lines
442 B
Python
22 lines
442 B
Python
"""Version detection utilities."""
|
|
|
|
import FreeCAD
|
|
|
|
|
|
def create_version():
|
|
"""Return the Kindred Create version string (e.g. ``"0.1.3"``)."""
|
|
try:
|
|
from version import VERSION
|
|
|
|
return VERSION
|
|
except ImportError:
|
|
return "0.0.0"
|
|
|
|
|
|
def freecad_version():
|
|
"""Return the FreeCAD base version as a tuple of strings.
|
|
|
|
Example: ``("1", "0", "0", "2025.01.01")``.
|
|
"""
|
|
return tuple(FreeCAD.Version())
|