Skip to content

Commit

Permalink
Update version number to 3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
emcek committed Mar 16, 2024
1 parent ca55dc4 commit aa5ba52
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.2.0-blue.svg)](https://pypi.org/project/dcspy/)
[![image](https://img.shields.io/badge/pypi-v3.3.0-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.2.0'
__version__ = '3.3.0'


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.2.0'
__version__ = '3.3.0'

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.2.0
api_ver: 3.3.0
autostart: false
check_bios: true
check_ver: true
Expand Down
2 changes: 1 addition & 1 deletion dcspy/migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from dcspy.utils import DEFAULT_YAML_FILE, defaults_cfg, get_config_yaml_location

LOG = getLogger(__name__)
__version__ = '3.2.0'
__version__ = '3.3.0'


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

_ = qtgui_rc # prevent to remove import statement accidentally
__version__ = '3.2.0'
__version__ = '3.3.0'
LOG = getLogger(__name__)
NO_MSG_BOX = os.environ.get('DCSPY_NO_MSG_BOXES', 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.2.0'
__version__ = '3.3.0'


def run(cli_args: 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 @@ -15,7 +15,7 @@

LOG = getLogger(__name__)
LOOP_FLAG = True
__version__ = '3.2.0'
__version__ = '3.3.0'


def _handle_connection(manager: KeyboardManager, 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 @@ -30,7 +30,7 @@
pass

LOG = getLogger(__name__)
__version__ = '3.2.0'
__version__ = '3.3.0'
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.2.0'), bld=environ.get('GITHUB_RUN_NUMBER', '1'),
def save_ver_file(ver=environ.get('GITHUB_REF_NAME', '3.3.0'), 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', 'val': 1, 'font_color_s': 66, 'theme_mode': 'system'},
{'api_ver': '3.2.0', 'completer_items': 20, 'current_plane': 'A-10C', 'font_color_m': 66, 'font_color_s': 18, 'font_mono_m': 11, 'font_mono_s': 9, 'val': 1}),
{'api_ver': '3.3.0', 'completer_items': 20, 'current_plane': 'A-10C', 'font_color_m': 66, 'font_color_s': 18, 'font_mono_m': 11, 'font_mono_s': 9, 'val': 1}),
({'api_ver': '3.0.0', 'val': 1, 'font_color_s': 66, 'theme_mode': 'system'},
{'api_ver': '3.2.0', 'font_color_s': 66, 'theme_mode': 'system', 'val': 1}),
{'api_ver': '3.3.0', 'font_color_s': 66, 'theme_mode': 'system', 'val': 1}),
({'val': 1, 'font_color_s': 66, 'theme_mode': 'system'},
{'api_ver': '3.2.0', 'completer_items': 20, 'current_plane': 'A-10C', 'font_color_m': 66, 'font_color_s': 18, 'font_mono_m': 11, 'font_mono_s': 9, 'val': 1}),
{'api_ver': '3.3.0', 'completer_items': 20, 'current_plane': 'A-10C', 'font_color_m': 66, 'font_color_s': 18, 'font_mono_m': 11, 'font_mono_s': 9, 'val': 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.2.0',
'api_ver': '3.3.0',
'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 @@ -90,7 +90,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.2.0',
'api_ver': '3.3.0',
'keyboard': 'G13',
'save_lcd': False,
'show_gui': True,
Expand Down

0 comments on commit aa5ba52

Please sign in to comment.