| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 58df2da commit 014e951
12 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -38,15 +38,30 @@ replacements: | |||
| 38 | 38 | ] | |
| 39 | 39 | before: | | |
| 40 | 40 | "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", | |
| 41 | - \ "grpcio >= 1.44.0, < 2.0.0", | ||
| 41 | + "grpcio >= 1.59.0, < 2.0.0", | ||
| 42 | 42 | after: | | |
| 43 | 43 | "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", | |
| 44 | 44 | "google-cloud-appengine-logging>=0.1.3, <2.0.0", | |
| 45 | 45 | "google-cloud-audit-log >= 0.3.1, < 1.0.0", | |
| 46 | 46 | "google-cloud-core >= 2.0.0, <3.0.0", | |
| 47 | 47 | "grpc-google-iam-v1 >=0.12.4, <1.0.0", | |
| 48 | - "opentelemetry-api >= 1.9.0", | ||
| 49 | - "grpcio >= 1.44.0, < 2.0.0", | ||
| 48 | + "opentelemetry-api >= 1.16.0", | ||
| 49 | + "grpcio >= 1.59.0, < 2.0.0", | ||
| 50 | + count: 1 | ||
| 51 | + - paths: [ | ||
| 52 | + "packages/google-cloud-logging/testing/constraints-3.10.txt" | ||
| 53 | + ] | ||
| 54 | + before: | | ||
| 55 | + google-auth==2.14.1 | ||
| 56 | + grpcio==1.59.0 | ||
| 57 | + after: | | ||
| 58 | + google-auth==2.14.1 | ||
| 59 | + google-cloud-appengine-logging==0.1.3 | ||
| 60 | + google-cloud-audit-log==0.3.1 | ||
| 61 | + google-cloud-core==2.0.0 | ||
| 62 | + grpc-google-iam-v1==0.12.4 | ||
| 63 | + opentelemetry-api==1.16.0 | ||
| 64 | + grpcio==1.59.0 | ||
| 50 | 65 | count: 1 | |
| 51 | 66 | - paths: [ | |
| 52 | 67 | "packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_copy_log_entries_async.py", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,7 +22,7 @@ In order to add a feature: | |||
| 22 | 22 | documentation. | |
| 23 | 23 | ||
| 24 | 24 | - The feature must work fully on the following CPython versions: | |
| 25 | - 3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13 and 3.14 on both UNIX and Windows. | ||
| 25 | + 3.10, 3.11, 3.12, 3.13 and 3.14 on both UNIX and Windows. | ||
| 26 | 26 | ||
| 27 | 27 | - The feature must not add unnecessary dependencies (where | |
| 28 | 28 | "unnecessary" is of course subjective, but new dependencies should | |
@@ -195,11 +195,11 @@ configure them just like the System Tests. | |||
| 195 | 195 | ||
| 196 | 196 | # Run all tests in a folder | |
| 197 | 197 | $ cd samples/snippets | |
| 198 | - $ nox -s py-3.8 | ||
| 198 | + $ nox -s py-3.10 | ||
| 199 | 199 | ||
| 200 | 200 | # Run a single sample test | |
| 201 | 201 | $ cd samples/snippets | |
| 202 | - $ nox -s py-3.8 -- -k <name of test> | ||
| 202 | + $ nox -s py-3.10 -- -k <name of test> | ||
| 203 | 203 | ||
| 204 | 204 | ******************************************** | |
| 205 | 205 | Note About ``README`` as it pertains to PyPI | |
@@ -221,18 +221,12 @@ Supported Python Versions | |||
| 221 | 221 | ||
| 222 | 222 | We support: | |
| 223 | 223 | ||
| 224 | - - `Python 3.7`_ | ||
| 225 | - - `Python 3.8`_ | ||
| 226 | - - `Python 3.9`_ | ||
| 227 | 224 | - `Python 3.10`_ | |
| 228 | 225 | - `Python 3.11`_ | |
| 229 | 226 | - `Python 3.12`_ | |
| 230 | 227 | - `Python 3.13`_ | |
| 231 | 228 | - `Python 3.14`_ | |
| 232 | 229 | ||
| 233 | - .. _Python 3.7: https://docs.python.org/3.7/ | ||
| 234 | - .. _Python 3.8: https://docs.python.org/3.8/ | ||
| 235 | - .. _Python 3.9: https://docs.python.org/3.9/ | ||
| 236 | 230 | .. _Python 3.10: https://docs.python.org/3.10/ | |
| 237 | 231 | .. _Python 3.11: https://docs.python.org/3.11/ | |
| 238 | 232 | .. _Python 3.12: https://docs.python.org/3.12/ | |
@@ -245,17 +239,7 @@ Supported versions can be found in our ``noxfile.py`` `config`_. | |||
| 245 | 239 | .. _config: https://github.com/googleapis/google-cloud-python/blob/main/noxfile.py | |
| 246 | 240 | ||
| 247 | 241 | ||
| 248 | - We also explicitly decided to support Python 3 beginning with version 3.7. | ||
| 249 | - Reasons for this include: | ||
| 250 | - | ||
| 251 | - - Encouraging use of newest versions of Python 3 | ||
| 252 | - - Taking the lead of `prominent`_ open-source `projects`_ | ||
| 253 | - - `Unicode literal support`_ which allows for a cleaner codebase that | ||
| 254 | - works in both Python 2 and Python 3 | ||
| 255 | - | ||
| 256 | - .. _prominent: https://docs.djangoproject.com/en/1.9/faq/install/#what-python-version-can-i-use-with-django | ||
| 257 | - .. _projects: http://flask.pocoo.org/docs/0.10/python3/ | ||
| 258 | - .. _Unicode literal support: https://www.python.org/dev/peps/pep-0414/ | ||
| 242 | + We also explicitly decided to support Python 3 beginning with version 3.10. | ||
| 259 | 243 | ||
| 260 | 244 | ********** | |
| 261 | 245 | Versioning | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,12 @@ | |||
| 1 | + google-api-core==2.17.1 | ||
| 2 | + google-auth==2.14.1 | ||
| 3 | + google-cloud-appengine-logging==0.1.3 | ||
| 4 | + google-cloud-audit-log==0.3.1 | ||
| 5 | + google-cloud-core==2.0.0 | ||
| 6 | + grpc-google-iam-v1==0.12.4 | ||
| 7 | + grpcio==1.59.0 | ||
| 8 | + grpcio==1.75.1 | ||
| 9 | + opentelemetry-api==1.16.0 | ||
| 10 | + proto-plus==1.22.3 | ||
| 11 | + proto-plus==1.25.0 | ||
| 12 | + protobuf==4.25.8 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -383,7 +383,8 @@ def get_default_handler(self, **kw): | |||
| 383 | 383 | elif monitored_resource.type == _GKE_RESOURCE_TYPE: | |
| 384 | 384 | return StructuredLogHandler(**kw, project_id=self.project) | |
| 385 | 385 | elif monitored_resource.type == _GCF_RESOURCE_TYPE: | |
| 386 | - # __stdout__ stream required to support structured logging on Python 3.7 | ||
| 386 | + # Bypassing redirects via __stdout__ ensures structured logging | ||
| 387 | + # works robustly on Google Cloud Functions even if stdout is redirected. | ||
| 387 | 388 | kw["stream"] = kw.get("stream", sys.__stdout__) | |
| 388 | 389 | return StructuredLogHandler(**kw, project_id=self.project) | |
| 389 | 390 | elif monitored_resource.type == _RUN_RESOURCE_TYPE: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -47,7 +47,12 @@ | |||
| 47 | 47 | ||
| 48 | 48 | CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute() | |
| 49 | 49 | ||
| 50 | - LOWER_BOUND_CONSTRAINTS_FILE = CURRENT_DIRECTORY / "constraints.txt" | ||
| 50 | + if (CURRENT_DIRECTORY / "testing").exists(): | ||
| 51 | + LOWER_BOUND_CONSTRAINTS_FILE = ( | ||
| 52 | + CURRENT_DIRECTORY / "testing" / f"constraints-{ALL_PYTHON[0]}.txt" | ||
| 53 | + ) | ||
| 54 | + else: | ||
| 55 | + LOWER_BOUND_CONSTRAINTS_FILE = CURRENT_DIRECTORY / "constraints.txt" | ||
| 51 | 56 | PACKAGE_NAME = "google-cloud-logging" | |
| 52 | 57 | ||
| 53 | 58 | UNIT_TEST_STANDARD_DEPENDENCIES = [ | |
@@ -466,14 +471,6 @@ def prerelease_deps(session, protobuf_implementation): | |||
| 466 | 471 | unit_deps_all = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_EXTERNAL_DEPENDENCIES | |
| 467 | 472 | session.install(*unit_deps_all) | |
| 468 | 473 | ||
| 469 | - # Install dependencies for the system test environment | ||
| 470 | - system_deps_all = ( | ||
| 471 | - SYSTEM_TEST_STANDARD_DEPENDENCIES | ||
| 472 | - + SYSTEM_TEST_EXTERNAL_DEPENDENCIES | ||
| 473 | - + SYSTEM_TEST_EXTRAS | ||
| 474 | - ) | ||
| 475 | - session.install(*system_deps_all) | ||
| 476 | - | ||
| 477 | 474 | # Because we test minimum dependency versions on the minimum Python | |
| 478 | 475 | # version, the first version we test with in the unit tests sessions has a | |
| 479 | 476 | # constraints file containing all dependencies and extras. | |
@@ -585,14 +582,6 @@ def core_deps_from_source(session, protobuf_implementation): | |||
| 585 | 582 | unit_deps_all = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_EXTERNAL_DEPENDENCIES | |
| 586 | 583 | session.install(*unit_deps_all) | |
| 587 | 584 | ||
| 588 | - # Install dependencies for the system test environment | ||
| 589 | - system_deps_all = ( | ||
| 590 | - SYSTEM_TEST_STANDARD_DEPENDENCIES | ||
| 591 | - + SYSTEM_TEST_EXTERNAL_DEPENDENCIES | ||
| 592 | - + SYSTEM_TEST_EXTRAS | ||
| 593 | - ) | ||
| 594 | - session.install(*system_deps_all) | ||
| 595 | - | ||
| 596 | 585 | # Because we test minimum dependency versions on the minimum Python | |
| 597 | 586 | # version, the first version we test with in the unit tests sessions has a | |
| 598 | 587 | # constraints file containing all dependencies and extras. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,14 +13,6 @@ filterwarnings = | |||
| 13 | 13 | ignore:get_mtls_endpoint_and_cert_source is deprecated.:DeprecationWarning | |
| 14 | 14 | # DeprecationWarnings triggered by Flask 1.0 testing by Flask dependencies in test code | |
| 15 | 15 | ignore:Importing 'itsdangerous.json' is deprecated and will be removed in ItsDangerous 2.1:DeprecationWarning | |
| 16 | - # 3.7 deprecation warnings, remove after support for Python 3.7 is dropped | ||
| 17 | - ignore:After January 1, 2024, new releases of this library will drop support for Python 3.7:DeprecationWarning | ||
| 18 | - ignore:Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working:DeprecationWarning | ||
| 19 | - ignore:You are using a non-supported Python version \(3\.7:FutureWarning | ||
| 20 | - # 3.8 deprecation warnings, remove after support for Python 3.8 is dropped | ||
| 21 | - ignore:You are using a non-supported Python version \(3\.8:FutureWarning | ||
| 22 | - # 3.9 deprecation warnings, remove after support for Python 3.9 is dropped | ||
| 23 | - ignore:You are using a Python version \(3\.9:FutureWarning | ||
| 24 | 16 | # 3.10 deprecation warnings, remove after support for Python 3.10 is dropped | |
| 25 | 17 | ignore:You are using a Python version \(3\.10:FutureWarning | |
| 26 | 18 | ignore:Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working:DeprecationWarning | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -47,8 +47,8 @@ | |||
| 47 | 47 | "google-cloud-audit-log >= 0.3.1, < 1.0.0", | |
| 48 | 48 | "google-cloud-core >= 2.0.0, <3.0.0", | |
| 49 | 49 | "grpc-google-iam-v1 >=0.12.4, <1.0.0", | |
| 50 | - "opentelemetry-api >= 1.9.0", | ||
| 51 | - "grpcio >= 1.44.0, < 2.0.0", | ||
| 50 | + "opentelemetry-api >= 1.16.0", | ||
| 51 | + "grpcio >= 1.59.0, < 2.0.0", | ||
| 52 | 52 | "grpcio >= 1.75.1, < 2.0.0; python_version >= '3.14'", | |
| 53 | 53 | "proto-plus >= 1.22.3, <2.0.0", | |
| 54 | 54 | "proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,6 +6,11 @@ | |||
| 6 | 6 | # then this file should have google-cloud-foo==1.14.0 | |
| 7 | 7 | google-api-core==2.17.1 | |
| 8 | 8 | google-auth==2.14.1 | |
| 9 | - grpcio==1.44.0 | ||
| 9 | + google-cloud-appengine-logging==0.1.3 | ||
| 10 | + google-cloud-audit-log==0.3.1 | ||
| 11 | + google-cloud-core==2.0.0 | ||
| 12 | + grpc-google-iam-v1==0.12.4 | ||
| 13 | + opentelemetry-api==1.16.0 | ||
| 14 | + grpcio==1.59.0 | ||
| 10 | 15 | proto-plus==1.22.3 | |
| 11 | 16 | protobuf==4.25.8 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments