2019-08-12 16:18:35 +02:00
#
# spec file for package python-sentry-sdk
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 17:33:07 +02:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2019-08-12 16:18:35 +02:00
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name : python-sentry-sdk
2019-10-21 21:38:49 +02:00
Version : 0.13.0
2019-08-12 16:18:35 +02:00
Release : 0
Summary : Python SDK for Sentry.io
License : BSD-2-Clause
Group : Development/Languages/Python
2019-08-12 17:33:07 +02:00
URL : https://github.com/getsentry/sentry-python
2019-08-12 16:18:35 +02:00
Source0 : https://github.com/getsentry/sentry-python/archive/%{version} /%{name} -%{version} .tar.gz
2019-10-01 01:00:26 +02:00
Source1 : pytest.ini
2019-08-12 16:18:35 +02:00
BuildRequires : %{python_module Flask >= 0.8}
BuildRequires : %{python_module blinker >= 1.1}
BuildRequires : %{python_module bottle >= 0.12.13}
2019-08-12 17:33:07 +02:00
BuildRequires : %{python_module certifi}
2019-08-12 16:18:35 +02:00
BuildRequires : %{python_module falcon >= 1.4}
2019-08-12 17:33:07 +02:00
BuildRequires : %{python_module setuptools}
BuildRequires : %{python_module urllib3}
BuildRequires : fdupes
BuildRequires : python-rpm-macros
Requires : python-Flask >= 0.8
Requires : python-blinker >= 1.1
Requires : python-bottle >= 0.12.13
Requires : python-certifi
Requires : python-falcon >= 1.4
Requires : python-urllib3
BuildArch : noarch
2019-08-12 16:18:35 +02:00
# SECTION test requirements
2019-10-02 22:41:44 +02:00
# BuildRequires: %{python_module Werkzeug}
# BuildRequires: %{python_module eventlet}
# BuildRequires: %{python_module gevent}
# BuildRequires: %{python_module hypothesis}
# BuildRequires: %{python_module pyramid}
# BuildRequires: %{python_module pytest-localserver}
# BuildRequires: %{python_module pytest}
# BuildRequires: %{python_module rq}
# BuildRequires: %{python_module tornado}
# BuildRequires: %{python_module tox}
2019-08-12 16:18:35 +02:00
# /SECTION
%python_subpackages
%description
2019-08-24 09:40:20 +02:00
A Python SDK for Sentry.io.
2019-08-12 16:18:35 +02:00
https://sentry.io/for/python/
%prep
%setup -q -n sentry-python-%{version}
2019-08-12 17:33:07 +02:00
# do not test integration:
rm -r tests/integrations
rm pytest.ini
2019-08-12 16:18:35 +02:00
%build
%python_build
%install
%python_install
2019-08-12 17:33:07 +02:00
%python_expand %fdupes %{buildroot} %{$python_sitelib}
2019-08-12 16:18:35 +02:00
%check
2019-08-12 17:33:07 +02:00
export PYTHONDONTWRITEBYTECODE=1
2019-10-01 01:00:26 +02: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 "
cp %{SOURCE1} .
# a subset of tests fail on OBS
# - test_transport_works eventlet parameterized tests fail
# TODO disable since pytest does not respect filters
# %%pytest -k 'not (test_scope_initialized_before_client or test_configure_scope_unavailable or test_thread_local_is_patched or test_leaks or test_transport_works or test_iter_stacktraces)'
2019-08-12 16:18:35 +02:00
%files %{python_files}
2019-08-12 17:33:07 +02:00
%doc README.md CHANGES.md
%license LICENSE
2019-08-12 16:18:35 +02:00
%{python_sitelib} /*
%changelog