@@ -390,4 +390,71 @@ replacements:
390390 :hidden:
391391
392392 summary_overview.md
393- count : 1
393+ count : 1
394+ # --- FIX: Restore setup.py description ---
395+ - paths :
396+ - " packages/google-cloud-pubsub/setup.py"
397+ before : ' description = "Google Cloud Pubsub API client library"'
398+ after : ' description = "Google Cloud Pub/Sub API client library"'
399+ count : 1
400+
401+ # --- FIX: Drop Py 3.7/3.8 classifiers in setup.py ---
402+ - paths :
403+ - " packages/google-cloud-pubsub/setup.py"
404+ before : ' ([ \t]+"Programming Language :: Python :: 3",\n)[ \t]+"Programming Language :: Python :: 3\.7",\n[ \t]+"Programming Language :: Python :: 3\.8",\n'
405+ after : ' \g<1>'
406+ count : 1
407+
408+ # --- FIX: Restore setup.py python_requires to >=3.9 ---
409+ - paths :
410+ - " packages/google-cloud-pubsub/setup.py"
411+ before : ' python_requires=">=3\.7",'
412+ after : ' python_requires=">=3.9",'
413+ count : 1
414+
415+ # --- FIX: Restore comment and allow google-api-core >= 1.34.0 ---
416+ - paths :
417+ - " packages/google-cloud-pubsub/setup.py"
418+ before : ' ([ \t]+)"google-api-core\[grpc\] >= 1\.34\.1,([^"]+)",'
419+ after : |-
420+ \g<1># google-api-core >= 1.34.0 is allowed in order to support google-api-core 1.x
421+ \g<1>"google-api-core[grpc] >= 1.34.0,\g<2>",
422+ count : 1
423+
424+ # --- FIX: Restore pubsub-specific grpcio bound ---
425+ - paths :
426+ - " packages/google-cloud-pubsub/setup.py"
427+ before : ' ([ \t]+)"grpcio >= [0-9\.]+, < 2\.0\.0",\n'
428+ after : |-
429+ \g<1>"grpcio >= 1.51.3, < 2.0.0; python_version < '3.14'", # https://github.com/googleapis/python-pubsub/issues/609
430+ count : 1
431+
432+ # --- FIX: Restore missing dependencies, extras, and url dynamically ---
433+ - paths :
434+ - " packages/google-cloud-pubsub/setup.py"
435+ before : ' ([ \t]+)("grpc-google-iam-v1.*",\n)\]\nextras = \{\}\nurl = "https://github\.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-pubsub"'
436+ after : |-
437+ \g<1>\g<2>\g<1>"grpcio-status >= 1.33.2",
438+ \g<1>"opentelemetry-api >= 1.27.0",
439+ \g<1>"opentelemetry-sdk >= 1.27.0",
440+ ]
441+ extras = {"libcst": "libcst >= 0.3.10"}
442+ url = "https://github.com/googleapis/python-pubsub"
443+ count : 1
444+ # --- FIX: Blend README Python versions ---
445+ - paths :
446+ - " packages/google-cloud-pubsub/README.rst"
447+ before : ' Supported Python Versions\n\^\^\^\^\^\^\^\^\^\^\^\^\^\^\^\^\^\^\^\^\^\^\^\^\^[\s\S]+?\.\. _end-of-life: https://devguide\.python\.org/devcycle/#end-of-life-branches'
448+ after : |-
449+ Supported Python Versions
450+ ^^^^^^^^^^^^^^^^^^^^^^^^^
451+ Python >= 3.9
452+
453+ Deprecated Python Versions
454+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
455+ Python < 3.9
456+
457+ The last version of this library compatible with Python 3.7 and 3.8 is google-cloud-pubsub==2.34.0.
458+
459+ The last version of this library compatible with Python 2.7 is google-cloud-pubsub==1.7.0.
460+ count : 1
0 commit comments