Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: googleapis/python-automl
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.3.0
Choose a base ref
...
head repository: googleapis/python-automl
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.4.0
Choose a head ref
Loading
Showing with 3,637 additions and 12,493 deletions.
  1. +3 −0 .github/.OwlBot.lock.yaml
  2. +26 −0 .github/.OwlBot.yaml
  3. +1 −1 .github/header-checker-lint.yml
  4. +2 −2 .kokoro/release.sh
  5. +2 −12 .kokoro/release/common.cfg
  6. +40 −0 .kokoro/samples/python3.9/common.cfg
  7. +6 −0 .kokoro/samples/python3.9/continuous.cfg
  8. +11 −0 .kokoro/samples/python3.9/periodic-head.cfg
  9. +6 −0 .kokoro/samples/python3.9/periodic.cfg
  10. +6 −0 .kokoro/samples/python3.9/presubmit.cfg
  11. +16 −2 .pre-commit-config.yaml
  12. +1 −0 .repo-metadata.json
  13. +21 −0 CHANGELOG.md
  14. +9 −28 CONTRIBUTING.rst
  15. +7 −0 SECURITY.md
  16. +12 −1 docs/_static/custom.css
  17. +0 −1 docs/automl_v1/auto_ml.rst
  18. +0 −1 docs/automl_v1beta1/auto_ml.rst
  19. +20 −6 docs/conf.py
  20. +2 −2 docs/multiprocessing.rst
  21. +56 −56 google/cloud/automl/__init__.py
  22. +6 −3 google/cloud/automl_v1/__init__.py
  23. +237 −0 google/cloud/automl_v1/gapic_metadata.json
  24. +0 −67 google/cloud/automl_v1/proto/annotation_payload.proto
  25. +0 −49 google/cloud/automl_v1/proto/annotation_spec.proto
  26. +0 −177 google/cloud/automl_v1/proto/classification.proto
  27. +0 −192 google/cloud/automl_v1/proto/data_items.proto
  28. +0 −96 google/cloud/automl_v1/proto/dataset.proto
  29. +0 −87 google/cloud/automl_v1/proto/detection.proto
  30. +0 −47 google/cloud/automl_v1/proto/geometry.proto
  31. +0 −206 google/cloud/automl_v1/proto/image.proto
  32. +0 −1,377 google/cloud/automl_v1/proto/io.proto
  33. +0 −112 google/cloud/automl_v1/proto/model.proto
  34. +0 −106 google/cloud/automl_v1/proto/model_evaluation.proto
  35. +0 −167 google/cloud/automl_v1/proto/operations.proto
  36. +0 −323 google/cloud/automl_v1/proto/prediction_service.proto
  37. +0 −609 google/cloud/automl_v1/proto/service.proto
  38. +0 −66 google/cloud/automl_v1/proto/text.proto
  39. +0 −69 google/cloud/automl_v1/proto/text_extraction.proto
  40. +0 −42 google/cloud/automl_v1/proto/text_segment.proto
  41. +0 −78 google/cloud/automl_v1/proto/text_sentiment.proto
  42. +0 −70 google/cloud/automl_v1/proto/translation.proto
  43. +0 −1 google/cloud/automl_v1/services/__init__.py
  44. +0 −2 google/cloud/automl_v1/services/auto_ml/__init__.py
  45. +38 −73 google/cloud/automl_v1/services/auto_ml/async_client.py
  46. +50 −101 google/cloud/automl_v1/services/auto_ml/client.py
  47. +3 −5 google/cloud/automl_v1/services/auto_ml/pagers.py
  48. +0 −2 google/cloud/automl_v1/services/auto_ml/transports/__init__.py
  49. +126 −77 google/cloud/automl_v1/services/auto_ml/transports/base.py
  50. +34 −30 google/cloud/automl_v1/services/auto_ml/transports/grpc.py
  51. +34 −31 google/cloud/automl_v1/services/auto_ml/transports/grpc_asyncio.py
  52. +0 −2 google/cloud/automl_v1/services/prediction_service/__init__.py
  53. +8 −20 google/cloud/automl_v1/services/prediction_service/async_client.py
  54. +32 −35 google/cloud/automl_v1/services/prediction_service/client.py
  55. +0 −2 google/cloud/automl_v1/services/prediction_service/transports/__init__.py
  56. +74 −26 google/cloud/automl_v1/services/prediction_service/transports/base.py
  57. +18 −14 google/cloud/automl_v1/services/prediction_service/transports/grpc.py
  58. +18 −15 google/cloud/automl_v1/services/prediction_service/transports/grpc_asyncio.py
  59. +0 −2 google/cloud/automl_v1/types/__init__.py
  60. +2 −12 google/cloud/automl_v1/types/annotation_payload.py
  61. +3 −8 google/cloud/automl_v1/types/annotation_spec.py
  62. +22 −48 google/cloud/automl_v1/types/classification.py
  63. +9 −30 google/cloud/automl_v1/types/data_items.py
  64. +10 −23 google/cloud/automl_v1/types/dataset.py
  65. +9 −22 google/cloud/automl_v1/types/detection.py
  66. +2 −5 google/cloud/automl_v1/types/geometry.py
  67. +16 −35 google/cloud/automl_v1/types/image.py
  68. +5 −12 google/cloud/automl_v1/types/io.py
  69. +10 −25 google/cloud/automl_v1/types/model.py
  70. +6 −19 google/cloud/automl_v1/types/model_evaluation.py
  71. +15 −34 google/cloud/automl_v1/types/operations.py
  72. +6 −16 google/cloud/automl_v1/types/prediction_service.py
  73. +35 −55 google/cloud/automl_v1/types/service.py
  74. +4 −10 google/cloud/automl_v1/types/text.py
  75. +6 −17 google/cloud/automl_v1/types/text_extraction.py
  76. +3 −7 google/cloud/automl_v1/types/text_segment.py
  77. +8 −20 google/cloud/automl_v1/types/text_sentiment.py
  78. +7 −18 google/cloud/automl_v1/types/translation.py
  79. +7 −4 google/cloud/automl_v1beta1/__init__.py
  80. +297 −0 google/cloud/automl_v1beta1/gapic_metadata.json
  81. +0 −77 google/cloud/automl_v1beta1/proto/annotation_payload.proto
  82. +0 −48 google/cloud/automl_v1beta1/proto/annotation_spec.proto
  83. +0 −216 google/cloud/automl_v1beta1/proto/classification.proto
  84. +0 −78 google/cloud/automl_v1beta1/proto/column_spec.proto
  85. +0 −221 google/cloud/automl_v1beta1/proto/data_items.proto
  86. +0 −166 google/cloud/automl_v1beta1/proto/data_stats.proto
  87. +0 −105 google/cloud/automl_v1beta1/proto/data_types.proto
  88. +0 −96 google/cloud/automl_v1beta1/proto/dataset.proto
  89. +0 −135 google/cloud/automl_v1beta1/proto/detection.proto
  90. +0 −46 google/cloud/automl_v1beta1/proto/geometry.proto
  91. +0 −193 google/cloud/automl_v1beta1/proto/image.proto
  92. +0 −1,158 google/cloud/automl_v1beta1/proto/io.proto
  93. +0 −108 google/cloud/automl_v1beta1/proto/model.proto
  94. +0 −116 google/cloud/automl_v1beta1/proto/model_evaluation.proto
  95. +0 −189 google/cloud/automl_v1beta1/proto/operations.proto
  96. +0 −268 google/cloud/automl_v1beta1/proto/prediction_service.proto
  97. +0 −35 google/cloud/automl_v1beta1/proto/ranges.proto
  98. +0 −44 google/cloud/automl_v1beta1/proto/regression.proto
  99. +0 −800 google/cloud/automl_v1beta1/proto/service.proto
  100. +0 −78 google/cloud/automl_v1beta1/proto/table_spec.proto
  101. +0 −292 google/cloud/automl_v1beta1/proto/tables.proto
  102. +0 −37 google/cloud/automl_v1beta1/proto/temporal.proto
  103. +0 −71 google/cloud/automl_v1beta1/proto/text.proto
  104. +0 −68 google/cloud/automl_v1beta1/proto/text_extraction.proto
  105. +0 −41 google/cloud/automl_v1beta1/proto/text_segment.proto
  106. +0 −80 google/cloud/automl_v1beta1/proto/text_sentiment.proto
  107. +0 −69 google/cloud/automl_v1beta1/proto/translation.proto
  108. +0 −48 google/cloud/automl_v1beta1/proto/video.proto
  109. +0 −1 google/cloud/automl_v1beta1/services/__init__.py
  110. +0 −2 google/cloud/automl_v1beta1/services/auto_ml/__init__.py
  111. +42 −86 google/cloud/automl_v1beta1/services/auto_ml/async_client.py
  112. +52 −121 google/cloud/automl_v1beta1/services/auto_ml/client.py
  113. +5 −7 google/cloud/automl_v1beta1/services/auto_ml/pagers.py
  114. +0 −2 google/cloud/automl_v1beta1/services/auto_ml/transports/__init__.py
  115. +146 −99 google/cloud/automl_v1beta1/services/auto_ml/transports/base.py
  116. +34 −30 google/cloud/automl_v1beta1/services/auto_ml/transports/grpc.py
  117. +34 −31 google/cloud/automl_v1beta1/services/auto_ml/transports/grpc_asyncio.py
  118. +0 −2 google/cloud/automl_v1beta1/services/prediction_service/__init__.py
  119. +8 −20 google/cloud/automl_v1beta1/services/prediction_service/async_client.py
  120. +32 −35 google/cloud/automl_v1beta1/services/prediction_service/client.py
  121. +0 −2 google/cloud/automl_v1beta1/services/prediction_service/transports/__init__.py
  122. +74 −26 google/cloud/automl_v1beta1/services/prediction_service/transports/base.py
  123. +18 −14 google/cloud/automl_v1beta1/services/prediction_service/transports/grpc.py
  124. +18 −15 google/cloud/automl_v1beta1/services/prediction_service/transports/grpc_asyncio.py
  125. +0 −2 google/cloud/automl_v1beta1/types/__init__.py
  126. +2 −15 google/cloud/automl_v1beta1/types/annotation_payload.py
  127. +3 −8 google/cloud/automl_v1beta1/types/annotation_spec.py
  128. +24 −55 google/cloud/automl_v1beta1/types/classification.py
  129. +4 −13 google/cloud/automl_v1beta1/types/column_spec.py
  130. +12 −37 google/cloud/automl_v1beta1/types/data_items.py
  131. +15 −42 google/cloud/automl_v1beta1/types/data_stats.py
  132. +2 −8 google/cloud/automl_v1beta1/types/data_types.py
  133. +9 −24 google/cloud/automl_v1beta1/types/dataset.py
  134. +16 −36 google/cloud/automl_v1beta1/types/detection.py
  135. +2 −5 google/cloud/automl_v1beta1/types/geometry.py
  136. +16 −35 google/cloud/automl_v1beta1/types/image.py
  137. +8 −23 google/cloud/automl_v1beta1/types/io.py
  138. +8 −24 google/cloud/automl_v1beta1/types/model.py
  139. +6 −21 google/cloud/automl_v1beta1/types/model_evaluation.py
  140. +17 −39 google/cloud/automl_v1beta1/types/operations.py
  141. +6 −16 google/cloud/automl_v1beta1/types/prediction_service.py
  142. +2 −6 google/cloud/automl_v1beta1/types/ranges.py
  143. +5 −12 google/cloud/automl_v1beta1/types/regression.py
  144. +55 −87 google/cloud/automl_v1beta1/types/service.py
  145. +6 −15 google/cloud/automl_v1beta1/types/table_spec.py
  146. +19 −44 google/cloud/automl_v1beta1/types/tables.py
  147. +7 −7 google/cloud/automl_v1beta1/types/temporal.py
  148. +4 −11 google/cloud/automl_v1beta1/types/text.py
  149. +6 −17 google/cloud/automl_v1beta1/types/text_extraction.py
  150. +3 −7 google/cloud/automl_v1beta1/types/text_segment.py
  151. +9 −22 google/cloud/automl_v1beta1/types/text_sentiment.py
  152. +7 −18 google/cloud/automl_v1beta1/types/translation.py
  153. +4 −6 google/cloud/automl_v1beta1/types/video.py
  154. +6 −14 noxfile.py
  155. +34 −41 synth.py → owlbot.py
  156. +4 −1 renovate.json
  157. +15 −3 samples/beta/noxfile.py
  158. +1 −1 samples/beta/requirements-test.txt
  159. +1 −1 samples/beta/requirements.txt
  160. +15 −3 samples/snippets/noxfile.py
  161. +2 −2 samples/snippets/requirements-test.txt
  162. +3 −3 samples/snippets/requirements.txt
  163. +15 −3 samples/tables/noxfile.py
  164. +1 −1 samples/tables/requirements-test.txt
  165. +1 −1 samples/tables/requirements.txt
  166. +21 −24 scripts/fixup_automl_v1_keywords.py
  167. +27 −30 scripts/fixup_automl_v1beta1_keywords.py
  168. +3 −2 setup.py
  169. +0 −53 synth.metadata
  170. +3 −1 testing/constraints-3.6.txt
  171. +15 −0 tests/__init__.py
  172. +15 −0 tests/unit/__init__.py
  173. +15 −0 tests/unit/gapic/__init__.py
  174. +0 −1 tests/unit/gapic/automl_v1/__init__.py
  175. +403 −506 tests/unit/gapic/automl_v1/test_auto_ml.py
  176. +211 −99 tests/unit/gapic/automl_v1/test_prediction_service.py
  177. +0 −1 tests/unit/gapic/automl_v1beta1/__init__.py
  178. +467 −658 tests/unit/gapic/automl_v1beta1/test_auto_ml.py
  179. +212 −100 tests/unit/gapic/automl_v1beta1/test_prediction_service.py
