Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .kokoro/system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ packages_with_system_tests=(
"google-cloud-logging"
"google-cloud-ndb"
"google-cloud-pubsub"
"google-cloud-spanner"
"google-cloud-testutils"
"sqlalchemy-bigquery"
"pandas-gbq"
Expand Down
4 changes: 0 additions & 4 deletions .librarian/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ libraries:
# Allow releases for google-cloud-storage once this bug is fixed.
- id: "google-cloud-storage"
release_blocked: true
# TODO(https://github.com/googleapis/google-cloud-python/issues/16490):
# Allow generation for google-cloud-spanner once this bug is fixed.
- id: "google-cloud-spanner"
generate_blocked: true
# TODO(https://github.com/googleapis/google-cloud-python/issues/16494):
# Allow generation for google-cloud-bigtable once this bug is fixed.
- id: "google-cloud-bigtable"
Expand Down
1,391 changes: 1,281 additions & 110 deletions .librarian/generator-input/client-post-processing/spanner-integration.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "spanner",
"name_pretty": "Cloud Spanner",
"product_documentation": "https://cloud.google.com/spanner/docs/",
"client_documentation": "https://cloud.google.com/python/docs/reference/spanner/latest",
"issue_tracker": "https://issuetracker.google.com/issues?q=componentid:190851%2B%20status:open",
"release_level": "stable",
"language": "python",
"library_type": "GAPIC_COMBO",
"repo": "googleapis/google-cloud-python",
"distribution_name": "google-cloud-spanner",
"api_id": "spanner.googleapis.com",
"requires_billing": true,
"default_version": "v1",
"codeowner_team": "@googleapis/spanner-team",
"api_shortname": "spanner",
"api_description": "is the world's first fully managed relational database service \nto offer both strong consistency and horizontal scalability for \nmission-critical online transaction processing (OLTP) applications. With Cloud \nSpanner you enjoy all the traditional benefits of a relational database; but \nunlike any other relational database service, Cloud Spanner scales horizontally \nto hundreds or thousands of servers to handle the biggest transactional \nworkloads."
}
18 changes: 16 additions & 2 deletions .librarian/state.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3246,7 +3246,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-spanner
version: 3.64.0
last_generated_commit: 64f1dbf504bab7b58ed96a539a5b26a7ebfc65c7
last_generated_commit: 3e09ac03bab9dba5b8800248cf10190219938a26
apis:
- path: google/spanner/admin/instance/v1
service_config: spanner.yaml
Expand Down Expand Up @@ -3279,9 +3279,11 @@ libraries:
- ^packages/google-cloud-spanner/docs/spanner_v1/spanner.rst
- ^packages/google-cloud-spanner/docs/spanner_v1/services_.rst
- ^packages/google-cloud-spanner/docs/spanner_v1/types_.rst
- ^packages/google-cloud-spanner/docs/spanner_admin_database_v1/database_admin.rst
- ^packages/google-cloud-spanner/docs/spanner_admin_database_v1/spanner_admin_database.rst
- ^packages/google-cloud-spanner/docs/spanner_admin_database_v1/services_.rst
- ^packages/google-cloud-spanner/docs/spanner_admin_database_v1/types_.rst
- ^packages/google-cloud-spanner/docs/spanner_admin_instance_v1/instance_admin.rst
- ^packages/google-cloud-spanner/docs/spanner_admin_instance_v1/spanner_admin_instance.rst
- ^packages/google-cloud-spanner/docs/spanner_admin_instance_v1/services_.rst
- ^packages/google-cloud-spanner/docs/spanner_admin_instance_v1/types_.rst
Expand All @@ -3306,10 +3308,22 @@ libraries:
- ^packages/google-cloud-spanner/google/cloud/spanner_admin_instance_v1/py.typed
- ^packages/google-cloud-spanner/google/cloud/spanner_admin_instance_v1/services
- ^packages/google-cloud-spanner/google/cloud/spanner_admin_instance_v1/types
- ^packages/google-cloud-spanner/google/cloud/spanner_admin_database/__init__.py
- ^packages/google-cloud-spanner/google/cloud/spanner_admin_database/gapic_version.py
- ^packages/google-cloud-spanner/google/cloud/spanner_admin_database/py.typed
- ^packages/google-cloud-spanner/google/cloud/spanner_admin_instance/__init__.py
- ^packages/google-cloud-spanner/google/cloud/spanner_admin_instance/gapic_version.py
- ^packages/google-cloud-spanner/google/cloud/spanner_admin_instance/py.typed
- ^packages/google-cloud-spanner/google/cloud/spanner/__init__.py
- ^packages/google-cloud-spanner/google/cloud/spanner/gapic_version.py
- ^packages/google-cloud-spanner/google/cloud/spanner/py.typed
- ^packages/google-cloud-spanner/testing
- ^packages/google-cloud-spanner/tests/__init__.py
- ^packages/google-cloud-spanner/tests/unit/__init__.py
- ^packages/google-cloud-spanner/tests/unit/gapic
- ^packages/google-cloud-spanner/tests/unit/gapic/spanner_admin_database_v1
- ^packages/google-cloud-spanner/tests/unit/gapic/spanner_admin_instance_v1
- ^packages/google-cloud-spanner/tests/unit/gapic/spanner_v1
- ^packages/google-cloud-spanner/tests/unit/gapic/__init__.py
- ^packages/google-cloud-spanner/samples/generated_samples
tag_format: '{id}-v{version}'
- id: google-cloud-speech
Expand Down
13 changes: 13 additions & 0 deletions packages/google-cloud-spanner/.coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[run]
branch = True

