__init__.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Copyright (c) 2023 UltiMaker
  2. # Cura is released under the terms of the LGPLv3 or higher.
  3. from typing import Any, Dict, TYPE_CHECKING
  4. from . import VersionUpgrade54to55
  5. if TYPE_CHECKING:
  6. from UM.Application import Application
  7. upgrade = VersionUpgrade54to55.VersionUpgrade54to55()
  8. def getMetaData() -> Dict[str, Any]:
  9. return {
  10. "version_upgrade": {
  11. # From To Upgrade function
  12. ("machine_stack", 5000022): ("machine_stack", 6000022, upgrade.upgradeStack),
  13. ("extruder_train", 5000022): ("extruder_train", 6000022, upgrade.upgradeStack),
  14. },
  15. "sources": {
  16. "machine_stack": {
  17. "get_version": upgrade.getCfgVersion,
  18. "location": {"./machine_instances"}
  19. },
  20. "extruder_train": {
  21. "get_version": upgrade.getCfgVersion,
  22. "location": {"./extruders"}
  23. }
  24. }
  25. }
  26. def register(app: "Application") -> Dict[str, Any]:
  27. return {"version_upgrade": upgrade}