Skip to content

Commit 0b243bc

Browse files
committed
Bump minimum Python version to 3.9
1 parent d3917b1 commit 0b243bc

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

.github/workflows/cli_setup.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ jobs:
3232
strategy:
3333
matrix:
3434
os: [macos-latest, ubuntu-latest]
35-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
35+
python-version: ['3.9', '3.10', '3.11', '3.12']
36+
include:
37+
- os: macos-13
38+
python-version: '3.9'
3639

3740
steps:
3841
- uses: actions/checkout@v4
@@ -59,16 +62,17 @@ jobs:
5962
uses: msys2/setup-msys2@v2
6063
with:
6164
update: true
62-
install: git mingw-w64-x86_64-toolchain mingw-w64-x86_64-python-pip mingw-w64-x86_64-python-pillow mingw-w64-x86_64-rust
65+
install: git mingw-w64-x86_64-toolchain mingw-w64-x86_64-python-pip mingw-w64-x86_64-python-build mingw-w64-x86_64-python-pillow mingw-w64-x86_64-rust
6366

67+
# Upgrade pip due to msys packaging + pypa/build/pull/736 issues
6468
- name: (MSYS2) Install Python dependencies
6569
shell: msys2 {0}
6670
run: |
67-
python3 -m pip install -U setuptools wheel
71+
python3 -m pip install --upgrade pip
72+
6873
- name: (MSYS2) Install QMK CLI from source
6974
shell: msys2 {0}
7075
run: |
71-
python3 -m pip install -U build
7276
python3 -m build
7377
python3 -m pip install dist/qmk-*.tar.gz
7478
- name: (MSYS2) Run qmk setup -y

.github/workflows/docker-republish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Set up Python
1313
uses: actions/setup-python@v5
1414
with:
15-
python-version: '3.7'
15+
python-version: '3.9'
1616

1717
- name: Set up QEMU
1818
uses: docker/setup-qemu-action@v3

.github/workflows/python-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up Python
2121
uses: actions/setup-python@v5
2222
with:
23-
python-version: '3.7'
23+
python-version: '3.9'
2424

2525
- name: Set up QEMU
2626
uses: docker/setup-qemu-action@v3

qmk_cli/script_qmk.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ def main():
4646
"""Setup the environment before dispatching to the entrypoint.
4747
"""
4848
# Warn if they use an outdated python version
49-
if sys.version_info < (3, 7):
49+
if sys.version_info < (3, 9):
5050
print('Warning: Your Python version is out of date! Some subcommands may not work!')
51-
print('Please upgrade to Python 3.7 or later.')
51+
print('Please upgrade to Python 3.9 or later.')
5252

5353
if 'windows' in platform().lower():
5454
msystem = os.environ.get('MSYSTEM', '')

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ install_requires =
4848
pygments
4949
pyserial
5050
packages = find:
51-
python_requires = >=3.7
51+
python_requires = >=3.9
5252

5353
[options.entry_points]
5454
console_scripts =

0 commit comments

Comments
 (0)