Skip to content

Commit

Permalink
increase version to 3.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
emcek committed May 26, 2024
1 parent f3a1bca commit 5eb664d
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion dcs_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
except ImportError:
pass

__version__ = '3.5.0'
__version__ = '3.5.1'


def start_dcspy(cli_args: Namespace) -> None:
Expand Down
2 changes: 1 addition & 1 deletion dcspy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion dcspy/config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
api_ver: 3.5.0
api_ver: 3.5.1
autostart: false
check_bios: true
check_ver: true
Expand Down
4 changes: 2 additions & 2 deletions dcspy/migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
"""
Expand Down
2 changes: 1 addition & 1 deletion dcspy/qt_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion dcspy/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion dcspy/starter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion dcspy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion generate_ver_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions tests/test_migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5eb664d

Please sign in to comment.