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

Commit 41c6e35

Browse files
committed
chore: remove all mentions of py3.7/3.8; unpin nox docs action
1 parent 171f7d4 commit 41c6e35

14 files changed

Lines changed: 36 additions & 56 deletions

File tree

.github/sync-repo-settings.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ branchProtectionRules:
1111
- 'Kokoro - Against Pub/Sub Lite samples'
1212
- 'cla/google'
1313
- 'Samples - Lint'
14-
- 'Samples - Python 3.7'
15-
- 'Samples - Python 3.8'
1614
- 'Samples - Python 3.9'
1715
- 'Samples - Python 3.10'
1816
- 'Samples - Python 3.11'
@@ -21,8 +19,6 @@ branchProtectionRules:
2119
- 'docs'
2220
- 'docfx'
2321
- 'lint'
24-
- 'unit (3.7)'
25-
- 'unit (3.8)'
2622
- 'unit (3.9)'
2723
- 'unit (3.10)'
2824
- 'unit (3.11)'

.kokoro/samples/python3.7/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.7"
13+
value: "py-3.14"
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-pubsub/.kokoro/trampoline_v2.sh"
40+
build_file: "python-pubsub/.kokoro/trampoline_v2.sh"

.librarian/generator-input/librarian.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@
326326
if count < 1:
327327
raise Exception(".coveragerc replacement failed.")
328328

329-
s.move([library], excludes=["noxfile.py", "README.rst", "docs/**/*", "setup.py", "testing/constraints-3.7.txt", "testing/constraints-3.8.txt"])
329+
s.move([library], excludes=["noxfile.py", "README.rst", "docs/**/*", "setup.py"])
330330
s.remove_staging_dirs()
331331

332332
# ----------------------------------------------------------------------------

.librarian/generator-input/noxfile.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
DEFAULT_PYTHON_VERSION = "3.14"
3838

3939
UNIT_TEST_PYTHON_VERSIONS: List[str] = [
40-
"3.7",
41-
"3.8",
4240
"3.9",
4341
"3.10",
4442
"3.11",

.librarian/generator-input/setup.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,8 @@
4747
"protobuf>=3.20.2,<7.0.0,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",
4848
"grpc-google-iam-v1 >= 0.12.4, < 1.0.0",
4949
"grpcio-status >= 1.33.2",
50-
"opentelemetry-api <= 1.22.0; python_version<='3.7'",
51-
"opentelemetry-api >= 1.27.0; python_version>='3.8'",
52-
"opentelemetry-sdk <= 1.22.0; python_version<='3.7'",
53-
"opentelemetry-sdk >= 1.27.0; python_version>='3.8'",
50+
"opentelemetry-api >= 1.27.0",
51+
"opentelemetry-sdk >= 1.27.0",
5452
]
5553
extras = {"libcst": "libcst >= 0.3.10"}
5654
url = "https://github.com/googleapis/python-pubsub"
@@ -82,8 +80,6 @@
8280
"License :: OSI Approved :: Apache Software License",
8381
"Programming Language :: Python",
8482
"Programming Language :: Python :: 3",
85-
"Programming Language :: Python :: 3.7",
86-
"Programming Language :: Python :: 3.8",
8783
"Programming Language :: Python :: 3.9",
8884
"Programming Language :: Python :: 3.10",
8985
"Programming Language :: Python :: 3.11",
@@ -97,7 +93,7 @@
9793
packages=packages,
9894
install_requires=dependencies,
9995
extras_require=extras,
100-
python_requires=">=3.7",
96+
python_requires=">=3.9",
10197
include_package_data=True,
10298
zip_safe=False,
10399
)

CONTRIBUTING.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In order to add a feature:
2222
documentation.
2323

2424
- The feature must work fully on the following CPython versions:
25-
3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13 and 3.14 on both UNIX and Windows.
25+
3.9, 3.10, 3.11, 3.12, 3.13 and 3.14 on both UNIX and Windows.
2626

