diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index a3da1b0d..dd98abbd 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:3e3800bb100af5d7f9e810d48212b37812c1856d20ffeafb99ebe66461b61fc7 -# created: 2023-08-02T10:53:29.114535628Z + digest: sha256:08e34975760f002746b1d8c86fdc90660be45945ee6d9db914d1508acdf9a547 +# created: 2023-10-09T14:06:13.397766266Z diff --git a/.gitignore b/.gitignore index b4243ced..d083ea1d 100644 --- a/.gitignore +++ b/.gitignore @@ -50,6 +50,7 @@ docs.metadata # Virtual environment env/ +venv/ # Test logs coverage.xml diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt index 029bd342..0332d326 100644 --- a/.kokoro/requirements.txt +++ b/.kokoro/requirements.txt @@ -113,30 +113,30 @@ commonmark==0.9.1 \ --hash=sha256:452f9dc859be7f06631ddcb328b6919c67984aca654e5fefb3914d54691aed60 \ --hash=sha256:da2f38c92590f83de410ba1a3cbceafbc74fee9def35f9251ba9a971d6d66fd9 # via rich -cryptography==41.0.3 \ - --hash=sha256:0d09fb5356f975974dbcb595ad2d178305e5050656affb7890a1583f5e02a306 \ - --hash=sha256:23c2d778cf829f7d0ae180600b17e9fceea3c2ef8b31a99e3c694cbbf3a24b84 \ - --hash=sha256:3fb248989b6363906827284cd20cca63bb1a757e0a2864d4c1682a985e3dca47 \ - --hash=sha256:41d7aa7cdfded09b3d73a47f429c298e80796c8e825ddfadc84c8a7f12df212d \ - --hash=sha256:42cb413e01a5d36da9929baa9d70ca90d90b969269e5a12d39c1e0d475010116 \ - --hash=sha256:4c2f0d35703d61002a2bbdcf15548ebb701cfdd83cdc12471d2bae80878a4207 \ - --hash=sha256:4fd871184321100fb400d759ad0cddddf284c4b696568204d281c902fc7b0d81 \ - --hash=sha256:5259cb659aa43005eb55a0e4ff2c825ca111a0da1814202c64d28a985d33b087 \ - --hash=sha256:57a51b89f954f216a81c9d057bf1a24e2f36e764a1ca9a501a6964eb4a6800dd \ - --hash=sha256:652627a055cb52a84f8c448185922241dd5217443ca194d5739b44612c5e6507 \ - --hash=sha256:67e120e9a577c64fe1f611e53b30b3e69744e5910ff3b6e97e935aeb96005858 \ - --hash=sha256:6af1c6387c531cd364b72c28daa29232162010d952ceb7e5ca8e2827526aceae \ - --hash=sha256:6d192741113ef5e30d89dcb5b956ef4e1578f304708701b8b73d38e3e1461f34 \ - --hash=sha256:7efe8041897fe7a50863e51b77789b657a133c75c3b094e51b5e4b5cec7bf906 \ - --hash=sha256:84537453d57f55a50a5b6835622ee405816999a7113267739a1b4581f83535bd \ - --hash=sha256:8f09daa483aedea50d249ef98ed500569841d6498aa9c9f4b0531b9964658922 \ - --hash=sha256:95dd7f261bb76948b52a5330ba5202b91a26fbac13ad0e9fc8a3ac04752058c7 \ - --hash=sha256:a74fbcdb2a0d46fe00504f571a2a540532f4c188e6ccf26f1f178480117b33c4 \ - --hash=sha256:a983e441a00a9d57a4d7c91b3116a37ae602907a7618b882c8013b5762e80574 \ - --hash=sha256:ab8de0d091acbf778f74286f4989cf3d1528336af1b59f3e5d2ebca8b5fe49e1 \ - --hash=sha256:aeb57c421b34af8f9fe830e1955bf493a86a7996cc1338fe41b30047d16e962c \ - --hash=sha256:ce785cf81a7bdade534297ef9e490ddff800d956625020ab2ec2780a556c313e \ - --hash=sha256:d0d651aa754ef58d75cec6edfbd21259d93810b73f6ec246436a21b7841908de +cryptography==41.0.4 \ + --hash=sha256:004b6ccc95943f6a9ad3142cfabcc769d7ee38a3f60fb0dddbfb431f818c3a67 \ + --hash=sha256:047c4603aeb4bbd8db2756e38f5b8bd7e94318c047cfe4efeb5d715e08b49311 \ + --hash=sha256:0d9409894f495d465fe6fda92cb70e8323e9648af912d5b9141d616df40a87b8 \ + --hash=sha256:23a25c09dfd0d9f28da2352503b23e086f8e78096b9fd585d1d14eca01613e13 \ + --hash=sha256:2ed09183922d66c4ec5fdaa59b4d14e105c084dd0febd27452de8f6f74704143 \ + --hash=sha256:35c00f637cd0b9d5b6c6bd11b6c3359194a8eba9c46d4e875a3660e3b400005f \ + --hash=sha256:37480760ae08065437e6573d14be973112c9e6dcaf5f11d00147ee74f37a3829 \ + --hash=sha256:3b224890962a2d7b57cf5eeb16ccaafba6083f7b811829f00476309bce2fe0fd \ + --hash=sha256:5a0f09cefded00e648a127048119f77bc2b2ec61e736660b5789e638f43cc397 \ + --hash=sha256:5b72205a360f3b6176485a333256b9bcd48700fc755fef51c8e7e67c4b63e3ac \ + --hash=sha256:7e53db173370dea832190870e975a1e09c86a879b613948f09eb49324218c14d \ + --hash=sha256:7febc3094125fc126a7f6fb1f420d0da639f3f32cb15c8ff0dc3997c4549f51a \ + --hash=sha256:80907d3faa55dc5434a16579952ac6da800935cd98d14dbd62f6f042c7f5e839 \ + --hash=sha256:86defa8d248c3fa029da68ce61fe735432b047e32179883bdb1e79ed9bb8195e \ + --hash=sha256:8ac4f9ead4bbd0bc8ab2d318f97d85147167a488be0e08814a37eb2f439d5cf6 \ + --hash=sha256:93530900d14c37a46ce3d6c9e6fd35dbe5f5601bf6b3a5c325c7bffc030344d9 \ + --hash=sha256:9eeb77214afae972a00dee47382d2591abe77bdae166bda672fb1e24702a3860 \ + --hash=sha256:b5f4dfe950ff0479f1f00eda09c18798d4f49b98f4e2006d644b3301682ebdca \ + --hash=sha256:c3391bd8e6de35f6f1140e50aaeb3e2b3d6a9012536ca23ab0d9c35ec18c8a91 \ + --hash=sha256:c880eba5175f4307129784eca96f4e70b88e57aa3f680aeba3bab0e980b0f37d \ + --hash=sha256:cecfefa17042941f94ab54f769c8ce0fe14beff2694e9ac684176a2535bf9714 \ + --hash=sha256:e40211b4923ba5a6dc9769eab704bdb3fbb58d56c5b336d30996c24fcf12aadb \ + --hash=sha256:efc8ad4e6fc4f1752ebfb58aefece8b4e3c4cae940b0994d43649bdfce8d0d4f # via # gcp-releasetool # secretstorage @@ -382,6 +382,7 @@ protobuf==3.20.3 \ # gcp-docuploader # gcp-releasetool # google-api-core + # googleapis-common-protos pyasn1==0.4.8 \ --hash=sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d \ --hash=sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba @@ -466,9 +467,9 @@ typing-extensions==4.4.0 \ --hash=sha256:1511434bb92bf8dd198c12b1cc812e800d4181cfcb867674e0f8279cc93087aa \ --hash=sha256:16fa4864408f655d35ec496218b85f79b3437c829e93320c7c9215ccfd92489e # via -r requirements.in -urllib3==1.26.12 \ - --hash=sha256:3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e \ - --hash=sha256:b930dd878d5a8afb066a637fbb35144fe7901e3b209d1cd4f524bd0e9deee997 +urllib3==1.26.17 \ + --hash=sha256:24d6a242c28d29af46c3fae832c36db3bbebcc533dd1bb549172cd739c82df21 \ + --hash=sha256:94a757d178c9be92ef5539b8840d48dc9cf1b2709c9d6b588232a055c524458b # via # requests # twine diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 19409cbd..6a8e1695 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,7 @@ repos: - id: end-of-file-fixer - id: check-yaml - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 23.7.0 hooks: - id: black - repo: https://github.com/pycqa/flake8 diff --git a/.release-please-manifest.json b/.release-please-manifest.json index a4719973..a55546f2 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "3.12.0" + ".": "3.12.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b07fc2b..a624e4fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,18 @@ [1]: https://pypi.org/project/google-cloud-translate/#history +## [3.12.1](https://github.com/googleapis/python-translate/compare/v3.12.0...v3.12.1) (2023-10-19) + + +### Bug Fixes + +* Require google-cloud-core >= 1.4.4 ([8542583](https://github.com/googleapis/python-translate/commit/854258360fd8c7baf7ac197836b3650272bcda21)) + + +### Documentation + +* Minor formatting ([21cd6f6](https://github.com/googleapis/python-translate/commit/21cd6f658eeb79df1a8b3c777dcf0d0c942500ef)) + ## [3.12.0](https://github.com/googleapis/python-translate/compare/v3.11.3...v3.12.0) (2023-08-08) diff --git a/google/cloud/translate/gapic_version.py b/google/cloud/translate/gapic_version.py index b5a6e376..14833215 100644 --- a/google/cloud/translate/gapic_version.py +++ b/google/cloud/translate/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "3.12.0" # {x-release-please-version} +__version__ = "3.12.1" # {x-release-please-version} diff --git a/google/cloud/translate_v3/gapic_version.py b/google/cloud/translate_v3/gapic_version.py index b5a6e376..14833215 100644 --- a/google/cloud/translate_v3/gapic_version.py +++ b/google/cloud/translate_v3/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "3.12.0" # {x-release-please-version} +__version__ = "3.12.1" # {x-release-please-version} diff --git a/google/cloud/translate_v3/services/translation_service/async_client.py b/google/cloud/translate_v3/services/translation_service/async_client.py index 446a337f..389a4c2a 100644 --- a/google/cloud/translate_v3/services/translation_service/async_client.py +++ b/google/cloud/translate_v3/services/translation_service/async_client.py @@ -841,6 +841,7 @@ async def batch_translate_text( request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. + This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call. @@ -963,6 +964,7 @@ async def batch_translate_document( request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. + This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call. @@ -1337,6 +1339,7 @@ async def sample_list_glossaries(): Returns: google.cloud.translate_v3.services.translation_service.pagers.ListGlossariesAsyncPager: Response message for ListGlossaries. + Iterating over this object will yield results and resolve additional pages automatically. diff --git a/google/cloud/translate_v3/services/translation_service/client.py b/google/cloud/translate_v3/services/translation_service/client.py index 26c8867e..22f53c7c 100644 --- a/google/cloud/translate_v3/services/translation_service/client.py +++ b/google/cloud/translate_v3/services/translation_service/client.py @@ -1060,6 +1060,7 @@ def batch_translate_text( request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. + This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call. @@ -1183,6 +1184,7 @@ def batch_translate_document( request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. + This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call. @@ -1557,6 +1559,7 @@ def sample_list_glossaries(): Returns: google.cloud.translate_v3.services.translation_service.pagers.ListGlossariesPager: Response message for ListGlossaries. + Iterating over this object will yield results and resolve additional pages automatically. diff --git a/google/cloud/translate_v3/services/translation_service/transports/grpc.py b/google/cloud/translate_v3/services/translation_service/transports/grpc.py index c40c76b5..1957df3d 100644 --- a/google/cloud/translate_v3/services/translation_service/transports/grpc.py +++ b/google/cloud/translate_v3/services/translation_service/transports/grpc.py @@ -377,6 +377,7 @@ def batch_translate_text( request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. + This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call. @@ -413,6 +414,7 @@ def batch_translate_document( request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. + This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call. diff --git a/google/cloud/translate_v3/services/translation_service/transports/grpc_asyncio.py b/google/cloud/translate_v3/services/translation_service/transports/grpc_asyncio.py index 86b2eccd..3f69d6f3 100644 --- a/google/cloud/translate_v3/services/translation_service/transports/grpc_asyncio.py +++ b/google/cloud/translate_v3/services/translation_service/transports/grpc_asyncio.py @@ -383,6 +383,7 @@ def batch_translate_text( request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. + This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call. @@ -420,6 +421,7 @@ def batch_translate_document( request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. + This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call. diff --git a/google/cloud/translate_v3/types/translation_service.py b/google/cloud/translate_v3/types/translation_service.py index b96b92af..c2182d44 100644 --- a/google/cloud/translate_v3/types/translation_service.py +++ b/google/cloud/translate_v3/types/translation_service.py @@ -167,6 +167,7 @@ class TranslateTextRequest(proto.Message): underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. + See https://cloud.google.com/translate/docs/advanced/labels for more information. @@ -331,6 +332,7 @@ class DetectLanguageRequest(proto.Message): underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. + See https://cloud.google.com/translate/docs/advanced/labels for more information. @@ -893,6 +895,7 @@ class TranslateDocumentRequest(proto.Message): underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. + See https://cloud.google.com/translate/docs/advanced/labels for more information. @@ -1112,6 +1115,7 @@ class BatchTranslateTextRequest(proto.Message): underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. + See https://cloud.google.com/translate/docs/advanced/labels for more information. diff --git a/google/cloud/translate_v3beta1/gapic_version.py b/google/cloud/translate_v3beta1/gapic_version.py index b5a6e376..14833215 100644 --- a/google/cloud/translate_v3beta1/gapic_version.py +++ b/google/cloud/translate_v3beta1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "3.12.0" # {x-release-please-version} +__version__ = "3.12.1" # {x-release-please-version} diff --git a/google/cloud/translate_v3beta1/services/translation_service/async_client.py b/google/cloud/translate_v3beta1/services/translation_service/async_client.py index 5df0bd36..d053ce10 100644 --- a/google/cloud/translate_v3beta1/services/translation_service/async_client.py +++ b/google/cloud/translate_v3beta1/services/translation_service/async_client.py @@ -708,6 +708,7 @@ async def batch_translate_text( request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. + This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call. @@ -830,6 +831,7 @@ async def batch_translate_document( request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. + This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call. @@ -1239,6 +1241,7 @@ async def sample_list_glossaries(): Returns: google.cloud.translate_v3beta1.services.translation_service.pagers.ListGlossariesAsyncPager: Response message for ListGlossaries. + Iterating over this object will yield results and resolve additional pages automatically. diff --git a/google/cloud/translate_v3beta1/services/translation_service/client.py b/google/cloud/translate_v3beta1/services/translation_service/client.py index 079d9deb..3c826418 100644 --- a/google/cloud/translate_v3beta1/services/translation_service/client.py +++ b/google/cloud/translate_v3beta1/services/translation_service/client.py @@ -928,6 +928,7 @@ def batch_translate_text( request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. + This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call. @@ -1051,6 +1052,7 @@ def batch_translate_document( request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. + This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call. @@ -1460,6 +1462,7 @@ def sample_list_glossaries(): Returns: google.cloud.translate_v3beta1.services.translation_service.pagers.ListGlossariesPager: Response message for ListGlossaries. + Iterating over this object will yield results and resolve additional pages automatically. diff --git a/google/cloud/translate_v3beta1/services/translation_service/transports/grpc.py b/google/cloud/translate_v3beta1/services/translation_service/transports/grpc.py index 16a71ad5..c8e16aef 100644 --- a/google/cloud/translate_v3beta1/services/translation_service/transports/grpc.py +++ b/google/cloud/translate_v3beta1/services/translation_service/transports/grpc.py @@ -377,6 +377,7 @@ def batch_translate_text( request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. + This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call. @@ -413,6 +414,7 @@ def batch_translate_document( request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. + This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call. diff --git a/google/cloud/translate_v3beta1/services/translation_service/transports/grpc_asyncio.py b/google/cloud/translate_v3beta1/services/translation_service/transports/grpc_asyncio.py index 30a0bc9a..018c0cb3 100644 --- a/google/cloud/translate_v3beta1/services/translation_service/transports/grpc_asyncio.py +++ b/google/cloud/translate_v3beta1/services/translation_service/transports/grpc_asyncio.py @@ -383,6 +383,7 @@ def batch_translate_text( request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. + This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call. @@ -420,6 +421,7 @@ def batch_translate_document( request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. + This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call. diff --git a/google/cloud/translate_v3beta1/types/translation_service.py b/google/cloud/translate_v3beta1/types/translation_service.py index fe2180c3..d389595f 100644 --- a/google/cloud/translate_v3beta1/types/translation_service.py +++ b/google/cloud/translate_v3beta1/types/translation_service.py @@ -163,6 +163,7 @@ class TranslateTextRequest(proto.Message): underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. + See https://cloud.google.com/translate/docs/labels for more information. @@ -327,6 +328,7 @@ class DetectLanguageRequest(proto.Message): underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. + See https://cloud.google.com/translate/docs/labels for more information. @@ -884,6 +886,7 @@ class TranslateDocumentRequest(proto.Message): underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. + See https://cloud.google.com/translate/docs/advanced/labels for more information. @@ -1103,6 +1106,7 @@ class BatchTranslateTextRequest(proto.Message): underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. + See https://cloud.google.com/translate/docs/labels for more information. diff --git a/noxfile.py b/noxfile.py index 2b3b1bfa..54abbaab 100644 --- a/noxfile.py +++ b/noxfile.py @@ -17,22 +17,24 @@ # Generated by synthtool. DO NOT EDIT! from __future__ import absolute_import + import os import pathlib import re import shutil +from typing import Dict, List import warnings import nox FLAKE8_VERSION = "flake8==6.1.0" -BLACK_VERSION = "black==22.3.0" -ISORT_VERSION = "isort==5.10.1" +BLACK_VERSION = "black[jupyter]==23.7.0" +ISORT_VERSION = "isort==5.11.0" LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"] DEFAULT_PYTHON_VERSION = "3.8" -UNIT_TEST_PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11"] +UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.7", "3.8", "3.9", "3.10", "3.11"] UNIT_TEST_STANDARD_DEPENDENCIES = [ "mock", "asyncmock", @@ -40,23 +42,23 @@ "pytest-cov", "pytest-asyncio", ] -UNIT_TEST_EXTERNAL_DEPENDENCIES = [] -UNIT_TEST_LOCAL_DEPENDENCIES = [] -UNIT_TEST_DEPENDENCIES = [] -UNIT_TEST_EXTRAS = [] -UNIT_TEST_EXTRAS_BY_PYTHON = {} - -SYSTEM_TEST_PYTHON_VERSIONS = ["3.8"] -SYSTEM_TEST_STANDARD_DEPENDENCIES = [ +UNIT_TEST_EXTERNAL_DEPENDENCIES: List[str] = [] +UNIT_TEST_LOCAL_DEPENDENCIES: List[str] = [] +UNIT_TEST_DEPENDENCIES: List[str] = [] +UNIT_TEST_EXTRAS: List[str] = [] +UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {} + +SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.8"] +SYSTEM_TEST_STANDARD_DEPENDENCIES: List[str] = [ "mock", "pytest", "google-cloud-testutils", ] -SYSTEM_TEST_EXTERNAL_DEPENDENCIES = [] -SYSTEM_TEST_LOCAL_DEPENDENCIES = [] -SYSTEM_TEST_DEPENDENCIES = [] -SYSTEM_TEST_EXTRAS = [] -SYSTEM_TEST_EXTRAS_BY_PYTHON = {} +SYSTEM_TEST_EXTERNAL_DEPENDENCIES: List[str] = [] +SYSTEM_TEST_LOCAL_DEPENDENCIES: List[str] = [] +SYSTEM_TEST_DEPENDENCIES: List[str] = [] +SYSTEM_TEST_EXTRAS: List[str] = [] +SYSTEM_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {} CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute() @@ -69,6 +71,7 @@ "lint_setup_py", "blacken", "docs", + "format", ] # Error if a python version is missing @@ -187,7 +190,6 @@ def unit(session): def install_systemtest_dependencies(session, *constraints): - # Use pre-release gRPC for system tests. # Exclude version 1.52.0rc1 which has a known issue. # See https://github.com/grpc/grpc/issues/32163 diff --git a/setup.py b/setup.py index ce8b8e31..2ac50b45 100644 --- a/setup.py +++ b/setup.py @@ -37,7 +37,7 @@ dependencies = [ "google-api-core[grpc] >= 1.34.0, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,!=2.10.*", - "google-cloud-core >= 1.3.0, <3.0.0dev", + "google-cloud-core >= 1.4.4, <3.0.0dev", "proto-plus >= 1.22.0, <2.0.0dev", "proto-plus >= 1.22.2, <2.0.0dev; python_version>='3.11'", "protobuf>=3.19.5,<5.0.0dev,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5", diff --git a/testing/constraints-3.7.txt b/testing/constraints-3.7.txt index a4813673..442aef77 100644 --- a/testing/constraints-3.7.txt +++ b/testing/constraints-3.7.txt @@ -7,4 +7,4 @@ google-api-core==1.34.0 proto-plus==1.22.0 protobuf==3.19.5 -google-cloud-core==1.3.0 +google-cloud-core==1.4.4 diff --git a/tests/unit/gapic/translate_v3/test_translation_service.py b/tests/unit/gapic/translate_v3/test_translation_service.py index 9f33b540..7a3621ad 100644 --- a/tests/unit/gapic/translate_v3/test_translation_service.py +++ b/tests/unit/gapic/translate_v3/test_translation_service.py @@ -57,7 +57,7 @@ from google.cloud.translate_v3.services.translation_service import pagers from google.cloud.translate_v3.services.translation_service import transports from google.cloud.translate_v3.types import translation_service -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import timestamp_pb2 # type: ignore import google.auth diff --git a/tests/unit/gapic/translate_v3beta1/test_translation_service.py b/tests/unit/gapic/translate_v3beta1/test_translation_service.py index 3f7c3a3c..384a42e7 100644 --- a/tests/unit/gapic/translate_v3beta1/test_translation_service.py +++ b/tests/unit/gapic/translate_v3beta1/test_translation_service.py @@ -57,7 +57,7 @@ from google.cloud.translate_v3beta1.services.translation_service import pagers from google.cloud.translate_v3beta1.services.translation_service import transports from google.cloud.translate_v3beta1.types import translation_service -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import timestamp_pb2 # type: ignore import google.auth