- update to 1.45.0:

* Allow to upsert monitors
  * It's now possible to provide `monitor_config` to the
    `monitor` decorator/context manager directly:
  * Add Django `signals_denylist` to filter signals that are
    attached to by `signals_spans`
  * `increment` for metrics
  * Add `value`, `unit` to `before_emit_metric`
  * New normalization rules for metric keys, names, units, tags
  * Change `data_category` from `statsd` to `metric_bucket`
  * Accessing `__mro__` might throw a `ValueError`
  * Suppress prompt spawned by subprocess when using `pythonw`
  * Handle `None` in GraphQL query
  * Do not send "quiet" Sanic exceptions to Sentry
  * Implement `metric_bucket` rate limits
  * Fix type hints for `monitor` decorator
  * Remove deprecated `typing` imports in crons
  * Make `monitor_config` a `TypedDict`
  * Make `monitor` async friendly
  * Fixed `Event | None` runtime `TypeError`
  * ref: Define types at runtime
  * Explicit reexport of types
  * Add optional `keep_alive`
  * Add support for Celery Redbeat cron tasks
  * `aws_event` can be an empty list
  * Re-export `Event` in `types.py`
  * We added an integration for OpenAI to capture errors and also
    performance data when using the OpenAI Python SDK.
  * Discard open OpenTelemetry spans after 10 minutes
  * Propagate sentry-trace and baggage headers to Huey tasks

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sentry-sdk?expand=0&rev=73
This commit is contained in:
Dirk Mueller 2024-06-29 19:27:25 +00:00 committed by Git OBS Bridge
commit 525a8ed69a
6 changed files with 1308 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

1114
python-sentry-sdk.changes Normal file

File diff suppressed because it is too large Load Diff

164
python-sentry-sdk.spec Normal file
View File

@ -0,0 +1,164 @@
#
# spec file for package python-sentry-sdk
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# 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
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 MarkupSafe}
BuildRequires: %{python_module SQLAlchemy >= 1.2}
BuildRequires: %{python_module aiohttp >= 3.5}
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 certifi}
BuildRequires: %{python_module executing}
BuildRequires: %{python_module falcon >= 1.4}
BuildRequires: %{python_module grpcio >= 1.21.1}
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 urllib3 >= 1.26.11}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module Werkzeug}
BuildRequires: %{python_module PySocks}
BuildRequires: %{python_module eventlet}
BuildRequires: %{python_module gevent}
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-cov >= 2.8.1}
BuildRequires: %{python_module pytest-forked >= 1.4.0}
BuildRequires: %{python_module pytest-localserver >= 0.5.1}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module responses}
BuildRequires: %{python_module tox >= 3.7.0}
# /SECTION
# SECTION test requirements - which rise up buildtime error or missing in openSUSE
#BuildRequires: %%{python_module pytest-watch >= 4.2.0}
# /SECTION
# SECTION extra requirements - which rise up buildtime error or missing in openSUSE
#BuildRequires: %%{python_module arq >= 0.23}
#BuildRequires: %%{python_module pyspark >= 2.4.4}
#BuildRequires: %%{python_module apache-beam >= 2.12}
#BuildRequires: %%{python_module huey >= 2}
#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-MarkupSafe
Suggests: python-SQLAlchemy >= 1.2
Suggests: python-aiohttp >= 3.5
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-executing
Suggests: python-falcon >= 1.4
Suggests: python-grpcio >= 1.21.1
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
# SECTION extra requirements - which rise up buildtime error or missing in openSUSE
#Requires: python-sanic >= 0.8
#Requires: python-apache-beam >= 2.12
#Requires: python-huey >= 2
#Requires: python-arq >= 0.23
#Requires: python-pyspark >= 2.4.4
#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
#Requires: python- beam >= 2.12}
#Requires: python-chalice >= 1.16.0}
#Requires: python-clickhouse-driver >= 0.2.0}
#Requires: python-fastapi >= 0.79.0}
# /SECTION
BuildArch: noarch
%python_subpackages
%description
A Python SDK for Sentry.io.
https://sentry.io/for/python/
%prep
%autosetup -p1 -n sentry-python-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export PYTHONDONTWRITEBYTECODE=1
export PYTEST_ADDOPTS="-W ignore::DeprecationWarning"
# 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)'
%files %{python_files}
%doc README.md CHANGELOG.md CONTRIBUTING.md CONTRIBUTING-aws-lambda.md
%license LICENSE
%{python_sitelib}/sentry*/
%changelog

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6bf702dcee87ee2c276eeb257e5550a502e7342600e3d4be7e09d6f440a28d13
size 458601

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:98c9ff0874110c5601945d7fe7177e157506c02c40e33b8a180ec14d7ae0cde3
size 475425