Skip to content
Permalink
Browse files
chore(python): fix formatting issue in noxfile.py.j2 (#417)
fix: improper types in pagers generation
fix: add 'dict' annotation type to 'request'
fix(deps): require proto-plus==1.15.0
  • Loading branch information
gcf-owl-bot[bot] committed Oct 12, 2021
1 parent e3a1eba commit 76ac729e42a782524be87ad71745aad37bbe1653
Showing with 277 additions and 28,934 deletions.
  1. +1 −1 .github/.OwlBot.lock.yaml
  2. +1 −1 .kokoro/samples/lint/common.cfg
  3. +40 −0 .kokoro/samples/python3.10/common.cfg
  4. +6 −0 .kokoro/samples/python3.10/continuous.cfg
  5. +11 −0 .kokoro/samples/python3.10/periodic-head.cfg
  6. +6 −0 .kokoro/samples/python3.10/periodic.cfg
  7. +6 −0 .kokoro/samples/python3.10/presubmit.cfg
  8. +1 −1 .kokoro/samples/python3.6/common.cfg
  9. +1 −1 .kokoro/samples/python3.6/periodic.cfg
  10. +1 −1 .kokoro/samples/python3.7/common.cfg
  11. +1 −1 .kokoro/samples/python3.7/periodic.cfg
  12. +1 −1 .kokoro/samples/python3.8/common.cfg
  13. +1 −1 .kokoro/samples/python3.8/periodic.cfg
  14. +1 −1 .kokoro/samples/python3.9/common.cfg
  15. +1 −1 .kokoro/samples/python3.9/periodic.cfg
  16. +0 −2 .kokoro/test-samples-against-head.sh
  17. +0 −2 .kokoro/test-samples.sh
  18. +14 −1 .trampolinerc
  19. +7 −5 CONTRIBUTING.rst
  20. +5 −5 docs/conf.py
  21. +47 −47 google/cloud/logging_v2/services/config_service_v2/client.py
  22. +18 −18 google/cloud/logging_v2/services/config_service_v2/pagers.py
  23. +1 −1 google/cloud/logging_v2/services/config_service_v2/transports/base.py
  24. +3 −3 google/cloud/logging_v2/services/config_service_v2/transports/grpc.py
  25. +3 −3 google/cloud/logging_v2/services/config_service_v2/transports/grpc_asyncio.py
  26. +11 −21 google/cloud/logging_v2/services/logging_service_v2/client.py
  27. +14 −14 google/cloud/logging_v2/services/logging_service_v2/pagers.py
  28. +1 −1 google/cloud/logging_v2/services/logging_service_v2/transports/base.py
  29. +3 −3 google/cloud/logging_v2/services/logging_service_v2/transports/grpc.py
  30. +3 −3 google/cloud/logging_v2/services/logging_service_v2/transports/grpc_asyncio.py
  31. +11 −11 google/cloud/logging_v2/services/metrics_service_v2/client.py
  32. +6 −6 google/cloud/logging_v2/services/metrics_service_v2/pagers.py
  33. +1 −1 google/cloud/logging_v2/services/metrics_service_v2/transports/base.py
  34. +3 −3 google/cloud/logging_v2/services/metrics_service_v2/transports/grpc.py
  35. +3 −3 google/cloud/logging_v2/services/metrics_service_v2/transports/grpc_asyncio.py
  36. +6 −6 noxfile.py
  37. +0 −17 owl-bot-staging/v2/.coveragerc
  38. +0 −2 owl-bot-staging/v2/MANIFEST.in
  39. +0 −49 owl-bot-staging/v2/README.rst
  40. +0 −376 owl-bot-staging/v2/docs/conf.py
  41. +0 −7 owl-bot-staging/v2/docs/index.rst
  42. +0 −10 owl-bot-staging/v2/docs/logging_v2/config_service_v2.rst
  43. +0 −10 owl-bot-staging/v2/docs/logging_v2/logging_service_v2.rst
  44. +0 −10 owl-bot-staging/v2/docs/logging_v2/metrics_service_v2.rst
  45. +0 −8 owl-bot-staging/v2/docs/logging_v2/services.rst
  46. +0 −7 owl-bot-staging/v2/docs/logging_v2/types.rst
  47. +0 −143 owl-bot-staging/v2/google/cloud/logging/__init__.py
  48. +0 −2 owl-bot-staging/v2/google/cloud/logging/py.typed
  49. +0 −144 owl-bot-staging/v2/google/cloud/logging_v2/__init__.py
  50. +0 −391 owl-bot-staging/v2/google/cloud/logging_v2/gapic_metadata.json
  51. +0 −2 owl-bot-staging/v2/google/cloud/logging_v2/py.typed
  52. +0 −15 owl-bot-staging/v2/google/cloud/logging_v2/services/__init__.py
  53. +0 −22 owl-bot-staging/v2/google/cloud/logging_v2/services/config_service_v2/__init__.py
  54. +0 −2,016 owl-bot-staging/v2/google/cloud/logging_v2/services/config_service_v2/async_client.py
  55. +0 −2,198 owl-bot-staging/v2/google/cloud/logging_v2/services/config_service_v2/client.py
  56. +0 −506 owl-bot-staging/v2/google/cloud/logging_v2/services/config_service_v2/pagers.py
  57. +0 −33 owl-bot-staging/v2/google/cloud/logging_v2/services/config_service_v2/transports/__init__.py
  58. +0 −536 owl-bot-staging/v2/google/cloud/logging_v2/services/config_service_v2/transports/base.py
  59. +0 −878 owl-bot-staging/v2/google/cloud/logging_v2/services/config_service_v2/transports/grpc.py
  60. +0 −882 owl-bot-staging/v2/google/cloud/logging_v2/services/config_service_v2/transports/grpc_asyncio.py
  61. +0 −22 owl-bot-staging/v2/google/cloud/logging_v2/services/logging_service_v2/__init__.py
  62. +0 −781 owl-bot-staging/v2/google/cloud/logging_v2/services/logging_service_v2/async_client.py
  63. +0 −920 owl-bot-staging/v2/google/cloud/logging_v2/services/logging_service_v2/client.py
  64. +0 −386 owl-bot-staging/v2/google/cloud/logging_v2/services/logging_service_v2/pagers.py
  65. +0 −33 owl-bot-staging/v2/google/cloud/logging_v2/services/logging_service_v2/transports/__init__.py
  66. +0 −291 owl-bot-staging/v2/google/cloud/logging_v2/services/logging_service_v2/transports/base.py
  67. +0 −402 owl-bot-staging/v2/google/cloud/logging_v2/services/logging_service_v2/transports/grpc.py
  68. +0 −406 owl-bot-staging/v2/google/cloud/logging_v2/services/logging_service_v2/transports/grpc_asyncio.py
  69. +0 −22 owl-bot-staging/v2/google/cloud/logging_v2/services/metrics_service_v2/__init__.py
  70. +0 −640 owl-bot-staging/v2/google/cloud/logging_v2/services/metrics_service_v2/async_client.py
  71. +0 −799 owl-bot-staging/v2/google/cloud/logging_v2/services/metrics_service_v2/client.py
  72. +0 −140 owl-bot-staging/v2/google/cloud/logging_v2/services/metrics_service_v2/pagers.py
  73. +0 −33 owl-bot-staging/v2/google/cloud/logging_v2/services/metrics_service_v2/transports/__init__.py
  74. +0 −261 owl-bot-staging/v2/google/cloud/logging_v2/services/metrics_service_v2/transports/base.py
  75. +0 −357 owl-bot-staging/v2/google/cloud/logging_v2/services/metrics_service_v2/transports/grpc.py
  76. +0 −361 owl-bot-staging/v2/google/cloud/logging_v2/services/metrics_service_v2/transports/grpc_asyncio.py
  77. +0 −138 owl-bot-staging/v2/google/cloud/logging_v2/types/__init__.py
  78. +0 −321 owl-bot-staging/v2/google/cloud/logging_v2/types/log_entry.py
  79. +0 −573 owl-bot-staging/v2/google/cloud/logging_v2/types/logging.py
  80. +0 −1,457 owl-bot-staging/v2/google/cloud/logging_v2/types/logging_config.py
  81. +0 −371 owl-bot-staging/v2/google/cloud/logging_v2/types/logging_metrics.py
  82. +0 −3 owl-bot-staging/v2/mypy.ini
  83. +0 −132 owl-bot-staging/v2/noxfile.py
  84. +0 −209 owl-bot-staging/v2/scripts/fixup_logging_v2_keywords.py
  85. +0 −54 owl-bot-staging/v2/setup.py
  86. +0 −16 owl-bot-staging/v2/tests/__init__.py
  87. +0 −16 owl-bot-staging/v2/tests/unit/__init__.py
  88. +0 −16 owl-bot-staging/v2/tests/unit/gapic/__init__.py
  89. +0 −16 owl-bot-staging/v2/tests/unit/gapic/logging_v2/__init__.py
  90. +0 −6,447 owl-bot-staging/v2/tests/unit/gapic/logging_v2/test_config_service_v2.py
  91. +0 −2,494 owl-bot-staging/v2/tests/unit/gapic/logging_v2/test_logging_service_v2.py
  92. +0 −2,359 owl-bot-staging/v2/tests/unit/gapic/logging_v2/test_metrics_service_v2.py
  93. +4 −1 renovate.json
  94. +31 −21 samples/snippets/noxfile.py
  95. +1 −1 scripts/readme-gen/templates/install_deps.tmpl.rst
  96. +1 −1 setup.py
  97. +1 −1 testing/constraints-3.6.txt
@@ -1,3 +1,3 @@
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
digest: sha256:87eee22d276554e4e52863ec9b1cb6a7245815dfae20439712bf644348215a5a
digest: sha256:424d88d5d08ddd955782a4359559dc536e658db1a77416c9a4fff79df9519ad2
@@ -31,4 +31,4 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "python-logging/.kokoro/trampoline.sh"
build_file: "python-logging/.kokoro/trampoline_v2.sh"
@@ -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.10"
}

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

