Skip to content

Commit

Permalink
increase version to 3.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
emcek committed Nov 5, 2024
1 parent d558225 commit 07ebeb9
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 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.6.0-blue.svg)](https://pypi.org/project/dcspy/)
[![image](https://img.shields.io/badge/pypi-v3.6.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 docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pip install dcspy

or download manually wheel file from [releases](https://github.com/emcek/dcspy/releases/latest):
```shell script
pip install dcspy-3.6.0-py3-none-any.whl
pip install dcspy-3.6.1-py3-none-any.whl
```

**Note:** If you got `pip is not recognized as an internal or external command, operable program or batch file.` error, see [FAQ](faq.md)
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sonar.organization=emcek

# This is the name and version displayed in the SonarCloud UI.
sonar.projectName=dcspy
sonar.projectVersion=3.6.0
sonar.projectVersion=3.6.1

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
sonar.sources=src
Expand Down
2 changes: 1 addition & 1 deletion src/dcspy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from dcspy.utils import check_dcs_ver, get_default_yaml, load_yaml, save_yaml

LOG = getLogger(__name__)
__version__ = '3.6.0'
__version__ = '3.6.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 src/dcspy/migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from dcspy.utils import DEFAULT_YAML_FILE, defaults_cfg, get_config_yaml_location

LOG = getLogger(__name__)
__version__ = '3.6.0'
__version__ = '3.6.1'


def migrate(cfg: DcspyConfigYaml) -> DcspyConfigYaml:
Expand Down
2 changes: 1 addition & 1 deletion src/dcspy/qt_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
load_yaml, proc_is_running, run_command, run_pip_command, save_yaml)

_ = qtgui_rc # prevent to remove import statement accidentally
__version__ = '3.6.0'
__version__ = '3.6.1'
LOG = getLogger(__name__)
NO_MSG_BOX = int(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 src/dcspy/resources/config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
api_ver: 3.6.0
api_ver: 3.6.1
autostart: false
check_bios: true
check_ver: true
Expand Down
2 changes: 1 addition & 1 deletion src/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.6.0'
__version__ = '3.6.1'


def run(cli_args: Namespace = Namespace()) -> None:
Expand Down
2 changes: 1 addition & 1 deletion src/dcspy/starter.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
LOG = getLogger(__name__)
LOOP_FLAG = True
SUPPORTERS = ['Jon Wardell', 'Simon Leigh', 'Alexander Leschanz', 'Sireyn', 'Nick Thain', 'BrotherBloat']
__version__ = '3.6.0'
__version__ = '3.6.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 src/dcspy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
pass

LOG = getLogger(__name__)
__version__ = '3.6.0'
__version__ = '3.6.1'
CONFIG_YAML = 'config.yaml'
DEFAULT_YAML_FILE = Path(__file__).parent / 'resources' / CONFIG_YAML

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.6.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.6.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.6.0', 'font_color_s': 6, 'theme_mode': 'system', 'v': 1}),
{'api_ver': '3.6.1', 'font_color_s': 6, 'theme_mode': 'system', 'v': 1}),
({'v': 1, 'font_color_s': 6, 'theme_mode': 'system'},
{'api_ver': '3.6.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.6.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 = migration.migrate(cfg=cfg)
Expand All @@ -21,7 +21,7 @@ def test_generate_config():

migrated_cfg = migration.migrate(cfg={})
assert migrated_cfg == {
'api_ver': '3.6.0',
'api_ver': '3.6.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 @@ -107,7 +107,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.6.0',
'api_ver': '3.6.1',
'device': 'G13',
'save_lcd': False,
'show_gui': True,
Expand Down

0 comments on commit 07ebeb9

Please sign in to comment.