[report]
show_missing = True
omit =
google/cloud/spanner/__init__.py
google/cloud/spanner/gapic_version.py
exclude_lines =
# Re-enable the standard pragma
pragma: NO COVER
# Ignore debug-only repr
def __repr__
15 changes: 8 additions & 7 deletions packages/google-cloud-spanner/.flake8
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
# -*- coding: utf-8 -*-
#
# Copyright 2024 Google LLC
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Generated by synthtool. DO NOT EDIT!
#
[flake8]
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333):
# Resolve flake8 lint issues
ignore = E203, E231, E266, E501, W503
exclude =
# Exclude generated code.
**/proto/**
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333):
# Ensure that generated code passes flake8 lint
**/gapic/**
**/services/**
**/types/**
# Exclude Protobuf gencode
*_pb2.py

# Standard linting exemptions.
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-spanner/.repo-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
"default_version": "v1",
"codeowner_team": "@googleapis/spanner-team",
"api_shortname": "spanner",
"api_description": "is a fully managed, mission-critical, \nrelational database service that offers transactional consistency at global scale, \nschemas, SQL (ANSI 2011 with extensions), and automatic, synchronous replication \nfor high availability.\n\nBe sure to activate the Cloud Spanner API on the Developer's Console to\nuse Cloud Spanner from your project."
"api_description": "is the world's first fully managed relational database service \nto offer both strong consistency and horizontal scalability for \nmission-critical online transaction processing (OLTP) applications. With Cloud \nSpanner you enjoy all the traditional benefits of a relational database; but \nunlike any other relational database service, Cloud Spanner scales horizontally \nto hundreds or thousands of servers to handle the biggest transactional \nworkloads."
}
13 changes: 4 additions & 9 deletions packages/google-cloud-spanner/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
# -*- coding: utf-8 -*-
#
# Copyright 2024 Google LLC
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Generated by synthtool. DO NOT EDIT!
#
include README.rst LICENSE
recursive-include google *.json *.proto py.typed
recursive-include google *.py *.pyi *.json *.proto py.typed
recursive-include tests *
global-exclude *.py[co]
global-exclude __pycache__

# Exclude scripts for samples readmegen
prune scripts/readme-gen
Loading
Loading