From bca0aea322750d1aa07b700066b0311a9a1b1570 Mon Sep 17 00:00:00 2001 From: Roman Inflianskas Date: Fri, 19 Jul 2024 19:40:39 +0300 Subject: [PATCH] Enable `grpc` integration tests [skip changelog] --- python-sentry-sdk.spec | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/python-sentry-sdk.spec b/python-sentry-sdk.spec index 702a442..b361722 100644 --- a/python-sentry-sdk.spec +++ b/python-sentry-sdk.spec @@ -201,6 +201,7 @@ Summary: %{summary} %{toxenvs_by_components} %{toxenv}-common %{toxenv}-cloud_resource_context + %{toxenv}-grpc %{nil} } @@ -219,7 +220,6 @@ Summary: %{summary} # gevent: no_py313_support_gevent # gql: no_gql # graphene: old_graphene -# grpc: protobuf is too old # httpx: require network # potel: no_potel # pymongo: no_mockupdb @@ -246,7 +246,6 @@ Summary: %{summary} %{toxenv}-gevent %{toxenv}-gql %{toxenv}-graphene - %{toxenv}-grpc %{toxenv}-httpx %{toxenv}-potel %{toxenv}-pymongo @@ -302,6 +301,10 @@ sed -r -i '/(opentelemetry-instrumentation-sklearn)/d' setup.py sed -r -i '/(opentelemetry-instrumentation-starlette)/d' setup.py sed -r -i '/(opentelemetry-instrumentation-tortoiseorm)/d' setup.py +# These Python packages needed for linting are not packaged. +sed -r -i '/(mypy-protobuf)/d' tox.ini +sed -r -i '/(types-protobuf)/d' tox.ini + %generate_buildrequires %pyproject_buildrequires -x %{extras_csv} -e %{toxenvs_csv} @@ -310,7 +313,7 @@ sed -r -i '/(opentelemetry-instrumentation-tortoiseorm)/d' setup.py # Re-generate the protobuf bindings for compatibility with the packaged # protobuf version. pushd tests/integrations/grpc/protos/ -protoc --python_out="${PWD}" grpc_test_service.proto +protoc --python_out="${PWD}/.." grpc_test_service.proto popd %pyproject_wheel @@ -423,9 +426,6 @@ ignore="${ignore-} --ignore=tests/integrations/graphene" # no_mockupdb ignore="${ignore-} --ignore=tests/integrations/pymongo" -# protobuf is too old -ignore="${ignore-} --ignore=tests/integrations/grpc" - # no_newrelic deselect="${deselect-} --deselect=tests/integrations/celery/test_celery.py::test_newrelic_interference"