From db94ee14e18176e0b8edb365297548b38afaa6eb Mon Sep 17 00:00:00 2001 From: Hendrik Huyskens Date: Wed, 28 Aug 2024 14:56:57 +0200 Subject: [PATCH] Bump version to v2.2.0 --- .bumpversion.toml | 2 +- CHANGELOG.md | 2 +- django_comparison_dashboard/settings.py | 7 ++++--- pyproject.toml | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.bumpversion.toml b/.bumpversion.toml index 02555dd..6ecd367 100644 --- a/.bumpversion.toml +++ b/.bumpversion.toml @@ -1,5 +1,5 @@ [tool.bumpversion] -current_version = "2.1.1" +current_version = "2.2.0" parse = "(?P\\d+)\\.(?P\\d+)\\.(?P\\d+)" serialize = ["{major}.{minor}.{patch}"] search = "{current_version}" diff --git a/CHANGELOG.md b/CHANGELOG.md index 89107dc..bed0fea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project tries to adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [2.2.0] - 2024-08-28 ### Added - sankey colors from user input and/or predefined color mapping - units to sankey diff --git a/django_comparison_dashboard/settings.py b/django_comparison_dashboard/settings.py index f16611b..d2b4d65 100644 --- a/django_comparison_dashboard/settings.py +++ b/django_comparison_dashboard/settings.py @@ -3,7 +3,7 @@ import pathlib from enum import IntEnum -VERSION = "2.1.1" +VERSION = "2.2.0" USE_DUMMY_DATA = os.environ.get("USE_DUMMY_DATA", "False") == "True" SKIP_TS = os.environ.get("SKIP_TS", "False") == "True" @@ -11,6 +11,7 @@ DATAPACKAGE_PATH = pathlib.Path(__file__).parent / "datamodel" / "datapackage.json" COLOR_DICT_PATH = pathlib.Path(__file__).parent / "datamodel" / "color_dict.json" + class DataType(IntEnum): Scalar = 0 Timeseries = 1 @@ -66,7 +67,7 @@ def __str__(self): # Load the color dictionary from the JSON file if os.path.exists(COLOR_DICT_PATH): - with open(COLOR_DICT_PATH, 'r', encoding='UTF-8') as color_file: + with open(COLOR_DICT_PATH, encoding="UTF-8") as color_file: COLOR_DICT = json.load(color_file) else: - COLOR_DICT = {} \ No newline at end of file + COLOR_DICT = {} diff --git a/pyproject.toml b/pyproject.toml index 1dcd652..9a78046 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "django-comparison-dashboard" -version = "2.1.1" +version = "2.2.0" description = "Django app to compare scenarios in a dashboard" authors = ["Hendrik Huyskens "] license = "MIT"