Skip to content

Commit 5afb378

Browse files
chore: update template (via synth) (#20)
1 parent 0d9fa2c commit 5afb378

Some content is hidden

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

44 files changed

+374
-1111
lines changed

packages/google-cloud-vision/.coveragerc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2020 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
117
# Generated by synthtool. DO NOT EDIT!
218
[run]
319
branch = True

packages/google-cloud-vision/.flake8

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2020 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
117
# Generated by synthtool. DO NOT EDIT!
218
[flake8]
319
ignore = E203, E266, E501, W503

packages/google-cloud-vision/.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ Thanks for stopping by to let us know something could be better!
1111
Please run down the following list and make sure you've tried the usual "quick fixes":
1212

1313
- Search the issues already opened: https://github.com/googleapis/python-vision/issues
14-
- Search the issues on our "catch-all" repository: https://github.com/googleapis/google-cloud-python
15-
- Search StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform+python
14+
- Search StackOverflow: https://stackoverflow.com/questions/tagged/google-cloud-platform+python
1615

1716
If you are still having issues, please be sure to include as much information as possible:
1817

packages/google-cloud-vision/CONTRIBUTING.rst

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In order to add a feature:
2222
documentation.
2323

2424
- The feature must work fully on the following CPython versions: 2.7,
25-
3.5, 3.6, and 3.7 on both UNIX and Windows.
25+
3.5, 3.6, 3.7 and 3.8 on both UNIX and Windows.
2626

2727
- The feature must not add unnecessary dependencies (where
2828
"unnecessary" is of course subjective, but new dependencies should
@@ -214,26 +214,18 @@ We support:
214214
- `Python 3.5`_
215215
- `Python 3.6`_
216216
- `Python 3.7`_
217+
- `Python 3.8`_
217218

218219
.. _Python 3.5: https://docs.python.org/3.5/
219220
.. _Python 3.6: https://docs.python.org/3.6/
220221
.. _Python 3.7: https://docs.python.org/3.7/
222+
.. _Python 3.8: https://docs.python.org/3.8/
221223

222224

223225
Supported versions can be found in our ``noxfile.py`` `config`_.
224226

225227
.. _config: https://github.com/googleapis/python-vision/blob/master/noxfile.py
226228

227-
We explicitly decided not to support `Python 2.5`_ due to `decreased usage`_
228-
and lack of continuous integration `support`_.
229-
230-
.. _Python 2.5: https://docs.python.org/2.5/
231-
.. _decreased usage: https://caremad.io/2013/10/a-look-at-pypi-downloads/
232-
.. _support: https://blog.travis-ci.com/2013-11-18-upcoming-build-environment-updates/
233-
234-
We have `dropped 2.6`_ as a supported version as well since Python 2.6 is no
235-
longer supported by the core development team.
236-
237229
Python 2.7 support is deprecated. All code changes should maintain Python 2.7 compatibility until January 1, 2020.
238230

239231
We also explicitly decided to support Python 3 beginning with version
@@ -247,7 +239,6 @@ We also explicitly decided to support Python 3 beginning with version
247239
.. _prominent: https://docs.djangoproject.com/en/1.9/faq/install/#what-python-version-can-i-use-with-django
248240
.. _projects: http://flask.pocoo.org/docs/0.10/python3/
249241
.. _Unicode literal support: https://www.python.org/dev/peps/pep-0414/
250-
.. _dropped 2.6: https://github.com/googleapis/google-cloud-python/issues/995
251242

252243
**********
253244
Versioning

packages/google-cloud-vision/MANIFEST.in

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2020 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
117
# Generated by synthtool. DO NOT EDIT!
218
include README.rst LICENSE
319
recursive-include google *.json *.proto

packages/google-cloud-vision/google/cloud/vision_v1/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@
3737
warnings.warn(message, DeprecationWarning)
3838

3939

40-
@add_single_feature_methods
41-
class ImageAnnotatorClient(VisionHelpers, iac.ImageAnnotatorClient):
42-
__doc__ = iac.ImageAnnotatorClient.__doc__
40+
class ProductSearchClient(product_search_client.ProductSearchClient):
41+
__doc__ = product_search_client.ProductSearchClient.__doc__
4342
enums = enums
4443

4544

46-
class ProductSearchClient(product_search_client.ProductSearchClient):
47-
__doc__ = product_search_client.ProductSearchClient.__doc__
45+
@add_single_feature_methods
46+
class ImageAnnotatorClient(VisionHelpers, iac.ImageAnnotatorClient):
47+
__doc__ = iac.ImageAnnotatorClient.__doc__
4848
enums = enums
4949

5050

51-
__all__ = ("enums", "types", "ImageAnnotatorClient", "ProductSearchClient")
51+
__all__ = ("enums", "types", "ProductSearchClient", "ImageAnnotatorClient")

packages/google-cloud-vision/google/cloud/vision_v1/gapic/image_annotator_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@
3535
from google.cloud.vision_v1.gapic.transports import image_annotator_grpc_transport
3636
from google.cloud.vision_v1.proto import image_annotator_pb2
3737
from google.cloud.vision_v1.proto import image_annotator_pb2_grpc
38+
from google.cloud.vision_v1.proto import product_search_service_pb2
39+
from google.cloud.vision_v1.proto import product_search_service_pb2_grpc
3840
from google.longrunning import operations_pb2
41+
from google.protobuf import empty_pb2
42+
from google.protobuf import field_mask_pb2
3943

4044

4145
_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-vision").version

packages/google-cloud-vision/google/cloud/vision_v1/gapic/product_search_client.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
from google.cloud.vision_v1.gapic import enums
3838
from google.cloud.vision_v1.gapic import product_search_client_config
3939
from google.cloud.vision_v1.gapic.transports import product_search_grpc_transport
40-
from google.cloud.vision_v1.proto import image_annotator_pb2
41-
from google.cloud.vision_v1.proto import image_annotator_pb2_grpc
4240
from google.cloud.vision_v1.proto import product_search_service_pb2
4341
from google.cloud.vision_v1.proto import product_search_service_pb2_grpc
4442
from google.longrunning import operations_pb2

packages/google-cloud-vision/google/cloud/vision_v1/proto/geometry_pb2.py

Lines changed: 3 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-vision/google/cloud/vision_v1/proto/image_annotator.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ message ImageContext {
676676
// setting a hint will help get better results (although it will be a
677677
// significant hindrance if the hint is wrong). Text detection returns an
678678
// error if one or more of the specified languages is not one of the
679-
// [supported languages](/vision/docs/languages).
679+
// [supported languages](https://cloud.google.com/vision/docs/languages).
680680
repeated string language_hints = 2;
681681

682682
// Parameters for crop hints annotation request.

0 commit comments

Comments
 (0)