2727
- The feature must not add unnecessary dependencies (where
2828
"unnecessary" is of course subjective, but new dependencies should
@@ -221,17 +221,13 @@ Supported Python Versions
221221

222222
We support:
223223

224-
- `Python 3.7`_
225-
- `Python 3.8`_
226224
- `Python 3.9`_
227225
- `Python 3.10`_
228226
- `Python 3.11`_
229227
- `Python 3.12`_
230228
- `Python 3.13`_
231229
- `Python 3.14`_
232230

233-
.. _Python 3.7: https://docs.python.org/3.7/
234-
.. _Python 3.8: https://docs.python.org/3.8/
235231
.. _Python 3.9: https://docs.python.org/3.9/
236232
.. _Python 3.10: https://docs.python.org/3.10/
237233
.. _Python 3.11: https://docs.python.org/3.11/

README.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Python Client for Google Cloud Pub / Sub
22
========================================
33

4-
|GA| |pypi| |versions|
4+
|GA| |pypi| |versions|
55

66
`Google Cloud Pub / Sub`_ is a fully-managed real-time messaging service that
77
allows you to send and receive messages between independent applications. You
@@ -60,11 +60,13 @@ dependencies.
6060

6161
Supported Python Versions
6262
^^^^^^^^^^^^^^^^^^^^^^^^^
63-
Python >= 3.7
63+
Python >= 3.9
6464

6565
Deprecated Python Versions
6666
^^^^^^^^^^^^^^^^^^^^^^^^^^
67-
Python <= 3.6.
67+
Python < 3.9
68+
69+
The last version of this library compatible with Python 3.7 and 3.8 is google-cloud-pubsub==2.34.0.
6870

6971
The last version of this library compatible with Python 2.7 is google-cloud-pubsub==1.7.0.
7072

@@ -146,7 +148,7 @@ the topic, and subscribe to that, passing a callback function.
146148
147149
with pubsub_v1.SubscriberClient() as subscriber:
148150
subscriber.create_subscription(
149-
name=subscription_name, topic=topic_name)
151+
name=subscription_name, topic=topic_name)
150152
future = subscriber.subscribe(subscription_name, callback)
151153
152154
The future returned by the call to ``subscriber.subscribe`` can be used to
@@ -190,7 +192,7 @@ For example, to use JSON Web Tokens, provide a `google.auth.jwt.Credentials`_ in
190192
191193
# The same for the publisher, except that the "audience" claim needs to be adjusted
192194
publisher_audience = "https://pubsub.googleapis.com/google.pubsub.v1.Publisher"
193-
credentials_pub = credentials.with_claims(audience=publisher_audience)
195+
credentials_pub = credentials.with_claims(audience=publisher_audience)
194196
publisher = pubsub_v1.PublisherClient(credentials=credentials_pub)
195197
196198
.. _Credentials: https://google-auth.readthedocs.io/en/latest/reference/google.auth.credentials.html#google.auth.credentials.Credentials

librarian.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,15 @@
326326
if count < 1:
327327
raise Exception(".coveragerc replacement failed.")
328328

329-
s.move([library], excludes=["noxfile.py", "README.rst", "docs/**/*", "setup.py", "testing/constraints-3.7.txt", "testing/constraints-3.8.txt"])
329+
s.move(
330+
[library],
331+
excludes=[
332+
"noxfile.py",
333+
"README.rst",
334+
"docs/**/*",
335+
"setup.py",
336+
],
337+
)
330338
s.remove_staging_dirs()
331339

332340
# ----------------------------------------------------------------------------
@@ -338,10 +346,10 @@
338346
samples=True,
339347
cov_level=99,
340348
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"],
349+
unit_test_python_versions=["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"],
342350
unit_test_dependencies=["flaky"],
343351
system_test_python_versions=["3.12"],
344-
system_test_external_dependencies=["psutil","flaky"],
352+
system_test_external_dependencies=["psutil", "flaky"],
345353
)
346354
s.move(templated_files, excludes=[".coveragerc", ".github/**", "README.rst", "docs/**", ".kokoro/**"])
347355

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

noxfile.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@
4141
DEFAULT_PYTHON_VERSION = "3.14"
4242

4343
UNIT_TEST_PYTHON_VERSIONS: List[str] = [
44-
"3.7",
45-
"3.8",
4644
"3.9",
4745
"3.10",
4846
"3.11",
@@ -363,8 +361,7 @@ def cover(session):
363361
session.run("coverage", "erase")
364362

365363

366-
# py > 3.10 not supported yet
367-
@nox.session(python="3.10")
364+
@nox.session(python=DEFAULT_PYTHON_VERSION)
368365
def docs(session):
369366
"""Build the docs for this library."""
370367

0 commit comments

Comments
 (0)