From 31f4113d98eaea32a7a992b0f27ceeb1aeed2b02 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Thu, 30 Nov 2023 00:27:33 +0000 Subject: [PATCH 1/3] build: treat warnings as errors --- pytest.ini | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 pytest.ini diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..eb96957 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,8 @@ +[pytest] +filterwarnings = + # treat all warnings as errors + error + # Remove once https://github.com/protocolbuffers/protobuf/issues/12186 is fixed + ignore:.*custom tp_new.*in Python 3.14:DeprecationWarning + # Remove once https://github.com/googleapis/python-cloud-core/issues/259 is fixed + ignore:datetime.datetime.utcnow\(\) is deprecated:DeprecationWarning From fcf6e988088a3a7bfd8c6104ed058d04ef5dfa16 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Thu, 30 Nov 2023 00:31:36 +0000 Subject: [PATCH 2/3] ignore warnings from googleapis-common-protos --- pytest.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pytest.ini b/pytest.ini index eb96957..290c25a 100644 --- a/pytest.ini +++ b/pytest.ini @@ -6,3 +6,6 @@ filterwarnings = ignore:.*custom tp_new.*in Python 3.14:DeprecationWarning # Remove once https://github.com/googleapis/python-cloud-core/issues/259 is fixed ignore:datetime.datetime.utcnow\(\) is deprecated:DeprecationWarning + # Remove once https://github.com/googleapis/python-api-common-protos/pull/187/files is merged + ignore:.*pkg_resources.declare_namespace:DeprecationWarning + ignore:.*pkg_resources is deprecated as an API:DeprecationWarning From e2c252bd374be0958e72f82097ec67397dc5b8b7 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Thu, 30 Nov 2023 18:37:46 +0000 Subject: [PATCH 3/3] remove grpc from system test which is not used in this library --- noxfile.py | 5 ----- owlbot.py | 8 ++++++++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/noxfile.py b/noxfile.py index c672b30..19ef56f 100644 --- a/noxfile.py +++ b/noxfile.py @@ -190,11 +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 - session.install("--pre", "grpcio!=1.52.0rc1") - session.install(*SYSTEM_TEST_STANDARD_DEPENDENCIES, *constraints) if SYSTEM_TEST_EXTERNAL_DEPENDENCIES: diff --git a/owlbot.py b/owlbot.py index 999d0e6..0864e69 100644 --- a/owlbot.py +++ b/owlbot.py @@ -32,5 +32,13 @@ python.py_samples(skip_readmes=True) +s.replace( + "noxfile.py", + """ # 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 + session.install\("--pre", "grpcio!=1.52.0rc1"\)""", + "" +) s.shell.run(["nox", "-s", "blacken"], hide_output=False)