3 changes: 3 additions & 0 deletions .github/.OwlBot.lock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
docker:
image: gcr.io/repo-automation-bots/owlbot-python:latest
digest: sha256:99d90d097e4a4710cc8658ee0b5b963f4426d0e424819787c3ac1405c9a26719
26 changes: 26 additions & 0 deletions .github/.OwlBot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

docker:
image: gcr.io/repo-automation-bots/owlbot-python:latest

deep-remove-regex:
- /owl-bot-staging

deep-copy-regex:
- source: /google/cloud/automl/(v.*)/.*-py/(.*)
dest: /owl-bot-staging/$1/$2

begin-after-commit-hash: 6a5da3f1274b088752f074da5bc9e30bd1beb27e

2 changes: 1 addition & 1 deletion .github/header-checker-lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{"allowedCopyrightHolders": ["Google LLC"],
"allowedLicenses": ["Apache-2.0", "MIT", "BSD-3"],
"ignoreFiles": ["**/requirements.txt", "**/requirements-test.txt"],
"ignoreFiles": ["**/requirements.txt", "**/requirements-test.txt", "**/__init__.py", "samples/**/constraints.txt", "samples/**/constraints-test.txt"],
"sourceFileExtensions": [
"ts",
"js",
4 changes: 2 additions & 2 deletions .kokoro/release.sh
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ python3 -m pip install --upgrade twine wheel setuptools
export PYTHONUNBUFFERED=1

# Move into the package, build the distribution and upload.
TWINE_PASSWORD=$(cat "${KOKORO_KEYSTORE_DIR}/73713_google_cloud_pypi_password")
TWINE_PASSWORD=$(cat "${KOKORO_GFILE_DIR}/secret_manager/google-cloud-pypi-token")
cd github/python-automl
python3 setup.py sdist bdist_wheel
twine upload --username gcloudpypi --password "${TWINE_PASSWORD}" dist/*
twine upload --username __token__ --password "${TWINE_PASSWORD}" dist/*
14 changes: 2 additions & 12 deletions .kokoro/release/common.cfg
Original file line number Diff line number Diff line change
@@ -23,18 +23,8 @@ env_vars: {
value: "github/python-automl/.kokoro/release.sh"
}

# Fetch PyPI password
before_action {
fetch_keystore {
keystore_resource {
keystore_config_id: 73713
keyname: "google_cloud_pypi_password"
}
}
}

# Tokens needed to report release status back to GitHub
env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem"
}
value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem,google-cloud-pypi-token"
}
40 changes: 40 additions & 0 deletions .kokoro/samples/python3.9/common.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Build logs will be here
action {
define_artifacts {
regex: "**/*sponge_log.xml"
}
}