env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/python-logging/.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-logging/.kokoro/trampoline_v2.sh"
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "INSTALL_LIBRARY_FROM_SOURCE"
value: "True"
}
@@ -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-logging/.kokoro/test-samples-against-head.sh"
}
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "INSTALL_LIBRARY_FROM_SOURCE"
value: "False"
}
@@ -0,0 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

env_vars: {
key: "INSTALL_LIBRARY_FROM_SOURCE"
value: "True"
}
@@ -37,4 +37,4 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "python-logging/.kokoro/trampoline.sh"
build_file: "python-logging/.kokoro/trampoline_v2.sh"
@@ -3,4 +3,4 @@
env_vars: {
key: "INSTALL_LIBRARY_FROM_SOURCE"
value: "False"
}
}
@@ -37,4 +37,4 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "python-logging/.kokoro/trampoline.sh"
build_file: "python-logging/.kokoro/trampoline_v2.sh"
@@ -3,4 +3,4 @@
env_vars: {
key: "INSTALL_LIBRARY_FROM_SOURCE"
value: "False"
}
}
@@ -37,4 +37,4 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "python-logging/.kokoro/trampoline.sh"
build_file: "python-logging/.kokoro/trampoline_v2.sh"
@@ -3,4 +3,4 @@
env_vars: {
key: "INSTALL_LIBRARY_FROM_SOURCE"
value: "False"
}
}
@@ -37,4 +37,4 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "python-logging/.kokoro/trampoline.sh"
build_file: "python-logging/.kokoro/trampoline_v2.sh"
@@ -3,4 +3,4 @@
env_vars: {
key: "INSTALL_LIBRARY_FROM_SOURCE"
value: "False"
}
}
@@ -23,6 +23,4 @@ set -eo pipefail
# Enables `**` to include files nested inside sub-folders
shopt -s globstar

