From 7343ecdcc562e2fa384278ded7842d7e353f16b6 Mon Sep 17 00:00:00 2001 From: zvecr Date: Mon, 24 Jun 2024 05:03:13 +0100 Subject: [PATCH] Bump minimum python version to 3.9 --- .github/workflows/cli_setup.yml | 5 ++++- .github/workflows/docker-republish.yml | 2 +- .github/workflows/python-publish.yml | 2 +- qmk_cli/script_qmk.py | 4 ++-- setup.cfg | 2 +- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cli_setup.yml b/.github/workflows/cli_setup.yml index 5a6529c..739f422 100644 --- a/.github/workflows/cli_setup.yml +++ b/.github/workflows/cli_setup.yml @@ -32,7 +32,10 @@ jobs: strategy: matrix: os: [macos-latest, ubuntu-latest] - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.9', '3.10', '3.11', '3.12'] + include: + - os: macos-13 + python-version: '3.9' steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/docker-republish.yml b/.github/workflows/docker-republish.yml index fda11f6..56c32ee 100644 --- a/.github/workflows/docker-republish.yml +++ b/.github/workflows/docker-republish.yml @@ -12,7 +12,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.7' + python-version: '3.9' - name: Set up QEMU uses: docker/setup-qemu-action@v3 diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 4b27043..a40caef 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -20,7 +20,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.7' + python-version: '3.9' - name: Set up QEMU uses: docker/setup-qemu-action@v3 diff --git a/qmk_cli/script_qmk.py b/qmk_cli/script_qmk.py index 7d68f76..ecc15f2 100644 --- a/qmk_cli/script_qmk.py +++ b/qmk_cli/script_qmk.py @@ -46,9 +46,9 @@ def main(): """Setup the environment before dispatching to the entrypoint. """ # Warn if they use an outdated python version - if sys.version_info < (3, 7): + if sys.version_info < (3, 9): print('Warning: Your Python version is out of date! Some subcommands may not work!') - print('Please upgrade to Python 3.7 or later.') + print('Please upgrade to Python 3.9 or later.') if 'windows' in platform().lower(): msystem = os.environ.get('MSYSTEM', '') diff --git a/setup.cfg b/setup.cfg index b42e0bb..dedc709 100644 --- a/setup.cfg +++ b/setup.cfg @@ -48,7 +48,7 @@ install_requires = pygments pyserial packages = find: -python_requires = >=3.7 +python_requires = >=3.9 [options.entry_points] console_scripts =