Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
12a540b
feat: Adds Python 3.13 support
chalmerlowe Oct 22, 2025
e316bf2
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Oct 22, 2025
510e019
fix(kokoro): Preserve NOX_SESSION in presubmit.cfg
chalmerlowe Oct 23, 2025
294ecf0
Apply suggestion from @chalmerlowe
chalmerlowe Oct 23, 2025
52d5471
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Oct 23, 2025
1aa2893
fix(kokoro): Update path to presubmit.cfg in owlbot.py
chalmerlowe Oct 23, 2025
730de17
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Oct 23, 2025
0904f48
Apply suggestion from @chalmerlowe
chalmerlowe Oct 23, 2025
f820d65
Apply suggestion from @chalmerlowe
chalmerlowe Oct 23, 2025
1a48a85
Update owlbot.py
chalmerlowe Oct 23, 2025
66e5030
Update .kokoro/presubmit/presubmit.cfg
chalmerlowe Oct 23, 2025
e0dcd0f
updates owlbot.py and noxfile.py to use 3.10 for system and linting.
chalmerlowe Oct 23, 2025
63ded6f
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Oct 23, 2025
94caad0
updates owlbot.py to try to account for system test
chalmerlowe Oct 23, 2025
396aba4
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Oct 23, 2025
fbc6312
Apply suggestion from @chalmerlowe
chalmerlowe Oct 23, 2025
cca6152
Apply suggestion from @chalmerlowe
chalmerlowe Oct 23, 2025
8cea842
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Oct 23, 2025
002c291
Apply suggestion from @chalmerlowe
chalmerlowe Oct 23, 2025
7412511
Apply suggestion from @chalmerlowe
chalmerlowe Oct 23, 2025
8e92bfc
Apply suggestion from @chalmerlowe
chalmerlowe Oct 23, 2025
a9b9a98
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Oct 23, 2025
d020cff
Apply suggestion from @chalmerlowe
chalmerlowe Oct 23, 2025
b8b5a28
Apply suggestion from @chalmerlowe
chalmerlowe Oct 23, 2025
35cd2c7
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Oct 23, 2025
c00b7e0
Merge branch 'feat/add-python-3.13' of https://github.com/googleapis/…
gcf-owl-bot[bot] Oct 23, 2025
c1ccaa8
Apply suggestion from @chalmerlowe
chalmerlowe Oct 23, 2025
0cea524
updates lint version to match default of 3.10
chalmerlowe Oct 23, 2025
c65a660
updates system test version to match default of 3.10
chalmerlowe Oct 23, 2025
f487319
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Oct 23, 2025
e6db188
Merge branch 'feat/add-python-3.13' of https://github.com/googleapis/…
gcf-owl-bot[bot] Oct 23, 2025
80203e3
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Oct 23, 2025
09daf39
Merge branch 'feat/add-python-3.13' of https://github.com/googleapis/…
gcf-owl-bot[bot] Oct 23, 2025
858e2f9
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Oct 23, 2025
0a0fad7
Merge branch 'feat/add-python-3.13' of https://github.com/googleapis/…
gcf-owl-bot[bot] Oct 23, 2025
ba92f10
updates lint version to match default of 3.10 redux
chalmerlowe Oct 23, 2025
313059f
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Oct 23, 2025
6c71c95
modified the owlbot to take advantage of a capability in common.py_li…
chalmerlowe Oct 23, 2025
31c30bf
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Oct 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
python-version: "3.10"
- name: Install nox
run: |
python -m pip install --upgrade setuptools pip wheel
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
python-version: "3.10"
- name: Install coverage
run: |
python -m pip install --upgrade setuptools pip wheel
Expand Down
7 changes: 6 additions & 1 deletion .kokoro/presubmit/presubmit.cfg
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "NOX_SESSION"
value: "system blacken format"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this also have all the unit-<version> from 3.9 to 3.13?

Copy link
Contributor Author

@chalmerlowe chalmerlowe Oct 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gkevinzheng

We are running unit tests in github actions so we do not need to duplicate those tests here in the kokoro session.

Our multi-python docker image does not have python 3.8 and 3.7 wheels due to an issue. We are able to run those unit tests under 3.7 and 3.8 in GitHub (as well as all the others up to 3.14) until we finally ditch 3.7 and 3.8 completely from all the split repos.

}
4 changes: 2 additions & 2 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ Running System Tests
$ nox -s system

# Run a single system test
$ nox -s system-3.8 -- -k <name of test>
$ nox -s system-3.10 -- -k <name of test>


.. note::

System tests are only configured to run under Python 3.8.
System tests are only configured to run under Python 3.10.
For expediency, we do not run them in older versions of Python 3.

This alone will not run the tests. You'll need to change some local
Expand Down
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
ISORT_VERSION = "isort==5.11.0"
LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]

DEFAULT_PYTHON_VERSION = "3.8"
DEFAULT_PYTHON_VERSION = "3.10"

UNIT_TEST_PYTHON_VERSIONS: List[str] = [
"3.7",
Expand All @@ -56,7 +56,7 @@
UNIT_TEST_EXTRAS: List[str] = []
UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {}

SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.8"]
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.10"]
SYSTEM_TEST_STANDARD_DEPENDENCIES: List[str] = [
"mock",
"pytest",
Expand Down
20 changes: 20 additions & 0 deletions owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,28 @@
# ----------------------------------------------------------------------------
templated_files = common.py_library(
microgenerator=True,
default_python_version="3.10",
system_test_python_versions=["3.10"],
)
s.move(templated_files, excludes=["docs/multiprocessing.rst", "README.rst"])

s.replace(
".github/workflows/lint.yml",
'python-version: "3.8"',
'python-version: "3.10"'
)

s.replace(
".kokoro/presubmit/presubmit.cfg",
"""# Format: //devtools/kokoro/config/proto/build.proto""",
"""# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "NOX_SESSION"
value: "system blacken format"
}""",
)

python.py_samples(skip_readmes=True)

s.replace(
Expand All @@ -40,5 +59,6 @@
session.install\("--pre", "grpcio!=1.52.0rc1"\)""",
""
)

s.shell.run(["nox", "-s", "blacken"], hide_output=False)

1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"Topic :: Internet",
],
Expand Down