cd github/python-logging

exec .kokoro/test-samples-impl.sh
@@ -24,8 +24,6 @@ set -eo pipefail
# Enables `**` to include files nested inside sub-folders
shopt -s globstar

cd github/python-logging

# Run periodic samples tests at latest release
if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"periodic"* ]]; then
# preserving the test runner implementation.
@@ -21,9 +21,22 @@ required_envvars+=()
pass_down_envvars+=(
"ENVIRONMENT"
"RUNTIME"
"NOX_SESSION"
###############
# Docs builds
###############
"STAGING_BUCKET"
"V2_STAGING_BUCKET"
"NOX_SESSION"
##################
# Samples builds
##################
"INSTALL_LIBRARY_FROM_SOURCE"
"RUN_TESTS_SESSION"
"BUILD_SPECIFIC_GCLOUD_PROJECT"
# Target directories.
"RUN_TESTS_DIRS"
# The nox session to run.
"RUN_TESTS_SESSION"
)

# Prevent unintentional override on the default image.
@@ -22,7 +22,7 @@ In order to add a feature:
documentation.

- The feature must work fully on the following CPython versions:
3.6, 3.7, 3.8 and 3.9 on both UNIX and Windows.
3.6, 3.7, 3.8, 3.9 and 3.10 on both UNIX and Windows.

