Skip to content

Commit 9b32164

Browse files
feat: Drop support for Python 3.7 and 3.8
Removes support for Python 3.7 and 3.8, establishing Python 3.9 as the new minimum supported version. This change involves: - Updating `python_requires` and classifiers in `setup.py`. - Modifying Python versions in `noxfile.py` (default, unit tests, system tests) and ensuring constraint file logic remains correct. - Updating the GitHub Actions workflow (`unittest.yml`) matrix, runner, and coverage job version. - Deleting constraint files for Python 3.7 and 3.8 (`testing/constraints-3.7.txt`, `testing/constraints-3.8.txt`). - Removing Kokoro sample configuration directories (`.kokoro/samples/python3.7/`, `.kokoro/samples/python3.8/`). - Updating supported version mentions in `README.rst`. - Removing 3.7 and 3.8 from the `ALL_VERSIONS` list in `samples/snippets/noxfile.py`.
1 parent d8046c0 commit 9b32164

File tree

17 files changed

+10
-166
lines changed

17 files changed

+10
-166
lines changed

.github/workflows/unittest.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@ on:
55
name: unittest
66
jobs:
77
unit:
8-
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2303): use `ubuntu-latest` once this bug is fixed.
9-
# Use ubuntu-22.04 until Python 3.7 is removed from the test matrix
10-
# https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
11-
runs-on: ubuntu-22.04
8+
# Use `ubuntu-latest` runner.
9+
runs-on: ubuntu-latest
1210
strategy:
1311
matrix:
14-
python: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
12+
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
1513
steps:
1614
- name: Checkout
1715
uses: actions/checkout@v4
@@ -103,7 +101,7 @@ jobs:
103101
- name: Setup Python
104102
uses: actions/setup-python@v5
105103
with:
106-
python-version: "3.8"
104+
python-version: "3.9"
107105
- name: Install coverage
108106
run: |
109107
python -m pip install --upgrade setuptools pip wheel

.kokoro/samples/python3.7/common.cfg

Lines changed: 0 additions & 40 deletions
This file was deleted.

.kokoro/samples/python3.7/continuous.cfg

Lines changed: 0 additions & 6 deletions
This file was deleted.

.kokoro/samples/python3.7/periodic-head.cfg

Lines changed: 0 additions & 11 deletions
This file was deleted.

.kokoro/samples/python3.7/periodic.cfg

Lines changed: 0 additions & 6 deletions
This file was deleted.

.kokoro/samples/python3.7/presubmit.cfg

Lines changed: 0 additions & 6 deletions
This file was deleted.

.kokoro/samples/python3.8/common.cfg

Lines changed: 0 additions & 40 deletions
This file was deleted.

.kokoro/samples/python3.8/continuous.cfg

Lines changed: 0 additions & 6 deletions
This file was deleted.

.kokoro/samples/python3.8/periodic-head.cfg

Lines changed: 0 additions & 11 deletions
This file was deleted.

.kokoro/samples/python3.8/periodic.cfg

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)