Skip to content

Commit

Permalink
Align to latest CLI dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr committed Oct 31, 2024
1 parent f1f8750 commit e6a4528
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/python/qmk/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,13 @@ def _eprint(errmsg):
# Ubuntu 24.04: 3.12
# void: 3.12

if sys.version_info[0] != 3 or sys.version_info[1] < 7:
_eprint('Error: Your Python is too old! Please upgrade to Python 3.7 or later.')
if sys.version_info[0] != 3 or sys.version_info[1] < 9:
_eprint('Error: Your Python is too old! Please upgrade to Python 3.9 or later.')
exit(127)

milc_version = __VERSION__.split('.')

if int(milc_version[0]) < 2 and int(milc_version[1]) < 4:
if int(milc_version[0]) < 2 and int(milc_version[1]) < 9:
requirements = Path('requirements.txt').resolve()

_eprint(f'Your MILC library is too old! Please upgrade: python3 -m pip install -U -r {str(requirements)}')
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dotty-dict
hid
hjson
jsonschema>=4
milc>=1.4.2
milc>=1.9.0
pygments
pyserial
pyusb
Expand Down

0 comments on commit e6a4528

Please sign in to comment.