Skip to content

Commit cd336b2

Browse files
authored
bump to python 3.7 (#11408)
1 parent 57d2409 commit cd336b2

File tree

5 files changed

+23
-55
lines changed

5 files changed

+23
-55
lines changed

lib/python/qmk/cli/__init__.py

+20-2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,24 @@
2727
from . import pyformat
2828
from . import pytest
2929

30-
if sys.version_info[0] != 3 or sys.version_info[1] < 6:
31-
cli.log.error('Your Python is too old! Please upgrade to Python 3.6 or later.')
30+
# Supported version information
31+
#
32+
# Based on the OSes we support these are the minimum python version available by default.
33+
# Last update: 2021 Jan 02
34+
#
35+
# Arch: 3.9
36+
# Debian: 3.7
37+
# Fedora 31: 3.7
38+
# Fedora 32: 3.8
39+
# Fedora 33: 3.9
40+
# FreeBSD: 3.7
41+
# Gentoo: 3.7
42+
# macOS: 3.9 (from homebrew)
43+
# msys2: 3.8
44+
# Slackware: 3.7
45+
# solus: 3.7
46+
# void: 3.9
47+
48+
if sys.version_info[0] != 3 or sys.version_info[1] < 7:
49+
cli.log.error('Your Python is too old! Please upgrade to Python 3.7 or later.')
3250
exit(127)

util/install/gentoo.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ _qmk_install() {
2323
sudo emerge -auN sys-devel/gcc
2424
sudo emerge -au --noreplace \
2525
app-arch/unzip app-arch/zip net-misc/wget sys-devel/clang sys-devel/crossdev \
26-
\>=dev-lang/python-3.6 \
26+
\>=dev-lang/python-3.7 \
2727
dev-embedded/avrdude dev-embedded/dfu-programmer app-mobilephone/dfu-util
2828

2929
sudo crossdev -s4 --stable --g \<9 --portage --verbose --target avr

util/install/opensuse.sh

-31
This file was deleted.

util/install/sabayon.sh

-15
This file was deleted.

util/qmk_install.sh

+2-6
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,16 @@ case $(uname -a) in
2525
. "$QMK_FIRMWARE_UTIL_DIR/install/fedora.sh";;
2626
*gentoo*)
2727
. "$QMK_FIRMWARE_UTIL_DIR/install/gentoo.sh";;
28-
*opensuse*|*tumbleweed*)
29-
. "$QMK_FIRMWARE_UTIL_DIR/install/opensuse.sh";;
30-
*sabayon*)
31-
. "$QMK_FIRMWARE_UTIL_DIR/install/sabayon.sh";;
3228
*slackware*)
3329
. "$QMK_FIRMWARE_UTIL_DIR/install/slackware.sh";;
3430
*solus*)
3531
. "$QMK_FIRMWARE_UTIL_DIR/install/solus.sh";;
3632
*void*)
3733
. "$QMK_FIRMWARE_UTIL_DIR/install/void.sh";;
3834
*)
39-
echo "Sorry, we don't recognize your distribution. Help us by contributing support!"
35+
echo "Sorry, we don't recognize your distribution. Try using the docker image instead:"
4036
echo
41-
echo "https://docs.qmk.fm/#/contributing"
37+
echo "https://docs.qmk.fm/#/getting_started_docker"
4238
exit 1;;
4339
esac
4440

0 commit comments

Comments
 (0)