# Specify which tests to run
env_vars: {
key: "RUN_TESTS_SESSION"
value: "py-3.9"
}

# Declare build specific Cloud project.
env_vars: {
key: "BUILD_SPECIFIC_GCLOUD_PROJECT"
value: "python-docs-samples-tests-py39"
}

env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/python-automl/.kokoro/test-samples.sh"
}

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker"
}

# Download secrets for samples
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"

# Download trampoline resources.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "python-automl/.kokoro/trampoline.sh"
6 changes: 6 additions & 0 deletions .kokoro/samples/python3.9/continuous.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "INSTALL_LIBRARY_FROM_SOURCE"
value: "True"
}
11 changes: 11 additions & 0 deletions .kokoro/samples/python3.9/periodic-head.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "INSTALL_LIBRARY_FROM_SOURCE"
value: "True"
}

env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/python-pubsub/.kokoro/test-samples-against-head.sh"
}
6 changes: 6 additions & 0 deletions .kokoro/samples/python3.9/periodic.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "INSTALL_LIBRARY_FROM_SOURCE"
value: "False"
}
6 changes: 6 additions & 0 deletions .kokoro/samples/python3.9/presubmit.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "INSTALL_LIBRARY_FROM_SOURCE"
value: "True"
}
18 changes: 16 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
@@ -12,6 +26,6 @@ repos:
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.0
rev: 3.9.2
hooks:
- id: flake8
1 change: 1 addition & 0 deletions .repo-metadata.json
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@
"issue_tracker": "https://issuetracker.google.com/savedsearches/559744",
"release_level": "ga",
"language": "python",
"library_type": "GAPIC_AUTO",
"repo": "googleapis/python-automl",
"distribution_name": "google-cloud-automl",
"api_id": "automl.googleapis.com",
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -4,6 +4,27 @@

