From 26edde7d0c19dc29f485f27f33d77e0c3c5daf5d Mon Sep 17 00:00:00 2001 From: MatteoH2O1999 Date: Wed, 11 Dec 2024 20:41:35 +0100 Subject: [PATCH] Drop support for Python < 3.8 --- .github/scripts/create_python_matrix.py | 2 +- README.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/scripts/create_python_matrix.py b/.github/scripts/create_python_matrix.py index 69c399e..946a1c9 100644 --- a/.github/scripts/create_python_matrix.py +++ b/.github/scripts/create_python_matrix.py @@ -21,7 +21,7 @@ splits = short_tag.split('.') major = int(splits[0]) minor = int(splits[1]) - if major == 3 and minor >= 7 and short_tag not in json_dict['python-version']: + if major == 3 and minor >= 8 and short_tag not in json_dict['python-version']: json_dict['python-version'].append(short_tag) with open(os.environ['GITHUB_OUTPUT'], 'a') as fh: diff --git a/README.md b/README.md index 22c70a0..5391bd4 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ For a more complete view on the actions see [action.yml](action.yml) or look in In general you could replace the original action with this one and it should already work (all its supported inputs are also supported in this one): ```yaml -- uses: MatteoH2O1999/setup-python@v4 +- uses: MatteoH2O1999/setup-python@v5 with: python-version: '3.8' ``` @@ -38,7 +38,7 @@ In general you could replace the original action with this one and it should alr But if you wish for a more optimized experience you could use inputs exclusive to this action: ```yaml -- uses: MatteoH2O1999/setup-python@v4 +- uses: MatteoH2O1999/setup-python@v5 with: python-version: '3.8' allow-build: info @@ -55,9 +55,9 @@ Older versions may still work, but no effort will be spent in ensuring so. ## Guarantees -The objective of this action is to guarantee that for every major Python version starting from `3.7` at least one specific version can be successfully installed on the `...-latest` images using the default architecture. +The objective of this action is to guarantee that for every major Python version starting from `3.8` at least one specific version can be successfully installed on the `...-latest` images using the default architecture. -TLDR: If you use the major version specification (`3.7` instead of `3.7.5`) without specifying the architecture as shown in [Basic usage](#basic-usage) this action is guaranteed to work (hopefully...😉) on all the `...-latest` labels. +TLDR: If you use the major version specification (`3.8` instead of `3.8.5`) without specifying the architecture as shown in [Basic usage](#basic-usage) this action is guaranteed to work (hopefully...😉) on all the `...-latest` labels. ## Known limits