Skip to content

Commit

Permalink
Removed deprecated !!omap YAML directives, v0.57.0.dev10
Browse files Browse the repository at this point in the history
Requires MPF 0.57.0.dev19+
  • Loading branch information
toomanybrians committed Oct 9, 2023
1 parent 9780ba8 commit c087c1f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions mpfmc/_version.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import os

__version__ = '0.57.0.dev9'
__version__ = '0.57.0.dev10'
__short_version__ = '0.57'
__bcp_version__ = '1.1'
__config_version__ = '6'
__mpf_version_required__ = '0.57.0.dev16' # ALSO UPDATE in pyproject.toml
__mpf_version_required__ = '0.57.0.dev19' # ALSO UPDATE in pyproject.toml

# pylint: disable-msg=invalid-name
version = f"MPF-MC v{__version__}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#config_version=6
high_score:
_overwrite: True
categories: !!omap
- score:
categories:
score:
- GRAND CHAMPION
- HIGH SCORE 1
- HIGH SCORE 2
- HIGH SCORE 3
- HIGH SCORE 4
- loops:
loops:
- LOOP CHAMP
defaults:
score:
Expand Down
3 changes: 1 addition & 2 deletions mpfmc/integration/test_HighScoreMode.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Test high score mode."""
from collections import OrderedDict
import time


from mpf.tests.MpfFakeGameTestCase import MpfFakeGameTestCase

Expand Down
3 changes: 1 addition & 2 deletions mpfmc/widgets/segment_display_emulator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Widget emulating a segment display."""
from collections import OrderedDict
from typing import Optional, List, Dict, Any
import math

Expand Down Expand Up @@ -229,7 +228,7 @@ def _calculate_segment_points(self):
segment_points = self._calculate_eight_segment_points(x, y, segment_width, segment_interval, bevel_width)

# Sort the segment dictionary by segment name (key)
segment_points = OrderedDict(sorted(segment_points.items()))
segment_points = dict(sorted(segment_points.items()))

if self.dot_enabled:
# Store center point of dot/period circle (diameter will be segment_width) (x, y, radius)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ classifiers=[
"Topic :: Games/Entertainment :: Arcade"
]
dependencies = [
"mpf >= 0.57.0.dev16", # ALSO CHANGE THIS IN _version.py
"mpf >= 0.57.0.dev19", # ALSO CHANGE THIS IN _version.py
"kivy == 2.2.1", # Sept 19, 2023
"psutil == 5.9.5", # Sept 19, 2023
"Pygments == 2.16.1", # Sept 19, 2023 Only used for the interactive MC. Does anyone use that?
Expand Down

0 comments on commit c087c1f

Please sign in to comment.