- The feature must not add unnecessary dependencies (where
"unnecessary" is of course subjective, but new dependencies should
@@ -72,7 +72,7 @@ We use `nox <https://nox.readthedocs.io/en/latest/>`__ to instrument our tests.

- To run a single unit test::

$ nox -s unit-3.9 -- -k <name of test>
$ nox -s unit-3.10 -- -k <name of test>


.. note::
@@ -113,9 +113,9 @@ Coding Style
export GOOGLE_CLOUD_TESTING_BRANCH="main"

By doing this, you are specifying the location of the most up-to-date
version of ``python-logging``. The the suggested remote name ``upstream``
should point to the official ``googleapis`` checkout and the
the branch should be the main branch on that remote (``main``).
version of ``python-logging``. The
remote name ``upstream`` should point to the official ``googleapis``
checkout and the branch should be the default branch on that remote (``main``).

- This repository contains configuration for the
`pre-commit <https://pre-commit.com/>`__ tool, which automates checking
@@ -225,11 +225,13 @@ We support:
- `Python 3.7`_
- `Python 3.8`_
- `Python 3.9`_
- `Python 3.10`_

.. _Python 3.6: https://docs.python.org/3.6/
.. _Python 3.7: https://docs.python.org/3.7/
.. _Python 3.8: https://docs.python.org/3.8/
.. _Python 3.9: https://docs.python.org/3.9/
.. _Python 3.10: https://docs.python.org/3.10/


Supported versions can be found in our ``noxfile.py`` `config`_.
@@ -76,8 +76,8 @@
# The encoding of source files.
# source_encoding = 'utf-8-sig'

# The master toctree document.
master_doc = "index"
# The root toctree document.
root_doc = "index"

# General information about the project.
project = "google-cloud-logging"
@@ -280,7 +280,7 @@
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(
master_doc,
root_doc,
"google-cloud-logging.tex",
"google-cloud-logging Documentation",
author,
@@ -315,7 +315,7 @@
# (source start file, name, description, authors, manual section).
man_pages = [
(
master_doc,
root_doc,
"google-cloud-logging",
"google-cloud-logging Documentation",
[author],
@@ -334,7 +334,7 @@
# dir menu entry, description, category)
texinfo_documents = [
(
master_doc,
root_doc,
"google-cloud-logging",
"google-cloud-logging Documentation",
author,

0 comments on commit 76ac729

Please sign in to comment.