From 9bc2e5a21c260fa85e41b9074a66b757ffa379a9 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Mon, 11 Dec 2023 15:28:20 +0000 Subject: [PATCH 1/5] 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 00000000..a593528e --- /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/grpc/grpc/issues/35086 is fixed + ignore:There is no current event loop:DeprecationWarning:grpc.aio._channel From 5708a36bc2e22581c9d8792bffd8980505102b42 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Mon, 11 Dec 2023 15:39:48 +0000 Subject: [PATCH 2/5] filter warning from python-pubsub --- pytest.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pytest.ini b/pytest.ini index a593528e..0236a252 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/grpc/grpc/issues/35086 is fixed ignore:There is no current event loop:DeprecationWarning:grpc.aio._channel + # Remove once release PR is merged https://github.com/googleapis/python-pubsub/pull/1031 + ignore:.*pkg_resources.declare_namespace:DeprecationWarning + ignore:.*pkg_resources is deprecated as an API:DeprecationWarning From 64beca8e22f7474ae8e1074037d3ec78f7b7582b Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Wed, 24 Jan 2024 12:50:26 -0500 Subject: [PATCH 3/5] remove obsolete warning --- pytest.ini | 3 --- 1 file changed, 3 deletions(-) diff --git a/pytest.ini b/pytest.ini index 0236a252..a593528e 100644 --- a/pytest.ini +++ b/pytest.ini @@ -6,6 +6,3 @@ filterwarnings = ignore:.*custom tp_new.*in Python 3.14:DeprecationWarning # Remove once https://github.com/grpc/grpc/issues/35086 is fixed ignore:There is no current event loop:DeprecationWarning:grpc.aio._channel - # Remove once release PR is merged https://github.com/googleapis/python-pubsub/pull/1031 - ignore:.*pkg_resources.declare_namespace:DeprecationWarning - ignore:.*pkg_resources is deprecated as an API:DeprecationWarning From deb4a931ad0608f28b31d26e02e5d3f6715f7cae Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Wed, 24 Jan 2024 12:53:35 -0500 Subject: [PATCH 4/5] restore warning filter --- pytest.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pytest.ini b/pytest.ini index a593528e..68b4a734 100644 --- a/pytest.ini +++ b/pytest.ini @@ -6,3 +6,7 @@ filterwarnings = ignore:.*custom tp_new.*in Python 3.14:DeprecationWarning # Remove once https://github.com/grpc/grpc/issues/35086 is fixed ignore:There is no current event loop:DeprecationWarning:grpc.aio._channel + # Remove once the minimum version of `googleapis-common-protos` in setup.py + # is 1.62.0 + ignore:.*pkg_resources.declare_namespace:DeprecationWarning + ignore:.*pkg_resources is deprecated as an API:DeprecationWarning \ No newline at end of file From add6759036fd5b3b416c9f225960b2d76ab350f0 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Fri, 12 Apr 2024 17:39:57 +0000 Subject: [PATCH 5/5] filter upstream warning from gapic-generator-python --- pytest.ini | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pytest.ini b/pytest.ini index 68b4a734..43b5b00b 100644 --- a/pytest.ini +++ b/pytest.ini @@ -9,4 +9,6 @@ filterwarnings = # Remove once the minimum version of `googleapis-common-protos` in setup.py # is 1.62.0 ignore:.*pkg_resources.declare_namespace:DeprecationWarning - ignore:.*pkg_resources is deprecated as an API:DeprecationWarning \ No newline at end of file + ignore:.*pkg_resources is deprecated as an API:DeprecationWarning + # Remove warning once https://github.com/googleapis/gapic-generator-python/issues/1939 is fixed + ignore:get_mtls_endpoint_and_cert_source is deprecated.:DeprecationWarning