From 3bbb2cd271dac6ff5e066fa10655dadfdcfcd842 Mon Sep 17 00:00:00 2001 From: Chris Wilcox Date: Fri, 17 Jul 2020 14:40:22 -0700 Subject: [PATCH] fix: modify admin pkg name in gapic --- .../datastore_admin_v1/gapic/datastore_admin_client.py | 2 +- synth.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/google/cloud/datastore_admin_v1/gapic/datastore_admin_client.py b/google/cloud/datastore_admin_v1/gapic/datastore_admin_client.py index 9495419e..62db2b92 100644 --- a/google/cloud/datastore_admin_v1/gapic/datastore_admin_client.py +++ b/google/cloud/datastore_admin_v1/gapic/datastore_admin_client.py @@ -45,7 +45,7 @@ _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - "google-cloud-datastore-admin", + "google-cloud-datastore", ).version diff --git a/synth.py b/synth.py index 792c159f..f0d11183 100644 --- a/synth.py +++ b/synth.py @@ -49,6 +49,12 @@ s.move(library / "google/cloud/datastore_admin_v1/proto") +s.replace( + "google/**/datastore_admin_client.py", + "google-cloud-datastore-admin", + "google-cloud-datstore" +) + # TODO(busunkim): Remove during the microgenerator transition. # This re-orders the parameters to avoid breaking existing code. num = s.replace(