diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 0d0fdb861..2833fe98f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -8,9 +8,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v4 - name: Setup Python - uses: actions/setup-python@v6 + uses: actions/setup-python@v5 with: python-version: "3.10" - name: Install nox @@ -24,9 +24,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v4 - name: Setup Python - uses: actions/setup-python@v6 + uses: actions/setup-python@v5 with: python-version: "3.10" - name: Install nox diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index f153c3ae7..9e00ac9bf 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -143,12 +143,12 @@ Running System Tests $ nox -s system # Run a single system test - $ nox -s system-3.12 -- -k + $ nox -s system-3.13 -- -k .. note:: - System tests are only configured to run under Python 3.12. + System tests are only configured to run under Python 3.13. 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 diff --git a/docs/index.rst b/docs/index.rst index daba0c7b3..314e6de79 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -3,32 +3,24 @@ .. include:: multiprocessing.rst -API Documentation ------------------ - -.. note:: - - The client library version (currently ``2.x``) should not be confused with the - backend API version (currently ``v1``), hence some references to ``v1`` can be found - across the documentation. - +API Reference +------------- .. toctree:: - :maxdepth: 4 + :maxdepth: 2 - Publisher Client - Subscriber Client - Types + pubsub_v1/services_ + pubsub_v1/types_ Migration Guide --------------- -See the guide below for instructions on migrating to the 2.x release of this library. +See the guide below for instructions on migrating to the latest version. .. toctree:: :maxdepth: 2 - UPGRADING +  UPGRADING Changelog @@ -37,10 +29,9 @@ Changelog For a list of all ``google-cloud-pubsub`` releases: .. toctree:: - :maxdepth: 2 - - changelog + :maxdepth: 2 + changelog .. toctree:: :hidden: diff --git a/noxfile.py b/noxfile.py index 70e65a571..37ec4384c 100644 --- a/noxfile.py +++ b/noxfile.py @@ -60,7 +60,7 @@ UNIT_TEST_EXTRAS: List[str] = [] UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {} -SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.12"] +SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.13"] SYSTEM_TEST_STANDARD_DEPENDENCIES: List[str] = [ "mock", "pytest", @@ -161,7 +161,7 @@ def lint(session): session.run("flake8", "google", "tests") -@nox.session(python=DEFAULT_PYTHON_VERSION) +@nox.session(python="3.10") def blacken(session): """Run black. Format code to uniform standard.""" session.install(BLACK_VERSION) diff --git a/owlbot.py b/owlbot.py index 2a131d557..e90039090 100644 --- a/owlbot.py +++ b/owlbot.py @@ -340,10 +340,21 @@ versions=gcp.common.detect_versions(path="./google", default_first=True), unit_test_python_versions=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"], unit_test_dependencies=["flaky"], - system_test_python_versions=["3.12"], - system_test_external_dependencies=["psutil","flaky"], + system_test_python_versions=["3.13"], + system_test_external_dependencies=["psutil", "flaky"], +) +s.move( + templated_files, + excludes=[ + ".coveragerc", + ".github/blunderbuss.yml", + ".github/release-please.yml", + "README.rst", + "docs/index.rst" ".github/workflows/docs.yml", + ".github/workflows/lint.yml", + "samples/snippets/noxfile.py", + ], ) -s.move(templated_files, excludes=[".coveragerc", ".github/blunderbuss.yml", ".github/release-please.yml", "README.rst", "docs/index.rst"]) python.py_samples(skip_readmes=True)