From c9c22c1aa06b7c4ef6d54e4445b0d087f5debd83c215613befce37e991461965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 18 Jul 2024 06:45:21 +0000 Subject: [PATCH] - Update to 2.10.0 * refactored a big part of the foundation of the SDK * Additional integrations will now be activated automatically if the SDK detects the respective package is installed * Added new API for custom instrumentation: new_scope, isolation_scope * Many breaking changes, see CHANGELOG.md * Removed support for Python 2 and Python 3.5 * Removed support for Celery 3.* * Removed support for Django 1.8, 1.9, 1.10 * Removed support for Flask 0.* * Removed support for gRPC < 1.39 * Removed support for Tornado < 6 * few deprecations * many more changes, see CHANGELOG.md - Revised tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sentry-sdk?expand=0&rev=74 --- python-sentry-sdk.changes | 19 +++++++++++++++++++ python-sentry-sdk.spec | 34 +++++++++++++++++----------------- sentry-python-1.45.0.tar.gz | 3 --- sentry-python-2.10.0.tar.gz | 3 +++ 4 files changed, 39 insertions(+), 20 deletions(-) delete mode 100644 sentry-python-1.45.0.tar.gz create mode 100644 sentry-python-2.10.0.tar.gz diff --git a/python-sentry-sdk.changes b/python-sentry-sdk.changes index de7b9f8..58d16c6 100644 --- a/python-sentry-sdk.changes +++ b/python-sentry-sdk.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Wed Jul 17 13:51:46 UTC 2024 - Markéta Machová + +- Update to 2.10.0 + * refactored a big part of the foundation of the SDK + * Additional integrations will now be activated automatically if + the SDK detects the respective package is installed + * Added new API for custom instrumentation: new_scope, isolation_scope + * Many breaking changes, see CHANGELOG.md + * Removed support for Python 2 and Python 3.5 + * Removed support for Celery 3.* + * Removed support for Django 1.8, 1.9, 1.10 + * Removed support for Flask 0.* + * Removed support for gRPC < 1.39 + * Removed support for Tornado < 6 + * few deprecations + * many more changes, see CHANGELOG.md +- Revised tests + ------------------------------------------------------------------- Sat Jun 29 19:24:30 UTC 2024 - Dirk Müller diff --git a/python-sentry-sdk.spec b/python-sentry-sdk.spec index be5f85c..34325f2 100644 --- a/python-sentry-sdk.spec +++ b/python-sentry-sdk.spec @@ -18,18 +18,16 @@ # nothing provides python2-venusian >= 1.0 needed by python2-pyramid %{?sle15_python_module_pythons} -# ipdb no longer available for python 3.9 -%global skip_python39 1 Name: python-sentry-sdk -Version: 1.45.0 +Version: 2.10.0 Release: 0 Summary: Python SDK for Sentry.io License: BSD-2-Clause Group: Development/Languages/Python URL: https://github.com/getsentry/sentry-python Source0: https://github.com/getsentry/sentry-python/archive/%{version}/sentry-python-%{version}.tar.gz -BuildRequires: %{python_module Django >= 1.8} -BuildRequires: %{python_module Flask >= 0.11} +BuildRequires: %{python_module Django >= 2.0} +BuildRequires: %{python_module Flask >= 1.0} BuildRequires: %{python_module MarkupSafe} BuildRequires: %{python_module SQLAlchemy >= 1.2} BuildRequires: %{python_module aiohttp >= 3.5} @@ -37,18 +35,18 @@ BuildRequires: %{python_module asttokens} BuildRequires: %{python_module asyncpg >= 0.23} BuildRequires: %{python_module blinker >= 1.1} BuildRequires: %{python_module bottle >= 0.12.13} -BuildRequires: %{python_module celery >= 3} +BuildRequires: %{python_module celery >= 4} BuildRequires: %{python_module certifi} BuildRequires: %{python_module executing} BuildRequires: %{python_module falcon >= 1.4} -BuildRequires: %{python_module grpcio >= 1.21.1} +BuildRequires: %{python_module grpcio >= 1.39} BuildRequires: %{python_module httpx >= 0.16.0} BuildRequires: %{python_module loguru >= 0.5} BuildRequires: %{python_module pymongo >= 3.1} BuildRequires: %{python_module rq >= 0.6} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module starlette >= 0.19.1} -BuildRequires: %{python_module tornado >= 5} +BuildRequires: %{python_module tornado >= 6} BuildRequires: %{python_module urllib3 >= 1.26.11} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -56,12 +54,15 @@ BuildRequires: python-rpm-macros BuildRequires: %{python_module Werkzeug} BuildRequires: %{python_module PySocks} BuildRequires: %{python_module eventlet} +BuildRequires: %{python_module fastapi >= 0.79.0} BuildRequires: %{python_module gevent} +BuildRequires: %{python_module greenlet} BuildRequires: %{python_module hypothesis} BuildRequires: %{python_module ipdb} BuildRequires: %{python_module jsonschema >= 3.2.0} BuildRequires: %{python_module pyramid} BuildRequires: %{python_module pyrsistent >= 0.16.0} +BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module pytest-cov >= 2.8.1} BuildRequires: %{python_module pytest-forked >= 1.4.0} BuildRequires: %{python_module pytest-localserver >= 0.5.1} @@ -80,21 +81,19 @@ BuildRequires: %{python_module tox >= 3.7.0} #BuildRequires: %%{python_module pure_eval} #BuildRequires: %%{python_module chalice >= 1.16.0} #BuildRequires: %%{python_module starlite >= 1.48} -#BuildRequires: %%{python_module fastapi >= 0.79.0} #BuildRequires: %%{python_module quart >= 0.16.1} #BuildRequires: %%{python_module sanic >= 0.8} #BuildRequires: %%{python_module opentelemetry-distro >= 0.40b0} #BuildRequires: %%{python_module beam >= 2.12} #BuildRequires: %%{python_module chalice >= 1.16.0} #BuildRequires: %%{python_module clickhouse-driver >= 0.2.0} -#BuildRequires: %%{python_module fastapi >= 0.79.0} # /SECTION # Install requirements Requires: python-certifi Requires: python-urllib3 >= 1.26.11 # Extra requirements -Suggests: python-Django >= 1.8 -Suggests: python-Flask >= 0.11 +Suggests: python-Django >= 2.0 +Suggests: python-Flask >= 1.0 Suggests: python-MarkupSafe Suggests: python-SQLAlchemy >= 1.2 Suggests: python-aiohttp >= 3.5 @@ -102,17 +101,18 @@ Suggests: python-asttokens Suggests: python-asyncpg >= 0.23 Suggests: python-blinker >= 1.1 Suggests: python-bottle >= 0.12.13 -Suggests: python-celery >= 3 +Suggests: python-celery >= 4 Suggests: python-executing Suggests: python-falcon >= 1.4 -Suggests: python-grpcio >= 1.21.1 +Suggests: python-fastapi >= 0.79.0 +Suggests: python-grpcio >= 1.39 Suggests: python-httpx >= 0.16.0 Suggests: python-jsonschema Suggests: python-loguru >= 0.5 Suggests: python-pymongo >= 3.1 Suggests: python-rq >= 0.6 Suggests: python-starlette >= 0.19.1 -Suggests: python-tornado >= 5 +Suggests: python-tornado >= 6 # SECTION extra requirements - which rise up buildtime error or missing in openSUSE #Requires: python-sanic >= 0.8 #Requires: python-apache-beam >= 2.12 @@ -122,7 +122,6 @@ Suggests: python-tornado >= 5 #Requires: python-pure_eval #Requires: python-chalice >= 1.16.0 #Requires: python-starlite >= 1.48 -#Requires: python-fastapi >= 0.79.0 #Requires: python-quart >= 0.16.1 #Requires: python-sanic >= 0.8 #Requires: python-opentelemetry-distro >= 0.40b0 @@ -151,10 +150,11 @@ https://sentry.io/for/python/ %check export PYTHONDONTWRITEBYTECODE=1 export PYTEST_ADDOPTS="-W ignore::DeprecationWarning" +export DJANGO_SETTINGS_MODULE=tests.conftest # do not test integration (many package are missing at SUSE): rm -r tests/integrations # test_auto_enabling_integrations_catches_import_error asert False where False = ..., not sure -%pytest -rs -k 'not (test_transport_works or test_auto_enabling_integrations_catches_import_error or test_filename or test_transport_infinite_loop or test_simple_rate_limits or test_data_category_limits or test_complex_limits_without_data_category or test_leaks or test_utils or test_metrics)' +%pytest -rs -k 'not ((test_default_release and test_utils) or test_new_scopes_compat_event or test_transport_works or test_auto_enabling_integrations_catches_import_error)' %files %{python_files} %doc README.md CHANGELOG.md CONTRIBUTING.md CONTRIBUTING-aws-lambda.md diff --git a/sentry-python-1.45.0.tar.gz b/sentry-python-1.45.0.tar.gz deleted file mode 100644 index 658e350..0000000 --- a/sentry-python-1.45.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:98c9ff0874110c5601945d7fe7177e157506c02c40e33b8a180ec14d7ae0cde3 -size 475425 diff --git a/sentry-python-2.10.0.tar.gz b/sentry-python-2.10.0.tar.gz new file mode 100644 index 0000000..0ba72dd --- /dev/null +++ b/sentry-python-2.10.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fced0770c57d48319f6f8cd60d09f56bf10ba9f4e57825e139534fb0d863252a +size 534265