From 546f3cd2d89176b8468d43ef07eebab1176006a1704d73d9740630207a0dcc8f Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Mon, 28 Apr 2025 11:31:25 +0000 Subject: [PATCH] - Update to 3.53.0 * Add AddSplitPoints API * Add Attempt, Operation and GFE Metrics (#1302) * Add REST Interceptors which support reading metadata * Add support for opt-in debug logging * Add support for reading selective GAPIC generation methods from service YAML * Add the last statement option to ExecuteSqlRequest and ExecuteBatchDmlRequest * Add UUID in Spanner TypeCode enum * End to end tracing (#1315) * Exposing FreeInstanceAvailability in InstanceConfig * Exposing FreeInstanceMetadata in Instance configuration (to define the metadata related to FREE instance type) * Exposing InstanceType in Instance configuration (to define PROVISIONED or FREE spanner instance) * Exposing QuorumType in InstanceConfig * Exposing storage_limit_per_processing_unit in InstanceConfig * Snapshot isolation (#1318) * **spanner:** A new enum `IsolationLevel` is added (#1224) * Allow Protobuf 6.x (#1320) * Cleanup after metric integration test (#1322) * **deps:** Require grpc-google-iam-v1 >= 0.14.0 * Fix typing issue with gRPC metadata when key ends in -bin * Add option for last_statement (#1313) * A comment for enum `DefaultBackupScheduleType` is changed * A comment for enum value `AUTOMATIC` in enum `DefaultBackupScheduleType` is changed * A comment for enum value `GOOGLE_MANAGED` in enum `Type` is changed * A comment for enum value `NONE` in enum `DefaultBackupScheduleType` is changed * A comment for enum value `USER_MANAGED` in enum `Type` is changed * A comment for field `base_config` in message `.google.spanner.admin.instance.v1.InstanceConfig` is changed OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:google/python-google-cloud-spanner?expand=0&rev=12 --- .gitattributes | 23 +++++ .gitignore | 1 + _multibuild | 3 + google-cloud-spanner-3.40.1.tar.gz | 3 + google_cloud_spanner-3.50.1.tar.gz | 3 + google_cloud_spanner-3.53.0.tar.gz | 3 + python-google-cloud-spanner.changes | 140 ++++++++++++++++++++++++++++ python-google-cloud-spanner.spec | 113 ++++++++++++++++++++++ 8 files changed, 289 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _multibuild create mode 100644 google-cloud-spanner-3.40.1.tar.gz create mode 100644 google_cloud_spanner-3.50.1.tar.gz create mode 100644 google_cloud_spanner-3.53.0.tar.gz create mode 100644 python-google-cloud-spanner.changes create mode 100644 python-google-cloud-spanner.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/google-cloud-spanner-3.40.1.tar.gz b/google-cloud-spanner-3.40.1.tar.gz new file mode 100644 index 0000000..e054efd --- /dev/null +++ b/google-cloud-spanner-3.40.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:616b07c86cdae6c78bad27b8ab39d8ce7a273511f2b91fe260f170d926653c2e +size 441712 diff --git a/google_cloud_spanner-3.50.1.tar.gz b/google_cloud_spanner-3.50.1.tar.gz new file mode 100644 index 0000000..0582959 --- /dev/null +++ b/google_cloud_spanner-3.50.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:82937ea03b55de86bddf622f555aeae65ae86bb4f28ab35bd920ac505917c9bf +size 575566 diff --git a/google_cloud_spanner-3.53.0.tar.gz b/google_cloud_spanner-3.53.0.tar.gz new file mode 100644 index 0000000..5b5e0ab --- /dev/null +++ b/google_cloud_spanner-3.53.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c7be3134b74928cf928d1f73b58c722fc2014346de1240a0cc8ffdd3222f606 +size 659445 diff --git a/python-google-cloud-spanner.changes b/python-google-cloud-spanner.changes new file mode 100644 index 0000000..e133a8b --- /dev/null +++ b/python-google-cloud-spanner.changes @@ -0,0 +1,140 @@ +------------------------------------------------------------------- +Sat Apr 26 08:45:28 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 3.53.0 + * Add AddSplitPoints API + * Add Attempt, Operation and GFE Metrics (#1302) + * Add REST Interceptors which support reading metadata + * Add support for opt-in debug logging + * Add support for reading selective GAPIC generation methods from service YAML + * Add the last statement option to ExecuteSqlRequest and ExecuteBatchDmlRequest + * Add UUID in Spanner TypeCode enum + * End to end tracing (#1315) + * Exposing FreeInstanceAvailability in InstanceConfig + * Exposing FreeInstanceMetadata in Instance configuration + (to define the metadata related to FREE instance type) + * Exposing InstanceType in Instance configuration + (to define PROVISIONED or FREE spanner instance) + * Exposing QuorumType in InstanceConfig + * Exposing storage_limit_per_processing_unit in InstanceConfig + * Snapshot isolation (#1318) + * **spanner:** A new enum `IsolationLevel` is added (#1224) + * Allow Protobuf 6.x (#1320) + * Cleanup after metric integration test (#1322) + * **deps:** Require grpc-google-iam-v1 >= 0.14.0 + * Fix typing issue with gRPC metadata when key ends in -bin + * Add option for last_statement (#1313) + * A comment for enum `DefaultBackupScheduleType` is changed + * A comment for enum value `AUTOMATIC` in enum `DefaultBackupScheduleType` is changed + * A comment for enum value `GOOGLE_MANAGED` in enum `Type` is changed + * A comment for enum value `NONE` in enum `DefaultBackupScheduleType` is changed + * A comment for enum value `USER_MANAGED` in enum `Type` is changed + * A comment for field `base_config` in message + `.google.spanner.admin.instance.v1.InstanceConfig` is changed + * A comment for field `default_backup_schedule_type` in message + `.google.spanner.admin.instance.v1.Instance` + * A comment for field `filter` in message + `.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest` + is changed + * A comment for field `filter` in message + `.google.spanner.admin.instance.v1.ListInstancePartitionOperationsRequest` + is changed + * A comment for field `instance_config` in message + `.google.spanner.admin.instance.v1.CreateInstanceConfigRequest` + is changed + * A comment for field `instance_partition_deadline` in message + `.google.spanner.admin.instance.v1.ListInstancePartitionOperationsRequest` + is changed + * A comment for field `location` in message + `.google.spanner.admin.instance.v1.ReplicaInfo` is changed + * A comment for field `node_count` in message + `.google.spanner.admin.instance.v1.Instance` is changed + * A comment for field `node_count` in message + `.google.spanner.admin.instance.v1.InstancePartition` is changed + * A comment for field `operations` in message + `.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse` + is changed + * A comment for field `operations` in message + `.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse` + is changed + * A comment for field `optional_replicas` in message + `.google.spanner.admin.instance.v1.InstanceConfig` is changed + * A comment for field `parent` in message + `.google.spanner.admin.instance.v1.ListInstancePartitionsRequest` is changed + * A comment for field `processing_units` in message + `.google.spanner.admin.instance.v1.Instance` is changed + * A comment for field `processing_units` in message + `.google.spanner.admin.instance.v1.InstancePartition` is changed + * A comment for field `referencing_backups` in message + `.google.spanner.admin.instance.v1.InstancePartition` is changed + * A comment for field `replicas` in message + `.google.spanner.admin.instance.v1.InstanceConfig` is changed + * A comment for field `storage_utilization_percent` in message + `.google.spanner.admin.instance.v1.AutoscalingConfig` is changed + * A comment for field `unreachable` in message + `.google.spanner.admin.instance.v1.ListInstancePartitionsResponse` is changed + * A comment for message `CreateInstanceConfigRequest` is changed + * A comment for message `DeleteInstanceConfigRequest` is changed + * A comment for message `UpdateInstanceConfigRequest` is changed + * A comment for method `CreateInstance` in service `InstanceAdmin` is changed + * A comment for method `CreateInstanceConfig` in service `InstanceAdmin` is changed + * A comment for method `CreateInstancePartition` in service `InstanceAdmin` is changed + * A comment for method `ListInstanceConfigOperations` in service `InstanceAdmin` is changed + * A comment for method `ListInstanceConfigs` in service `InstanceAdmin` is changed + * A comment for method `ListInstancePartitionOperations` in service `InstanceAdmin` is changed + * A comment for method `MoveInstance` in service `InstanceAdmin` is changed + * A comment for method `UpdateInstance` in service `InstanceAdmin` is changed + * A comment for method `UpdateInstanceConfig` in service `InstanceAdmin` is changed + * A comment for method `UpdateInstancePartition` in service `InstanceAdmin` is changed + * Fix typo timzeone -> timezone +- from version 3.52.0 + * Add additional opentelemetry span events for session pool + * Add GCP standard otel attributes for python client (#1308) + * Add updated span events + trace more methods (#1259) + * MetricsTracer implementation (#1291) + * Support GRAPH and pipe syntax in dbapi (#1285) + * Support transaction and request tags in dbapi (#1262) + * **x-goog-spanner-request-id:** Introduce AtomicCounter (#1275) + * Retry UNAVAILABLE errors for streaming RPCs (#1278) + * **tracing:** Ensure nesting of Transaction.begin under commit + + fix suggestions from feature review (#1287) + * **tracing:** Only set span.status=OK if UNSET (#1248) + * Update retry strategy for mutation calls to handle aborted transactions (#1279) +- from version 3.51.0 + * Add connection variable for ignoring transaction warnings (#1249) + * **spanner:** Implement custom tracer_provider injection for opentelemetry traces (#1229) + * Support float32 parameters in dbapi (#1245) + * Allow setting connection.read_only to same value (#1247) + * Allow setting staleness to same value in tx (#1253) + * Dbapi raised AttributeError with [] as arguments (#1257) + * Optimize ResultSet decoding (#1244) + * Remove repeated GetSession calls for FixedSizePool (#1252) + * **samples:** Add samples for Cloud Spanner Default Backup Schedules (#1238) +- Update Suggests from setup.py + +------------------------------------------------------------------- +Mon Nov 18 13:07:49 UTC 2024 - Markéta Machová + +- Update to 3.50.1 + * Add BatchWrite API + * spanner: Add autoscaling config to the instance proto + * spanner: Add directed_read_option in spanner.proto + * Add max_commit_delay API + * Exposing Spanner client in dbapi connection + * Add support of float32 type + * Add support for PG.OID in parameterized queries + * spanner: Adding EXPECTED_FULFILLMENT_PERIOD to the indicate instance creation times + * Add support for Cloud Spanner Scheduled Backups + * spanner: Add support for Cloud Spanner Default Backup Schedules + * many more changes, see upstream CHANGELOG.md + +------------------------------------------------------------------- +Wed Jan 10 10:05:24 UTC 2024 - Daniel Garcia + +- Run tests using multibuild +- Add google and google/cloud folders to package ownership + +------------------------------------------------------------------- +Tue Jan 9 07:36:26 UTC 2024 - Daniel Garcia + +- Initial version 3.40.1 (jsc#PED-6697) diff --git a/python-google-cloud-spanner.spec b/python-google-cloud-spanner.spec new file mode 100644 index 0000000..42813ab --- /dev/null +++ b/python-google-cloud-spanner.spec @@ -0,0 +1,113 @@ +# +# spec file for package python-google-cloud-spanner +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif + +%{?sle15_python_module_pythons} +Name: python-google-cloud-spanner%{psuffix} +Version: 3.53.0 +Release: 0 +Summary: Google Cloud Spanner API client library +License: Apache-2.0 +URL: https://github.com/googleapis/python-spanner +Source: https://files.pythonhosted.org/packages/source/g/google_cloud_spanner/google_cloud_spanner-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros +# SECTION test requirements +%if %{with test} +BuildRequires: %{python_module google-cloud-spanner = %{version}} +BuildRequires: %{python_module pytest-asyncio} +BuildRequires: %{python_module pytest} +%endif +# /SECTION +BuildRequires: fdupes +Requires: python-google-api-core >= 1.34.0 +Requires: python-google-cloud-core >= 1.4.4 +Requires: python-grpc-google-iam-v1 >= 0.12.4 +Requires: python-grpc-interceptor >= 0.15.4 +Requires: python-proto-plus >= 1.22.0 +Requires: python-protobuf >= 3.20.2 +Requires: python-sqlparse >= 0.4.4 +Suggests: python-google-cloud-monitoring >= 2.16.0 +Suggests: python-mmh3 >= 4.1.0 +Suggests: python-libcst >= 0.2.5 +Suggests: python-opentelemetry-api >= 1.22.0 +Suggests: python-opentelemetry-sdk >= 1.22.0 +Suggests: python-opentelemetry-semantic-conventions >= 0.43b0 +Suggests: python-opentelemetry-resourcedetector-gcp >= 1.8.0a0 +Suggests: python-opentelemetry-instrumentation >= 0.20b0 +BuildArch: noarch +%python_subpackages + +%description +Google Cloud Spanner API client library + +%prep +%autosetup -p1 -n google_cloud_spanner-%{version} + +# don't use python-mock +for i in $(find tests -name "*.py") +do + sed -i 's/^import mock/from unittest import mock/g' $i +done + +%build +%pyproject_wheel + +%install +%if %{without test} +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif + +%check +%if %{with test} +mkdir -p $HOME/.config/gcloud +cat > $HOME/.config/gcloud/application_default_credentials.json <