2019-08-12 14:18:35 +00:00
#
# spec file for package python-sentry-sdk
#
2024-01-10 13:01:01 +00:00
# Copyright (c) 2024 SUSE LLC
2019-08-12 14:18:35 +00:00
#
# 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.
2019-08-12 15:33:07 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2019-08-12 14:18:35 +00:00
#
2020-03-18 17:39:57 +00:00
# nothing provides python2-venusian >= 1.0 needed by python2-pyramid
2023-06-11 20:06:28 +00:00
%{?sle15_python_module_pythons}
2019-08-12 14:18:35 +00:00
Name : python-sentry-sdk
2024-08-21 03:59:59 +00:00
Version : 2.13.0
2019-08-12 14:18:35 +00:00
Release : 0
Summary : Python SDK for Sentry.io
License : BSD-2-Clause
2019-08-12 15:33:07 +00:00
URL : https://github.com/getsentry/sentry-python
Accepting request 852439 from home:frispete:Tumbleweed
- Update to version 0.19.4
* Fix a bug that would make applications crash if an old version
of boto3 was installed.
- Update to version 0.19.3
* Automatically pass integration-relevant data to traces_sampler
for AWS, AIOHTTP, ASGI, Bottle, Celery, Django, Falcon, Flask,
GCP, Pyramid, Tryton, RQ, and WSGI integrations
* Fix a bug where the AWS integration would crash if event was
anything besides a dictionary
* Fix the Django integrations's ASGI handler for Channels 3.0.
Thanks Luke Pomfrey!
- Update to version 0.19.2
* Add traces_sampler option.
* The SDK now attempts to infer a default release from various
environment variables and the current git repo.
* Fix a crash with async views in Django 3.1.
* Fix a bug where complex URL patterns in Django would create
malformed transaction names.
* Add options for transaction styling in AIOHTTP.
* Add basic attachment support (documentation tbd).
* fix a crash in the pure_eval integration.
* Integration for creating spans from boto3.
- Update to version 0.19.1
* Fix dependency check for blinker fixes #858
* Fix incorrect timeout warnings in AWS Lambda and GCP
integrations #854
- Update to version 0.19.0
* Removed _experiments.auto_enabling_integrations in favor of
just auto_enabling_integrations which is now enabled by
default.
OBS-URL: https://build.opensuse.org/request/show/852439
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sentry-sdk?expand=0&rev=27
2020-12-02 11:47:20 +00:00
Source0 : https://github.com/getsentry/sentry-python/archive/%{version} /sentry-python-%{version} .tar.gz
2024-07-18 06:45:21 +00:00
BuildRequires : %{python_module Django >= 2.0}
BuildRequires : %{python_module Flask >= 1.0}
2024-01-10 13:01:01 +00:00
BuildRequires : %{python_module MarkupSafe}
2020-12-02 13:44:40 +00:00
BuildRequires : %{python_module SQLAlchemy >= 1.2}
BuildRequires : %{python_module aiohttp >= 3.5}
2021-03-10 09:13:44 +00:00
BuildRequires : %{python_module asttokens}
2024-01-10 13:01:01 +00:00
BuildRequires : %{python_module asyncpg >= 0.23}
2019-08-12 14:18:35 +00:00
BuildRequires : %{python_module blinker >= 1.1}
BuildRequires : %{python_module bottle >= 0.12.13}
2024-07-18 06:45:21 +00:00
BuildRequires : %{python_module celery >= 4}
2019-08-12 15:33:07 +00:00
BuildRequires : %{python_module certifi}
Accepting request 852439 from home:frispete:Tumbleweed
- Update to version 0.19.4
* Fix a bug that would make applications crash if an old version
of boto3 was installed.
- Update to version 0.19.3
* Automatically pass integration-relevant data to traces_sampler
for AWS, AIOHTTP, ASGI, Bottle, Celery, Django, Falcon, Flask,
GCP, Pyramid, Tryton, RQ, and WSGI integrations
* Fix a bug where the AWS integration would crash if event was
anything besides a dictionary
* Fix the Django integrations's ASGI handler for Channels 3.0.
Thanks Luke Pomfrey!
- Update to version 0.19.2
* Add traces_sampler option.
* The SDK now attempts to infer a default release from various
environment variables and the current git repo.
* Fix a crash with async views in Django 3.1.
* Fix a bug where complex URL patterns in Django would create
malformed transaction names.
* Add options for transaction styling in AIOHTTP.
* Add basic attachment support (documentation tbd).
* fix a crash in the pure_eval integration.
* Integration for creating spans from boto3.
- Update to version 0.19.1
* Fix dependency check for blinker fixes #858
* Fix incorrect timeout warnings in AWS Lambda and GCP
integrations #854
- Update to version 0.19.0
* Removed _experiments.auto_enabling_integrations in favor of
just auto_enabling_integrations which is now enabled by
default.
OBS-URL: https://build.opensuse.org/request/show/852439
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sentry-sdk?expand=0&rev=27
2020-12-02 11:47:20 +00:00
BuildRequires : %{python_module executing}
2019-08-12 14:18:35 +00:00
BuildRequires : %{python_module falcon >= 1.4}
2024-07-18 06:45:21 +00:00
BuildRequires : %{python_module grpcio >= 1.39}
2021-11-19 11:00:33 +00:00
BuildRequires : %{python_module httpx >= 0.16.0}
2023-07-19 07:24:29 +00:00
BuildRequires : %{python_module loguru >= 0.5}
2024-08-21 03:59:59 +00:00
BuildRequires : %{python_module pip}
2023-02-07 12:30:08 +00:00
BuildRequires : %{python_module pymongo >= 3.1}
2020-12-02 13:44:40 +00:00
BuildRequires : %{python_module rq >= 0.6}
2019-08-12 15:33:07 +00:00
BuildRequires : %{python_module setuptools}
2023-02-07 12:30:08 +00:00
BuildRequires : %{python_module starlette >= 0.19.1}
2024-07-18 06:45:21 +00:00
BuildRequires : %{python_module tornado >= 6}
2023-07-19 07:24:29 +00:00
BuildRequires : %{python_module urllib3 >= 1.26.11}
2024-08-21 03:59:59 +00:00
BuildRequires : %{python_module wheel}
2019-08-12 15:33:07 +00:00
BuildRequires : fdupes
BuildRequires : python-rpm-macros
2019-08-12 14:18:35 +00:00
# SECTION test requirements
2020-03-18 17:39:57 +00:00
BuildRequires : %{python_module Werkzeug}
2023-07-19 07:24:29 +00:00
BuildRequires : %{python_module PySocks}
2020-03-18 17:39:57 +00:00
BuildRequires : %{python_module eventlet}
2024-07-18 06:45:21 +00:00
BuildRequires : %{python_module fastapi >= 0.79.0}
2020-03-18 17:39:57 +00:00
BuildRequires : %{python_module gevent}
2024-07-18 06:45:21 +00:00
BuildRequires : %{python_module greenlet}
2020-03-18 17:39:57 +00:00
BuildRequires : %{python_module hypothesis}
2024-03-13 15:09:27 +00:00
BuildRequires : %{python_module ipdb}
2021-03-10 09:13:44 +00:00
BuildRequires : %{python_module jsonschema >= 3.2.0}
2020-03-18 17:39:57 +00:00
BuildRequires : %{python_module pyramid}
2021-11-19 11:00:33 +00:00
BuildRequires : %{python_module pyrsistent >= 0.16.0}
2024-07-18 06:45:21 +00:00
BuildRequires : %{python_module pytest-asyncio}
2021-03-10 09:13:44 +00:00
BuildRequires : %{python_module pytest-cov >= 2.8.1}
2023-07-19 07:24:29 +00:00
BuildRequires : %{python_module pytest-forked >= 1.4.0}
2024-01-10 13:01:01 +00:00
BuildRequires : %{python_module pytest-localserver >= 0.5.1}
2020-03-18 17:39:57 +00:00
BuildRequires : %{python_module pytest}
2024-02-13 13:39:45 +00:00
BuildRequires : %{python_module responses}
2023-07-19 07:24:29 +00:00
BuildRequires : %{python_module tox >= 3.7.0}
# /SECTION
2024-02-13 17:02:28 +00:00
# SECTION test requirements - which rise up buildtime error or missing in openSUSE
#BuildRequires: %%{python_module pytest-watch >= 4.2.0}
# /SECTION
2020-12-02 13:44:40 +00:00
# SECTION extra requirements - which rise up buildtime error or missing in openSUSE
2024-01-10 13:01:01 +00:00
#BuildRequires: %%{python_module arq >= 0.23}
2021-05-07 05:50:17 +00:00
#BuildRequires: %%{python_module pyspark >= 2.4.4}
2020-12-02 13:44:40 +00:00
#BuildRequires: %%{python_module apache-beam >= 2.12}
2023-02-07 12:30:08 +00:00
#BuildRequires: %%{python_module huey >= 2}
2021-05-07 05:50:17 +00:00
#BuildRequires: %%{python_module pure_eval}
2022-11-14 15:33:39 +00:00
#BuildRequires: %%{python_module chalice >= 1.16.0}
2023-02-07 12:30:08 +00:00
#BuildRequires: %%{python_module starlite >= 1.48}
#BuildRequires: %%{python_module quart >= 0.16.1}
2021-05-07 05:50:17 +00:00
#BuildRequires: %%{python_module sanic >= 0.8}
2024-02-13 13:39:45 +00:00
#BuildRequires: %%{python_module opentelemetry-distro >= 0.40b0}
2024-01-10 13:01:01 +00:00
#BuildRequires: %%{python_module beam >= 2.12}
#BuildRequires: %%{python_module chalice >= 1.16.0}
#BuildRequires: %%{python_module clickhouse-driver >= 0.2.0}
2020-12-02 13:44:40 +00:00
# /SECTION
2024-06-26 20:19:43 +00:00
# Install requirements
2020-12-02 13:44:40 +00:00
Requires : python-certifi
2023-07-19 07:24:29 +00:00
Requires : python-urllib3 >= 1.26.11
2024-06-26 20:19:43 +00:00
# Extra requirements
2024-07-18 06:45:21 +00:00
Suggests : python-Django >= 2.0
Suggests : python-Flask >= 1.0
2024-06-26 20:19:43 +00:00
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
2024-07-18 06:45:21 +00:00
Suggests : python-celery >= 4
2024-06-26 20:19:43 +00:00
Suggests : python-executing
Suggests : python-falcon >= 1.4
2024-07-18 06:45:21 +00:00
Suggests : python-fastapi >= 0.79.0
Suggests : python-grpcio >= 1.39
2024-06-26 20:19:43 +00:00
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
2024-07-18 06:45:21 +00:00
Suggests : python-tornado >= 6
2020-12-02 13:44:40 +00:00
# SECTION extra requirements - which rise up buildtime error or missing in openSUSE
#Requires: python-sanic >= 0.8
#Requires: python-apache-beam >= 2.12
2023-02-07 12:30:08 +00:00
#Requires: python-huey >= 2
2024-01-10 13:01:01 +00:00
#Requires: python-arq >= 0.23
2020-12-02 13:44:40 +00:00
#Requires: python-pyspark >= 2.4.4
#Requires: python-pure_eval
#Requires: python-chalice >= 1.16.0
2023-02-07 12:30:08 +00:00
#Requires: python-starlite >= 1.48
#Requires: python-quart >= 0.16.1
#Requires: python-sanic >= 0.8
2024-02-13 13:39:45 +00:00
#Requires: python-opentelemetry-distro >= 0.40b0
2024-01-10 13:01:01 +00:00
#Requires: python- beam >= 2.12}
#Requires: python-chalice >= 1.16.0}
#Requires: python-clickhouse-driver >= 0.2.0}
#Requires: python-fastapi >= 0.79.0}
2020-12-02 13:44:40 +00:00
# /SECTION
BuildArch : noarch
2019-08-12 14:18:35 +00:00
%python_subpackages
%description
2019-08-24 07:40:20 +00:00
A Python SDK for Sentry.io.
2019-08-12 14:18:35 +00:00
https://sentry.io/for/python/
%prep
2023-05-29 13:31:53 +00:00
%autosetup -p1 -n sentry-python-%{version}
2019-08-12 14:18:35 +00:00
%build
2024-08-21 03:59:59 +00:00
%pyproject_wheel
2019-08-12 14:18:35 +00:00
%install
2024-08-21 03:59:59 +00:00
%pyproject_install
2019-08-12 15:33:07 +00:00
%python_expand %fdupes %{buildroot} %{$python_sitelib}
2019-08-12 14:18:35 +00:00
%check
2019-09-30 23:00:26 +00:00
export PYTEST_ADDOPTS=" - W i g n o r e : : D e p r e c a t i o n W a r n i n g "
2024-07-18 06:45:21 +00:00
export DJANGO_SETTINGS_MODULE=tests.conftest
2024-01-10 13:01:01 +00:00
# do not test integration (many package are missing at SUSE):
2020-03-18 17:39:57 +00:00
rm -r tests/integrations
# test_auto_enabling_integrations_catches_import_error asert False where False = ..., not sure
2024-07-18 06:45:21 +00:00
%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)'
2019-08-12 14:18:35 +00:00
%files %{python_files}
2022-07-03 10:24:53 +00:00
%doc README.md CHANGELOG.md CONTRIBUTING.md CONTRIBUTING-aws-lambda.md
2019-08-12 15:33:07 +00:00
%license LICENSE
2024-08-21 03:59:59 +00:00
%{python_sitelib} /sentry_sdk
%{python_sitelib} /sentry_sdk-%{version} .dist-info
2019-08-12 14:18:35 +00:00
%changelog