Skip to content

Commit 2dba291

Browse files
committed
Feat: Updated used version
1 parent 76b11e8 commit 2dba291

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

cesnet_tszoo/configs/config_updater.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ def try_get_updated_config(self) -> DatasetConfig:
6060
self.config_to_update.version = version.VERSION_2_0_1
6161
self.logger.debug("Updating config version to %s used cesnet-tszoo package version.", version.VERSION_2_0_1)
6262

63+
if Version(self.config_to_update.version) < Version(version.VERSION_2_1_0):
64+
self.logger.warning("Config version is lower than '%s', updating config to match it.", version.VERSION_2_1_0)
65+
66+
self.config_to_update.export_update_needed = True
67+
self.config_to_update.version = version.VERSION_2_1_0
68+
self.logger.debug("Updating config version to %s used cesnet-tszoo package version.", version.VERSION_2_1_0)
69+
6370
self.logger.debug("Updating config version to %s used cesnet-tszoo package version.", version.current_version)
6471
self.config_to_update.version = version.current_version
6572

cesnet_tszoo/version.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
current_version = importlib.metadata.version("cesnet-tszoo")
44

5-
VERSION_2_0_0 = "2.0.0"
5+
VERSION_2_1_0 = "2.1.0"
66
VERSION_2_0_1 = "2.0.1"
7+
VERSION_2_0_0 = "2.0.0"
78
VERSION_0_1_3 = "0.1.3"
89
DEFAULT_VERSION = "0.1.2"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "cesnet_tszoo"
7-
version = "2.0.1"
7+
version = "2.1.0"
88
authors = [
99
{ name = "Milan Kureš", email = "[email protected]" },
1010
{ name = "Josef Koumar", email = "[email protected]" },

0 commit comments

Comments
 (0)