From 8a546bb6ef45f124188363227e11e5e9e291a866 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 29 Mar 2022 10:34:21 +0200 Subject: [PATCH] Rename VersionUpgrade49to50 to VersionUpgrade413to50 It's going to upgrade from 4.13 to 5.0. We will not support an upgrade path from the alpha/preview-betas to the stable release. Contributes to issue CURA-8466. --- .../VersionUpgrade413to50.py} | 4 ++-- .../__init__.py | 6 +++--- plugins/VersionUpgrade/VersionUpgrade413to50/plugin.json | 8 ++++++++ plugins/VersionUpgrade/VersionUpgrade49to50/plugin.json | 8 -------- 4 files changed, 13 insertions(+), 13 deletions(-) rename plugins/VersionUpgrade/{VersionUpgrade49to50/VersionUpgrade49to50.py => VersionUpgrade413to50/VersionUpgrade413to50.py} (98%) rename plugins/VersionUpgrade/{VersionUpgrade49to50 => VersionUpgrade413to50}/__init__.py (95%) create mode 100644 plugins/VersionUpgrade/VersionUpgrade413to50/plugin.json delete mode 100644 plugins/VersionUpgrade/VersionUpgrade49to50/plugin.json diff --git a/plugins/VersionUpgrade/VersionUpgrade49to50/VersionUpgrade49to50.py b/plugins/VersionUpgrade/VersionUpgrade413to50/VersionUpgrade413to50.py similarity index 98% rename from plugins/VersionUpgrade/VersionUpgrade49to50/VersionUpgrade49to50.py rename to plugins/VersionUpgrade/VersionUpgrade413to50/VersionUpgrade413to50.py index a3fccb68ea..3278f6813f 100644 --- a/plugins/VersionUpgrade/VersionUpgrade49to50/VersionUpgrade49to50.py +++ b/plugins/VersionUpgrade/VersionUpgrade413to50/VersionUpgrade413to50.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Ultimaker B.V. +# Copyright (c) 2022 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. import configparser @@ -18,7 +18,7 @@ _removed_settings = { } -class VersionUpgrade49to50(VersionUpgrade): +class VersionUpgrade413to50(VersionUpgrade): def upgradePreferences(self, serialized: str, filename: str) -> Tuple[List[str], List[str]]: """ Upgrades preferences to remove from the visibility list the settings that were removed in this version. diff --git a/plugins/VersionUpgrade/VersionUpgrade49to50/__init__.py b/plugins/VersionUpgrade/VersionUpgrade413to50/__init__.py similarity index 95% rename from plugins/VersionUpgrade/VersionUpgrade49to50/__init__.py rename to plugins/VersionUpgrade/VersionUpgrade413to50/__init__.py index 3bf4bea4e1..cf58afd26a 100644 --- a/plugins/VersionUpgrade/VersionUpgrade49to50/__init__.py +++ b/plugins/VersionUpgrade/VersionUpgrade413to50/__init__.py @@ -1,14 +1,14 @@ -# Copyright (c) 2020 Ultimaker B.V. +# Copyright (c) 2022 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. from typing import Any, Dict, TYPE_CHECKING -from . import VersionUpgrade49to50 +from . import VersionUpgrade413to50 if TYPE_CHECKING: from UM.Application import Application -upgrade = VersionUpgrade49to50.VersionUpgrade49to50() +upgrade = VersionUpgrade413to50.VersionUpgrade413to50() def getMetaData() -> Dict[str, Any]: return { # Since there is no VersionUpgrade from 48 to 49 yet, upgrade the 48 profiles to 50. diff --git a/plugins/VersionUpgrade/VersionUpgrade413to50/plugin.json b/plugins/VersionUpgrade/VersionUpgrade413to50/plugin.json new file mode 100644 index 0000000000..df3c53b5df --- /dev/null +++ b/plugins/VersionUpgrade/VersionUpgrade413to50/plugin.json @@ -0,0 +1,8 @@ +{ + "name": "Version Upgrade 4.13 to 5.0", + "author": "Ultimaker B.V.", + "version": "1.0.0", + "description": "Upgrades configurations from Cura 4.13 to Cura 5.0.", + "api": "7.9.0", + "i18n-catalog": "cura" +} diff --git a/plugins/VersionUpgrade/VersionUpgrade49to50/plugin.json b/plugins/VersionUpgrade/VersionUpgrade49to50/plugin.json deleted file mode 100644 index bedc7d46e8..0000000000 --- a/plugins/VersionUpgrade/VersionUpgrade49to50/plugin.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "name": "Version Upgrade 4.9 to 5.0", - "author": "Ultimaker B.V.", - "version": "1.0.0", - "description": "Upgrades configurations from Cura 4.9 to Cura 5.0.", - "api": "7.4.0", - "i18n-catalog": "cura" -}