-
Notifications
You must be signed in to change notification settings - Fork 78
chore: add async_rest extra for async rest dependencies
#2195
Changes from 5 commits
a6c1789
17a1c5f
a468255
3ec9135
df3ff6f
7c4679e
4247f57
50dc716
a75bfce
fcc4982
1160ace
1214787
4607716
56e9f05
715926a
6533c77
9a370b5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,15 @@ | ||
| {# TODO(https://github.com/googleapis/gapic-generator-python/issues/2121): Remove the following variable (and the condition later in this file) for async rest transport once support for it is GA. #} | ||
| {% set rest_async_io_enabled = api.all_library_settings[api.naming.proto_package].python_settings.experimental_features.rest_async_io_enabled %} | ||
| {% from '_pypi_packages.j2' import pypi_packages %} | ||
| # This constraints file is required for unit tests. | ||
| # List all library dependencies and extras in this file. | ||
| google-api-core | ||
| {% if rest_async_io_enabled %} | ||
| google-auth | ||
| # from google-auth[aiohttp] | ||
| aiohttp | ||
| requests | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We shouldn't include the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. addressed.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure this is true. The So in other words, removing Does this make sense? LMK if I've misunderstood something.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. addressed. See my other comment and discussing this over our offline chat. |
||
| {% endif %} | ||
| proto-plus | ||
| protobuf | ||
| {% for package_tuple, package_info in pypi_packages.items() %} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,22 @@ | ||
| {# TODO(https://github.com/googleapis/gapic-generator-python/issues/2121): Remove the following variable (and the condition later in this file) for async rest transport once support for it is GA. #} | ||
| {% set rest_async_io_enabled = api.all_library_settings[api.naming.proto_package].python_settings.experimental_features.rest_async_io_enabled %} | ||
| {% from '_pypi_packages.j2' import pypi_packages %} | ||
| # This constraints file is used to check that lower bounds | ||
| # are correct in setup.py | ||
| # List all library dependencies and extras in this file. | ||
| # Pin the version to the lower bound. | ||
| # e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0dev", | ||
| # Then this file should have google-cloud-foo==1.14.0 | ||
| {% if rest_async_io_enabled %} | ||
| google-api-core==2.20.0 | ||
| google-auth==2.35.0 | ||
| # from google-auth[aiohttp] | ||
| aiohttp==3.6.2 | ||
| requests==2.20.0 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider creating a separate constraints file so that we know that the client library without the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. addressed.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See comment above. |
||
| {% else %} | ||
| google-api-core==1.34.1 | ||
| google-auth==2.14.1 | ||
| {% endif %} | ||
| proto-plus==1.22.3 | ||
| protobuf==3.20.2 | ||
| {% for package_tuple, package_info in pypi_packages.items() %} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use
{{ api.naming.warehouse_package_name }}instead of<insert_library_name>?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed.