Skip to content

Commit e338674

Browse files
committed
chore: require Python ≥3.9
1 parent 1c6e9a4 commit e338674

File tree

5 files changed

+1157
-922
lines changed

5 files changed

+1157
-922
lines changed

.github/workflows/tests.yaml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
matrix:
5454
# Run mypy on all of the supported python versions listed in setup.py
5555
# https://github.com/python/mypy/blob/master/setup.py
56-
python: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
56+
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
5757
runs-on: ubuntu-latest
5858
steps:
5959
- uses: actions/checkout@v4
@@ -71,13 +71,11 @@ jobs:
7171
# Run showcase tests on the lowest and highest supported runtimes
7272
matrix:
7373
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2121) Remove `showcase_w_rest_async` target when async rest is GA.
74-
python: ["3.7", "3.13"]
74+
python: ["3.9", "3.13"]
7575
target: [showcase, showcase_w_rest_async]
7676
logging_scope: ["", "google"]
7777

78-
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2303): use `ubuntu-latest` once this bug is fixed.
79-
# Use ubuntu-22.04 until Python 3.7 is removed from the test matrix
80-
runs-on: ubuntu-22.04
78+
runs-on: ubuntu-latest
8179
steps:
8280
- uses: actions/checkout@v4
8381
- name: Set up Python "${{ matrix.python }}"
@@ -162,14 +160,12 @@ jobs:
162160
showcase-unit:
163161
strategy:
164162
matrix:
165-
python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
163+
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
166164
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2121) Remove `_w_rest_async` variant when async rest is GA.
167165
variant: ['', _alternative_templates, _mixins, _alternative_templates_mixins, _w_rest_async]
168166
logging_scope: ["", "google"]
169167

170-
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2303): use `ubuntu-latest` once this bug is fixed.
171-
# Use ubuntu-22.04 until Python 3.7 is removed from the test matrix
172-
runs-on: ubuntu-22.04
168+
runs-on: ubuntu-latest
173169
steps:
174170
- uses: actions/checkout@v4
175171
- name: Set up Python "${{ matrix.python }}"
@@ -269,11 +265,9 @@ jobs:
269265
unit:
270266
strategy:
271267
matrix:
272-
python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
268+
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
273269

274-
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2303): use `ubuntu-latest` once this bug is fixed.
275-
# Use ubuntu-22.04 until Python 3.7 is removed from the test matrix
276-
runs-on: ubuntu-22.04
270+
runs-on: ubuntu-latest
277271
steps:
278272
- uses: actions/checkout@v4
279273
- name: Set up Python ${{ matrix.python }}
@@ -293,12 +287,10 @@ jobs:
293287
fragment:
294288
strategy:
295289
matrix:
296-
python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
290+
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
297291
variant: ['', _alternative_templates]
298292

299-
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2303): use `ubuntu-latest` once this bug is fixed.
300-
# Use ubuntu-22.04 until Python 3.7 is removed from the test matrix
301-
runs-on: ubuntu-22.04
293+
runs-on: ubuntu-latest
302294
steps:
303295
- uses: actions/checkout@v4
304296
- name: Set up Python ${{ matrix.python }}

DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
Execute unit tests by running one of the sessions prefixed with `unit-`.
2020

21-
- Example: `nox -s unit-3.8`
21+
- Example: `nox -s unit-3.13`
2222
- See all Nox sessions with `nox -l`.
2323

2424
## Formatting

noxfile.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
BLACK_EXCLUDES = "|".join([".*golden.*", ".*pb2.py"])
3838

3939
ALL_PYTHON = (
40-
"3.7",
41-
"3.8",
4240
"3.9",
4341
"3.10",
4442
"3.11",

0 commit comments

Comments
 (0)