[1]: https://pypi.org/project/google-cloud-automl/#history

## [2.4.0](https://www.github.com/googleapis/python-automl/compare/v2.3.0...v2.4.0) (2021-07-12)


### Features

* add always_use_jwt_access ([#175](https://www.github.com/googleapis/python-automl/issues/175)) ([7da3fc7](https://www.github.com/googleapis/python-automl/commit/7da3fc7b4a8e648afad733cb2ee4e1dbe74fb736))
* support self-signed JWT flow for service accounts ([bfece77](https://www.github.com/googleapis/python-automl/commit/bfece7799fe6cf803d650c26e0d6e2a78e64f7c1))


### Bug Fixes

* add async client to %name_%version/init.py ([bfece77](https://www.github.com/googleapis/python-automl/commit/bfece7799fe6cf803d650c26e0d6e2a78e64f7c1))
* **deps:** add packaging requirement ([#162](https://www.github.com/googleapis/python-automl/issues/162)) ([dea0cc3](https://www.github.com/googleapis/python-automl/commit/dea0cc37794c57a4b0521c039dc251becf694021))
* disable always_use_jwt_access ([160a7ad](https://www.github.com/googleapis/python-automl/commit/160a7adad3f2d53ca6f733a21e72bfe866a5ebc1))
* disable always_use_jwt_access ([#181](https://www.github.com/googleapis/python-automl/issues/181)) ([160a7ad](https://www.github.com/googleapis/python-automl/commit/160a7adad3f2d53ca6f733a21e72bfe866a5ebc1))


### Documentation

* omit mention of Python 2.7 in 'CONTRIBUTING.rst' ([#1127](https://www.github.com/googleapis/python-automl/issues/1127)) ([#172](https://www.github.com/googleapis/python-automl/issues/172)) ([2489e39](https://www.github.com/googleapis/python-automl/commit/2489e397c1fc66d5dc360f150935673a25537c02)), closes [#1126](https://www.github.com/googleapis/python-automl/issues/1126)

## [2.3.0](https://www.github.com/googleapis/python-automl/compare/v2.2.0...v2.3.0) (2021-04-14)


37 changes: 9 additions & 28 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
@@ -68,15 +68,12 @@ Using ``nox``
We use `nox <https://nox.readthedocs.io/en/latest/>`__ to instrument our tests.

- To test your changes, run unit tests with ``nox``::
$ nox -s unit

$ nox -s unit-2.7
$ nox -s unit-3.8
$ ...
- To run a single unit test::

- Args to pytest can be passed through the nox command separated by a `--`. For
example, to run a single test::
$ nox -s unit-3.9 -- -k <name of test>

$ nox -s unit-3.8 -- -k <name of test>

.. note::

@@ -143,38 +140,22 @@ Running System Tests
- To run system tests, you can execute::

# Run all system tests
$ nox -s system-3.8
$ nox -s system-2.7
$ nox -s system

# Run a single system test
$ nox -s system-3.8 -- -k <name of test>


.. note::

System tests are only configured to run under Python 2.7 and
Python 3.8. For expediency, we do not run them in older versions
of Python 3.
System tests are only configured to run under Python 3.8.
For expediency, we do not run them in older versions of Python 3.

This alone will not run the tests. You'll need to change some local
auth settings and change some configuration in your project to
run all the tests.

- System tests will be run against an actual project and
so you'll need to provide some environment variables to facilitate
authentication to your project:

- ``GOOGLE_APPLICATION_CREDENTIALS``: The path to a JSON key file;
Such a file can be downloaded directly from the developer's console by clicking
"Generate new JSON key". See private key
`docs <https://cloud.google.com/storage/docs/authentication#generating-a-private-key>`__
for more details.

- Once you have downloaded your json keys, set the environment variable
``GOOGLE_APPLICATION_CREDENTIALS`` to the absolute path of the json file::

$ export GOOGLE_APPLICATION_CREDENTIALS="/Users/<your_username>/path/to/app_credentials.json"

- System tests will be run against an actual project. You should use local credentials from gcloud when possible. See `Best practices for application authentication <https://cloud.google.com/docs/authentication/best-practices-applications#local_development_and_testing_with_the>`__. Some tests require a service account. For those tests see `Authenticating as a service account <https://cloud.google.com/docs/authentication/production>`__.

*************
Test Coverage
@@ -232,8 +213,8 @@ Supported versions can be found in our ``noxfile.py`` `config`_.
.. _config: https://github.com/googleapis/python-automl/blob/master/noxfile.py


We also explicitly decided to support Python 3 beginning with version
3.6. Reasons for this include:
We also explicitly decided to support Python 3 beginning with version 3.6.
Reasons for this include:

- Encouraging use of newest versions of Python 3
- Taking the lead of `prominent`_ open-source `projects`_
7 changes: 7 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Security Policy

To report a security issue, please use [g.co/vulnz](https://g.co/vulnz).

The Google Security Team will respond within 5 working days of your report on g.co/vulnz.

We use g.co/vulnz for our intake, and do coordination and disclosure here using GitHub Security Advisory to privately discuss and fix the issue.
13 changes: 12 additions & 1 deletion docs/_static/custom.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
div#python2-eol {
border-color: red;
border-width: medium;
}
}

/* Ensure minimum width for 'Parameters' / 'Returns' column */
dl.field-list > dt {
min-width: 100px
}

/* Insert space between methods for readability */
dl.method {
padding-top: 10px;
padding-bottom: 10px
}

/* Insert empty space between classes */
dl.class {
padding-bottom: 50px
}
1 change: 0 additions & 1 deletion docs/automl_v1/auto_ml.rst
Original file line number Diff line number Diff line change
@@ -5,7 +5,6 @@ AutoMl
:members:
:inherited-members:


.. automodule:: google.cloud.automl_v1.services.auto_ml.pagers
:members:
:inherited-members:
1 change: 0 additions & 1 deletion docs/automl_v1beta1/auto_ml.rst
Original file line number Diff line number Diff line change
@@ -5,7 +5,6 @@ AutoMl
:members:
:inherited-members:


.. automodule:: google.cloud.automl_v1beta1.services.auto_ml.pagers
:members:
:inherited-members:
Loading