Skip to content

Commit 7c06a55

Browse files
committed
fix: restore local gapic-generator dependencies and make gapic_v1 imports conditional
1 parent d7b4859 commit 7c06a55

69 files changed

Lines changed: 71 additions & 69 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/gapic-generator/gapic/templates/setup.py.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ else:
3636
release_status = "Development Status :: 5 - Production/Stable"
3737

3838
dependencies = [
39-
"google-api-core @ git+https://github.com/googleapis/google-cloud-python.git#egg=google-api-core&subdirectory=packages/google-api-core",
39+
"google-api-core[grpc] >= 2.25.0, <3.0.0",
4040
# Exclude incompatible versions of `google-auth`
4141
# See https://github.com/googleapis/google-cloud-python/issues/12364
4242
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",

packages/gapic-generator/gapic/templates/testing/_default_constraints.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% from '_pypi_packages.j2' import pypi_packages %}
22
# This constraints file is required for unit tests.
33
# List all library dependencies and extras in this file.
4-
google-api-core @ git+https://github.com/googleapis/google-cloud-python.git#egg=google-api-core&subdirectory=packages/google-api-core
4+
google-api-core
55
google-auth
66
grpcio
77
proto-plus

packages/gapic-generator/gapic/templates/testing/constraints-3.10-async-rest.txt.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# pinning their versions to their lower bounds.
99
# For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0",
1010
# then this file should have google-cloud-foo==1.14.0
11-
google-api-core @ git+https://github.com/googleapis/google-cloud-python.git#egg=google-api-core&subdirectory=packages/google-api-core
11+
google-api-core==2.25.0
1212
google-auth==2.35.0
1313
grpcio==1.59.0
1414
proto-plus==1.26.1

packages/gapic-generator/gapic/templates/testing/constraints-3.10.txt.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# pinning their versions to their lower bounds.
66
# For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0",
77
# then this file should have google-cloud-foo==1.14.0
8-
google-api-core @ git+https://github.com/googleapis/google-cloud-python.git#egg=google-api-core&subdirectory=packages/google-api-core
8+
google-api-core==2.25.0
99
google-auth==2.14.1
1010
grpcio==1.59.0
1111
proto-plus==1.26.1

packages/gapic-generator/gapic/templates/testing/constraints-3.13.txt.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Require the latest major version be installed for each dependency.
77
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0",
88
# Then this file should have google-cloud-foo>=1
9-
google-api-core @ git+https://github.com/googleapis/google-cloud-python.git#egg=google-api-core&subdirectory=packages/google-api-core
9+
google-api-core>=2
1010
google-auth>=2
1111
grpcio>=1
1212
proto-plus>=1

packages/gapic-generator/gapic/templates/testing/constraints-3.14.txt.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Require the latest major version be installed for each dependency.
77
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0",
88
# Then this file should have google-cloud-foo>=1
9-
google-api-core @ git+https://github.com/googleapis/google-cloud-python.git#egg=google-api-core&subdirectory=packages/google-api-core
9+
google-api-core>=2
1010
google-auth>=2
1111
grpcio>=1
1212
proto-plus>=1

packages/gapic-generator/gapic/templates/testing/constraints-3.15.txt.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Require the latest major version be installed for each dependency.
77
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0",
88
# Then this file should have google-cloud-foo>=1
9-
google-api-core @ git+https://github.com/googleapis/google-cloud-python.git#egg=google-api-core&subdirectory=packages/google-api-core
9+
google-api-core>=2
1010
google-auth>=2
1111
grpcio>=1
1212
proto-plus>=1

packages/gapic-generator/requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
click
2-
google-api-core @ git+https://github.com/googleapis/google-cloud-python.git#egg=google-api-core&subdirectory=packages/google-api-core
2+
google-api-core
33
googleapis-common-protos
44
jinja2
55
MarkupSafe

packages/gapic-generator/requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,9 @@ frozenlist==1.8.0 \
560560
# via
561561
# aiohttp
562562
# aiosignal
563-
google-api-core @ git+https://github.com/googleapis/google-cloud-python.git#egg=google-api-core&subdirectory=packages/google-api-core
563+
google-api-core==2.30.3 \
564+
--hash=sha256:a85761ba72c444dad5d611c2220633480b2b6be2521eca69cca2dbb3ffd6bfe8 \
565+
--hash=sha256:e601a37f148585319b26db36e219df68c5d07b6382cff2d580e83404e44d641b
564566
# via -r requirements.in
565567
google-auth==2.52.0 \
566568
--hash=sha256:01f30e1a9e3638698d89464f5e603ce29d18e1c0e63ec31ac570aba4e164aaf5 \

packages/gapic-generator/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# Ensure that the lower bounds of these dependencies match what we have in the
2929
# templated setup.py.j2: https://github.com/googleapis/gapic-generator-python/blob/main/gapic/templates/setup.py.j2
3030
"click >= 6.7",
31-
"google-api-core @ git+https://github.com/googleapis/google-cloud-python.git#egg=google-api-core&subdirectory=packages/google-api-core",
31+
"google-api-core[grpc] >= 2.25.0, < 3.0.0",
3232
"googleapis-common-protos >= 1.55.0, < 2.0.0",
3333
"grpcio >= 1.24.3, < 2.0.0",
3434
# 2.11.0 is required which adds the `default` argument to `jinja-filters.map()`

0 commit comments

Comments
 (0)