Skip to content

Commit

Permalink
bump to python 3.7 (#11408)
Browse files Browse the repository at this point in the history
  • Loading branch information
skullydazed authored Feb 13, 2021
1 parent 57d2409 commit cd336b2
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 55 deletions.
22 changes: 20 additions & 2 deletions lib/python/qmk/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,24 @@
from . import pyformat
from . import pytest

if sys.version_info[0] != 3 or sys.version_info[1] < 6:
cli.log.error('Your Python is too old! Please upgrade to Python 3.6 or later.')
# Supported version information
#
# Based on the OSes we support these are the minimum python version available by default.
# Last update: 2021 Jan 02
#
# Arch: 3.9
# Debian: 3.7
# Fedora 31: 3.7
# Fedora 32: 3.8
# Fedora 33: 3.9
# FreeBSD: 3.7
# Gentoo: 3.7
# macOS: 3.9 (from homebrew)
# msys2: 3.8
# Slackware: 3.7
# solus: 3.7
# void: 3.9

if sys.version_info[0] != 3 or sys.version_info[1] < 7:
cli.log.error('Your Python is too old! Please upgrade to Python 3.7 or later.')
exit(127)
2 changes: 1 addition & 1 deletion util/install/gentoo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ _qmk_install() {
sudo emerge -auN sys-devel/gcc
sudo emerge -au --noreplace \
app-arch/unzip app-arch/zip net-misc/wget sys-devel/clang sys-devel/crossdev \
\>=dev-lang/python-3.6 \
\>=dev-lang/python-3.7 \
dev-embedded/avrdude dev-embedded/dfu-programmer app-mobilephone/dfu-util

sudo crossdev -s4 --stable --g \<9 --portage --verbose --target avr
Expand Down
31 changes: 0 additions & 31 deletions util/install/opensuse.sh

This file was deleted.

15 changes: 0 additions & 15 deletions util/install/sabayon.sh

This file was deleted.

8 changes: 2 additions & 6 deletions util/qmk_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,16 @@ case $(uname -a) in
. "$QMK_FIRMWARE_UTIL_DIR/install/fedora.sh";;
*gentoo*)
. "$QMK_FIRMWARE_UTIL_DIR/install/gentoo.sh";;
*opensuse*|*tumbleweed*)
. "$QMK_FIRMWARE_UTIL_DIR/install/opensuse.sh";;
*sabayon*)
. "$QMK_FIRMWARE_UTIL_DIR/install/sabayon.sh";;
*slackware*)
. "$QMK_FIRMWARE_UTIL_DIR/install/slackware.sh";;
*solus*)
. "$QMK_FIRMWARE_UTIL_DIR/install/solus.sh";;
*void*)
. "$QMK_FIRMWARE_UTIL_DIR/install/void.sh";;
*)
echo "Sorry, we don't recognize your distribution. Help us by contributing support!"
echo "Sorry, we don't recognize your distribution. Try using the docker image instead:"
echo
echo "https://docs.qmk.fm/#/contributing"
echo "https://docs.qmk.fm/#/getting_started_docker"
exit 1;;
esac

Expand Down

0 comments on commit cd336b2

Please sign in to comment.