python-sentry-sdk/python-sentry-sdk.spec
Dirk Mueller 31c5559eed - update to 1.38.0:
* Only add trace context to checkins and do not run
    `event_processors` for checkins (#2536) by @antonpirker
  * Metric span summaries (#2522) by @mitsuhiko
  * Add source context to code locations (#2539) by @jan-auer
  * Use in-app filepath instead of absolute path (#2541) by
    @antonpirker
  * Switch to `jinja2` for generating CI yamls (#2534) by
    @sentrivana
  * Fix `NameError` on `parse_version` with eventlet (#2532) by
    @sentrivana
  * build(deps): bump checkouts/data-schemas from `68def1e` to
    `e9f7d58` (#2501) by @dependabot
  * Move installed modules code to utils (#2429) by @sentrivana
  * Note: We moved the internal function `_get_installed_modules`
    from `sentry_sdk.integrations.modules` to `sentry_sdk.utils`.
  * So if you use this function you have to update your imports
  * Add code locations for metrics (#2526) by @jan-auer
  * Add query source to DB spans (#2521) by @antonpirker
  * Send events to Spotlight sidecar (#2524) by @HazAT
  * Fix: Prevent global var from being discarded at shutdown
    (#2530) by @antonpirker
  * Fix: Scope transaction source not being updated in scope.span
    setter (#2519) by @sl0thentr0py
- add mock.patch to use mock from stdlib
  - Expose proxy_headers as top level config and use in ProxyManager:
  - Fix django legacy url resolver regex substitution due to
    experimental session_mode in favor of auto detecting its value,
  - Fixed Django transaction name by setting the name to
  - Fix for worker that logs data dropping of events with level

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sentry-sdk?expand=0&rev=60
2023-12-08 16:04:03 +00:00

147 lines
5.7 KiB
RPMSpec

#
# spec file for package python-sentry-sdk
#
# Copyright (c) 2023 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}
Name: python-sentry-sdk
Version: 1.38.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 SQLAlchemy >= 1.2}
BuildRequires: %{python_module aiohttp >= 3.5}
BuildRequires: %{python_module asttokens}
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.0}
BuildRequires: %{python_module pytest}
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}
#BuildRequires: %%{python_module responses}
# /SECTION
# SECTION extra requirements - which rise up buildtime error or missing in openSUSE
#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.35b0}
# /SECTION
Requires: python-Django >= 1.8
Requires: python-Flask >= 0.11
Requires: python-SQLAlchemy >= 1.2
Requires: python-aiohttp >= 3.5
Requires: python-asttokens
Requires: python-blinker >= 1.1
Requires: python-bottle >= 0.12.13
Requires: python-celery >= 3
Requires: python-certifi
Requires: python-executing
Requires: python-falcon >= 1.4
Requires: python-grpcio >= 1.21.1
Requires: python-httpx >= 0.16.0
Requires: python-jsonschema
Requires: python-loguru >= 0.5
Requires: python-pymongo >= 3.1
Requires: python-rq >= 0.6
Requires: python-starlette >= 0.19.1
Requires: python-tornado >= 5
Requires: python-urllib3 >= 1.26.11
# 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-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.35b0
# /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:
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)'
%files %{python_files}
%doc README.md CHANGELOG.md CONTRIBUTING.md CONTRIBUTING-aws-lambda.md
%license LICENSE
%{python_sitelib}/sentry*/
%changelog