From 5eb664debbe03581eff2a4400f259924acfbf6c1 Mon Sep 17 00:00:00 2001 From: Michal Plichta Date: Sun, 26 May 2024 18:46:32 +0200 Subject: [PATCH] increase version to 3.5.1 --- README.md | 2 +- dcs_py.py | 2 +- dcspy/__init__.py | 2 +- dcspy/config.yaml | 2 +- dcspy/migration.py | 4 ++-- dcspy/qt_gui.py | 2 +- dcspy/run.py | 2 +- dcspy/starter.py | 2 +- dcspy/utils.py | 2 +- generate_ver_file.py | 2 +- tests/test_migration.py | 8 ++++---- tests/test_utils.py | 2 +- 12 files changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 3c1507dec..12429b323 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![image](https://img.shields.io/badge/pypi-v3.5.0-blue.svg)](https://pypi.org/project/dcspy/) +[![image](https://img.shields.io/badge/pypi-v3.5.1-blue.svg)](https://pypi.org/project/dcspy/) [![Python CI](https://github.com/emcek/dcspy/actions/workflows/python-ci.yml/badge.svg?branch=master)](https://github.com/emcek/dcspy/actions/workflows/python-ci.yml) [![Coverage Status](https://coveralls.io/repos/github/emcek/dcspy/badge.svg?branch=master)](https://coveralls.io/github/emcek/dcspy?branch=master) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/5270a4fc2ba24261a3bfa7361150e8ff)](https://app.codacy.com/gh/emcek/dcspy/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) diff --git a/dcs_py.py b/dcs_py.py index 033e85941..b0be6e762 100644 --- a/dcs_py.py +++ b/dcs_py.py @@ -11,7 +11,7 @@ except ImportError: pass -__version__ = '3.5.0' +__version__ = '3.5.1' def start_dcspy(cli_args: Namespace) -> None: diff --git a/dcspy/__init__.py b/dcspy/__init__.py index 063124c57..e9f0f4240 100644 --- a/dcspy/__init__.py +++ b/dcspy/__init__.py @@ -11,7 +11,7 @@ from dcspy.utils import check_dcs_ver, get_default_yaml, load_yaml, save_yaml LOG = getLogger(__name__) -__version__ = '3.5.0' +__version__ = '3.5.1' default_yaml = get_default_yaml(local_appdata=LOCAL_APPDATA) _start_cfg = load_yaml(full_path=default_yaml) diff --git a/dcspy/config.yaml b/dcspy/config.yaml index 3ea9998db..24317284a 100644 --- a/dcspy/config.yaml +++ b/dcspy/config.yaml @@ -1,4 +1,4 @@ -api_ver: 3.5.0 +api_ver: 3.5.1 autostart: false check_bios: true check_ver: true diff --git a/dcspy/migration.py b/dcspy/migration.py index 3b382a30d..1f2d74e43 100644 --- a/dcspy/migration.py +++ b/dcspy/migration.py @@ -13,7 +13,7 @@ from dcspy.utils import DEFAULT_YAML_FILE, defaults_cfg, get_config_yaml_location LOG = getLogger(__name__) -__version__ = '3.5.0' +__version__ = '3.5.1' def migrate(cfg: DcspyConfigYaml) -> DcspyConfigYaml: @@ -58,7 +58,7 @@ def _filter_api_ver_func(cfg_ver: str) -> Iterator[Callable[[DcspyConfigYaml], N def _api_ver_3_5_0(cfg: DcspyConfigYaml) -> None: """ - Migrate to version 3.5.0. + Migrate to version 3.5.1. :param cfg: Configuration dictionary """ diff --git a/dcspy/qt_gui.py b/dcspy/qt_gui.py index 8b7d406de..1e19c0ca7 100644 --- a/dcspy/qt_gui.py +++ b/dcspy/qt_gui.py @@ -37,7 +37,7 @@ run_command, run_pip_command, save_yaml) _ = qtgui_rc # prevent to remove import statement accidentally -__version__ = '3.5.0' +__version__ = '3.5.1' LOG = getLogger(__name__) NO_MSG_BOX = os.environ.get('DCSPY_NO_MSG_BOXES', 0) LOGI_DEV_RADIO_BUTTON = {'rb_g19': 0, 'rb_g13': 0, 'rb_g15v1': 0, 'rb_g15v2': 0, 'rb_g510': 0, diff --git a/dcspy/run.py b/dcspy/run.py index 15754e088..27f4d9bde 100644 --- a/dcspy/run.py +++ b/dcspy/run.py @@ -12,7 +12,7 @@ from dcspy.qt_gui import DcsPyQtGui LOG = getLogger(__name__) -__version__ = '3.5.0' +__version__ = '3.5.1' def run(cli_args: Namespace = Namespace()) -> None: diff --git a/dcspy/starter.py b/dcspy/starter.py index ceef42ff0..2223707fc 100644 --- a/dcspy/starter.py +++ b/dcspy/starter.py @@ -14,7 +14,7 @@ LOG = getLogger(__name__) LOOP_FLAG = True -__version__ = '3.5.0' +__version__ = '3.5.1' def _handle_connection(logi_device: LogitechDevice, parser: ProtocolParser, sock: socket.socket, ver_string: str, event: Event) -> None: diff --git a/dcspy/utils.py b/dcspy/utils.py index b72faea9b..1e229a88b 100644 --- a/dcspy/utils.py +++ b/dcspy/utils.py @@ -31,7 +31,7 @@ pass LOG = getLogger(__name__) -__version__ = '3.5.0' +__version__ = '3.5.1' CONFIG_YAML = 'config.yaml' DEFAULT_YAML_FILE = Path(__file__).resolve().with_name(CONFIG_YAML) diff --git a/generate_ver_file.py b/generate_ver_file.py index 4816f990f..5227524c2 100644 --- a/generate_ver_file.py +++ b/generate_ver_file.py @@ -39,7 +39,7 @@ def generate_ver_info(major: int, minor: int, patch: int, build: int, git_sha: s return ver_info -def save_ver_file(ver=environ.get('GITHUB_REF_NAME', '3.5.0'), bld=environ.get('GITHUB_RUN_NUMBER', '1'), +def save_ver_file(ver=environ.get('GITHUB_REF_NAME', '3.5.1'), bld=environ.get('GITHUB_RUN_NUMBER', '1'), sha=environ.get('GITHUB_SHA', 'deadbeef'), ver_f='file_version_info.txt') -> Sequence[str]: """ Save generated version file based on list of strings. diff --git a/tests/test_migration.py b/tests/test_migration.py index 13b76de26..35d73b564 100644 --- a/tests/test_migration.py +++ b/tests/test_migration.py @@ -5,11 +5,11 @@ @mark.parametrize('cfg, result', [ ({'api_ver': '2.9.9', 'v': 1, 'font_color_s': 6, 'theme_mode': 'system'}, - {'api_ver': '3.5.0', 'completer_items': 20, 'current_plane': 'A-10C', 'font_color_m': 6, 'font_color_s': 18, 'font_mono_m': 11, 'font_mono_s': 9, 'v': 1}), + {'api_ver': '3.5.1', 'completer_items': 20, 'current_plane': 'A-10C', 'font_color_m': 6, 'font_color_s': 18, 'font_mono_m': 11, 'font_mono_s': 9, 'v': 1}), ({'api_ver': '3.0.0', 'v': 1, 'font_color_s': 6, 'theme_mode': 'system'}, - {'api_ver': '3.5.0', 'font_color_s': 6, 'theme_mode': 'system', 'v': 1}), + {'api_ver': '3.5.1', 'font_color_s': 6, 'theme_mode': 'system', 'v': 1}), ({'v': 1, 'font_color_s': 6, 'theme_mode': 'system'}, - {'api_ver': '3.5.0', 'completer_items': 20, 'current_plane': 'A-10C', 'font_color_m': 6, 'font_color_s': 18, 'font_mono_m': 11, 'font_mono_s': 9, 'v': 1}), + {'api_ver': '3.5.1', 'completer_items': 20, 'current_plane': 'A-10C', 'font_color_m': 6, 'font_color_s': 18, 'font_mono_m': 11, 'font_mono_s': 9, 'v': 1}), ], ids=['API 2.9.9', 'API 3.0.0', 'API empty']) def test_migrate(cfg, result): migrated_cfg = migrate(cfg=cfg) @@ -21,7 +21,7 @@ def test_generate_config(): migrated_cfg = migrate(cfg={}) assert migrated_cfg == { - 'api_ver': '3.5.0', + 'api_ver': '3.5.1', 'autostart': False, 'check_bios': True, 'check_ver': True, diff --git a/tests/test_utils.py b/tests/test_utils.py index 316e47a36..9c0b8b9ba 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -94,7 +94,7 @@ def test_dummy_save_load_migrate(tmpdir): assert d_cfg == {'font_mono_s': 9} d_cfg = migrate(cfg=d_cfg) assert d_cfg == { - 'api_ver': '3.5.0', + 'api_ver': '3.5.1', 'device': 'G13', 'save_lcd': False, 'show_gui': True,