- Format with spec-cleaner
- Run tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sentry-sdk?expand=0&rev=2
This commit is contained in:
parent
ac61aefd54
commit
306744035a
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 12 14:19:52 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Format with spec-cleaner
|
||||
- Run tests
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 9 22:36:25 UTC 2019 - Jimmy Berry <jberry@suse.com>
|
||||
|
||||
|
@ -12,52 +12,46 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-sentry-sdk
|
||||
Version: 0.10.2
|
||||
Release: 0
|
||||
Summary: Python SDK for Sentry.io
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/getsentry/sentry-python
|
||||
URL: https://github.com/getsentry/sentry-python
|
||||
Source0: https://github.com/getsentry/sentry-python/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module urllib3}
|
||||
BuildRequires: %{python_module certifi}
|
||||
BuildRequires: %{python_module Flask >= 0.8}
|
||||
BuildRequires: %{python_module blinker >= 1.1}
|
||||
BuildRequires: %{python_module bottle >= 0.12.13}
|
||||
BuildRequires: %{python_module certifi}
|
||||
BuildRequires: %{python_module falcon >= 1.4}
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module hypothesis}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module pytest-django}
|
||||
BuildRequires: %{python_module pytest-xdist}
|
||||
BuildRequires: %{python_module pytest-localserver}
|
||||
BuildRequires: %{python_module pytest-cov}
|
||||
BuildRequires: %{python_module tox}
|
||||
BuildRequires: %{python_module Werkzeug}
|
||||
#BuildRequires: %%{python_module Django}
|
||||
BuildRequires: %{python_module rq}
|
||||
BuildRequires: %{python_module pyramid}
|
||||
BuildRequires: %{python_module tornado}
|
||||
BuildRequires: %{python_module aiohttp}
|
||||
# /SECTION
|
||||
Requires: python-urllib3
|
||||
Requires: python-certifi
|
||||
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
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Requires: python-urllib3
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module Werkzeug}
|
||||
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}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@ -66,25 +60,25 @@ https://sentry.io/for/python/
|
||||
|
||||
%prep
|
||||
%setup -q -n sentry-python-%{version}
|
||||
# do not test integration:
|
||||
rm -r tests/integrations
|
||||
rm pytest.ini
|
||||
|
||||
%build
|
||||
# Remove export CFLAGS=... for noarch packages (unneeded)
|
||||
export CFLAGS="%{optflags}"
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
export DJANGO_SETTINGS_MODULE=tests.integrations.django.myapp.settings
|
||||
# skip integrations
|
||||
#%%python_expand $python setup.py test
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
# the two tests fail in obs
|
||||
%pytest -k 'not (test_scope_initialized_before_client or test_configure_scope_unavailable)'
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%doc
|
||||
%doc README.md CHANGES.md
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
%pycache_only %{python_sitelib}/sentry_sdk/__pycache__/*
|
||||
%pycache_only %{python_sitelib}/sentry_sdk/integrations/__pycache__/serverless.*
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user