Update version references for future removal and conversion functions in colorspace and conversion modules.

- Update version references to 0.4.5 for future removal in colorspace module.
- Update function name and version reference to 0.4.4 for imageio config conversion in the conversion module.
This commit is contained in:
Jakub Jezek 2024-07-31 13:57:47 +02:00
parent d7a2c57fd8
commit 9375b8bee2
No known key found for this signature in database
GPG key ID: 06DBD609ADF27FD9
2 changed files with 5 additions and 5 deletions

View file

@ -795,7 +795,7 @@ def _get_global_config_data(
folder_path = folder_info["path"]
# Backward compatibility for old projects
# TODO remove in future 0.4.4 onwards
# TODO remove in future 0.4.5 onwards
product_name = profile.get("product_name")
# TODO: this should be required after backward compatibility is removed
fallback_data = None
@ -828,7 +828,7 @@ def _get_global_config_data(
)
}
if not product_entities_by_name:
# TODO: make this required in future 0.4.4 onwards
# TODO: make this required in future 0.4.5 onwards
if fallback_data:
# in case no product was found we need to use fallback
fallback_type = fallback_data["type"]

View file

@ -4,8 +4,8 @@ from typing import Any
from .publish_plugins import DEFAULT_PUBLISH_VALUES
def _convert_imageio_configs_0_4_3(overrides):
"""Imageio config settings did change to profiles since 0.4.3."""
def _convert_imageio_configs_0_4_4(overrides):
"""Imageio config settings did change to profiles since 0.4.4."""
imageio_overrides = overrides.get("imageio") or {}
# make sure settings are already converted to profiles
@ -119,6 +119,6 @@ def convert_settings_overrides(
overrides: dict[str, Any],
) -> dict[str, Any]:
_convert_imageio_configs_0_3_1(overrides)
_convert_imageio_configs_0_4_3(overrides)
_convert_imageio_configs_0_4_4(overrides)
_conver_publish_plugins(overrides)
return overrides