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

Commit b0a67e0

Browse files
committed
chore: fix librarian commit, which added py3.7 and 3.8 support back partially
1 parent 607d545 commit b0a67e0

File tree

7 files changed

+8
-43
lines changed

7 files changed

+8
-43
lines changed

.librarian/generator-input/librarian.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,10 @@
338338
samples=True,
339339
cov_level=99,
340340
versions=gcp.common.detect_versions(path="./google", default_first=True),
341-
unit_test_python_versions=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"],
341+
unit_test_python_versions=["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"],
342342
unit_test_dependencies=["flaky"],
343343
system_test_python_versions=["3.12"],
344-
system_test_external_dependencies=["psutil","flaky"],
344+
system_test_external_dependencies=["psutil", "flaky"],
345345
)
346346
s.move(templated_files, excludes=[".coveragerc", ".github/**", "README.rst", "docs/**", ".kokoro/**"])
347347

mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[mypy]
2-
python_version = 3.7
2+
python_version = 3.14
33
namespace_packages = True

testing/constraints-3.7.txt

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

testing/constraints-3.8.txt

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

tests/unit/gapic/pubsub_v1/test_publisher.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,8 @@
1515
#
1616
import os
1717

18-
# try/except added for compatibility with python < 3.8
19-
try:
20-
from unittest import mock
21-
from unittest.mock import AsyncMock # pragma: NO COVER
22-
except ImportError: # pragma: NO COVER
23-
import mock
18+
19+
import mock
2420

2521
import grpc
2622
from grpc.experimental import aio

tests/unit/gapic/pubsub_v1/test_schema_service.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,8 @@
1515
#
1616
import os
1717

18-
# try/except added for compatibility with python < 3.8
19-
try:
20-
from unittest import mock
21-
from unittest.mock import AsyncMock # pragma: NO COVER
22-
except ImportError: # pragma: NO COVER
23-
import mock
18+
19+
import mock
2420

2521
import grpc
2622
from grpc.experimental import aio

tests/unit/gapic/pubsub_v1/test_subscriber.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@
1616
import os
1717
import warnings
1818

19-
# try/except added for compatibility with python < 3.8
20-
try:
21-
from unittest import mock
22-
from unittest.mock import AsyncMock # pragma: NO COVER
23-
except ImportError: # pragma: NO COVER
24-
import mock
19+
import mock
2520

2621
import grpc
2722
from grpc.experimental import aio

0 commit comments

Comments
 (0)