17
0
Files
python-google-cloud-spanner/python-google-cloud-spanner.spec

120 lines
4.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-google-cloud-spanner
#
Accepting request 1272831 from home:glaubitz:branches:devel:languages:python:google - 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/request/show/1272831 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:google/python-google-cloud-spanner?expand=0&rev=12
2025-04-28 11:31:25 +00:00
# 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}
Accepting request 1312327 from home:glaubitz:branches:devel:languages:python:google - Update to 3.58.0 * **spanner:** Support setting read lock mode (#1404) * Remove Python 3.7 and 3.8 as supported runtimes (#1395) - from version 3.57.0 * Support configuring logger in dbapi kwargs (#1400) - from version 3.56.0 * Add support for multiplexed sessions - read/write (#1389) * Add support for multiplexed sessions (#1383) * Default enable multiplex session for all operations unless explicitly set to false (#1394) * **spanner:** Add new change_stream.proto (#1382) * Skip gRPC trailers for StreamingRead & ExecuteStreamingSql (#1385) - from version 3.55.0 * Add a `last` field in the `PartialResultSet` (d532d57) * Add support for multiplexed sessions (#1381) * Add throughput_mode to UpdateDatabaseDdlRequest to be used by Spanner Migration Tool. See https://github.com/GoogleCloudPlatform/spanner-migration-tool (d532d57) * Support fine-grained permissions database roles in connect (#1338) * E2E tracing metadata append issue (#1357) * Pass through kwargs in dbapi connect (#1368) * Remove setup.cfg configuration for creating universal wheels (#1324) * A comment for field `chunked_value` in message `.google.spanner.v1.PartialResultSet` is changed (d532d57) * A comment for field `precommit_token` in message `.google.spanner.v1.PartialResultSet` is changed (d532d57) * A comment for field `precommit_token` in message `.google.spanner.v1.ResultSet` is changed (d532d57) * A comment for field `query_plan` in message `.google.spanner.v1.ResultSetStats` is changed (d532d57) OBS-URL: https://build.opensuse.org/request/show/1312327 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:google/python-google-cloud-spanner?expand=0&rev=15
2025-10-20 11:01:34 +00:00
Version: 3.58.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-monitoring >= 2.16.0}
BuildRequires: %{python_module google-cloud-spanner = %{version}}
BuildRequires: %{python_module mmh3 >= 4.1.0}
BuildRequires: %{python_module opentelemetry-api >= 1.22.0}
BuildRequires: %{python_module opentelemetry-resourcedetector-gcp >= 1.8.0a0}
BuildRequires: %{python_module opentelemetry-sdk >= 1.22.0}
BuildRequires: %{python_module opentelemetry-semantic-conventions >= 0.43b0}
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
Accepting request 1272831 from home:glaubitz:branches:devel:languages:python:google - 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/request/show/1272831 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:google/python-google-cloud-spanner?expand=0&rev=12
2025-04-28 11:31:25 +00:00
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
Accepting request 1272831 from home:glaubitz:branches:devel:languages:python:google - 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/request/show/1272831 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:google/python-google-cloud-spanner?expand=0&rev=12
2025-04-28 11:31:25 +00:00
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 <<EOF
{
"client_id": "111111111111-1qq1q1qq1qqq111qq1qqqq11q1qqqqqq.apps.googleusercontent.com",
"client_secret": "d-XXXXXXXXXXXXXXXXXXXXXX",
"refresh_token": "1//1111111111111111111111111111-XXXXXXXXX-AAAAAAAAAAA_BBBBBBBBBBBBBBBBBBBBBB-CCCCCCCCCCCCCCCCCCCCCCCCCC",
"type": "authorized_user"
}
EOF
export GOOGLE_CLOUD_PROJECT="PROJECT"
%pytest -x tests/unit
%endif
%if %{without test}
%files %{python_files}
%doc README.rst
%license LICENSE
%pycache_only %{python_sitelib}/google/cloud/__pycache__
%dir %{python_sitelib}/google
%dir %{python_sitelib}/google/cloud
%{python_sitelib}/google/cloud/spanner*
%{python_sitelib}/google_cloud_spanner-%{version}.dist-info
%endif
%changelog