Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit ae13336

Browse files
committed
Fix Python Versions - Remove Python 3.8
1 parent c84783c commit ae13336

File tree

6 files changed

+15
-23
lines changed

6 files changed

+15
-23
lines changed

.github/sync-repo-settings.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,13 @@ branchProtectionRules:
1010
- 'OwlBot Post Processor'
1111
- 'docs'
1212
- 'lint'
13-
- 'unit (3.8)'
1413
- 'unit (3.9)'
15-
- 'unit (3.10)'
16-
- 'unit (3.11)'
17-
- 'unit (3.12)'
14+
- 'unit (3.14)'
1815
- 'cover'
1916
- 'Kokoro'
2017
- 'Samples - Lint'
21-
- 'Samples - Python 3.8'
22-
- 'Samples - Python 3.12'
18+
- 'Samples - Python 3.9'
19+
- 'Samples - Python 3.14'
2320
permissionRules:
2421
- team: actools-python
2522
permission: admin

.github/workflows/unittest.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,15 @@ 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+
runs-on: ubuntu-latest
129
strategy:
1310
matrix:
14-
python: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
11+
python: ['3.9', '3.14']
1512
steps:
1613
- name: Checkout
17-
uses: actions/checkout@v4
14+
uses: actions/checkout@v5
1815
- name: Setup Python
19-
uses: actions/setup-python@v5
16+
uses: actions/setup-python@v6
2017
with:
2118
python-version: ${{ matrix.python }}
2219
- name: Install nox
@@ -41,11 +38,11 @@ jobs:
4138
- unit
4239
steps:
4340
- name: Checkout
44-
uses: actions/checkout@v4
41+
uses: actions/checkout@v5
4542
- name: Setup Python
46-
uses: actions/setup-python@v5
43+
uses: actions/setup-python@v6
4744
with:
48-
python-version: "3.13"
45+
python-version: "3.14"
4946
- name: Install coverage
5047
run: |
5148
python -m pip install --upgrade setuptools pip wheel

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ action {
1010
# Specify which tests to run
1111
env_vars: {
1212
key: "RUN_TESTS_SESSION"
13-
value: "py-3.8"
13+
value: "py-3.9"
1414
}
1515

1616
# Declare build specific Cloud project.
@@ -37,4 +37,4 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
3737
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
3838

3939
# Use the trampoline script to run in docker.
40-
build_file: "python-documentai-toolbox/.kokoro/trampoline_v2.sh"
40+
build_file: "python-documentai-toolbox/.kokoro/trampoline_v2.sh"

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ Supported Python Versions
6363
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
6464
Python.
6565

66-
Python >= 3.8
66+
Python >= 3.9
6767

6868
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
6969
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
7070

7171
Unsupported Python Versions
7272
^^^^^^^^^^^^^^^^^^^^^^^^^^^
73-
Python <= 3.7
73+
Python <= 3.8
7474

7575
**NOTE**:
7676
Python 3.7 was marked as `unsupported`_ by the python community in June 2023.

noxfile.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
DEFAULT_PYTHON_VERSION = "3.13"
3636

3737
UNIT_TEST_PYTHON_VERSIONS: List[str] = [
38-
"3.8",
3938
"3.9",
4039
"3.10",
4140
"3.11",

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,11 @@
7171
"Pillow>=10.0.0, <12.0.0",
7272
"Jinja2>=3.1.0, <4.0.0",
7373
),
74-
python_requires=">=3.8",
74+
python_requires=">=3.9",
7575
classifiers=[
7676
"Development Status :: 3 - Alpha",
7777
"Intended Audience :: Developers",
7878
"Operating System :: OS Independent",
79-
"Programming Language :: Python :: 3.8",
8079
"Programming Language :: Python :: 3.9",
8180
"Programming Language :: Python :: 3.10",
8281
"Programming Language :: Python :: 3.11",

0 commit comments

Comments
 (0)