- 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>
|
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)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define skip_python2 1
|
|
||||||
Name: python-sentry-sdk
|
Name: python-sentry-sdk
|
||||||
Version: 0.10.2
|
Version: 0.10.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python SDK for Sentry.io
|
Summary: Python SDK for Sentry.io
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
Group: Development/Languages/Python
|
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
|
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 Flask >= 0.8}
|
||||||
BuildRequires: %{python_module blinker >= 1.1}
|
BuildRequires: %{python_module blinker >= 1.1}
|
||||||
BuildRequires: %{python_module bottle >= 0.12.13}
|
BuildRequires: %{python_module bottle >= 0.12.13}
|
||||||
|
BuildRequires: %{python_module certifi}
|
||||||
BuildRequires: %{python_module falcon >= 1.4}
|
BuildRequires: %{python_module falcon >= 1.4}
|
||||||
# SECTION test requirements
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module hypothesis}
|
BuildRequires: %{python_module urllib3}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: fdupes
|
||||||
BuildRequires: %{python_module pytest-django}
|
BuildRequires: python-rpm-macros
|
||||||
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
|
|
||||||
Requires: python-Flask >= 0.8
|
Requires: python-Flask >= 0.8
|
||||||
Requires: python-blinker >= 1.1
|
Requires: python-blinker >= 1.1
|
||||||
Requires: python-bottle >= 0.12.13
|
Requires: python-bottle >= 0.12.13
|
||||||
|
Requires: python-certifi
|
||||||
Requires: python-falcon >= 1.4
|
Requires: python-falcon >= 1.4
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
Requires: python-urllib3
|
||||||
BuildArch: noarch
|
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
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -66,25 +60,25 @@ https://sentry.io/for/python/
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n sentry-python-%{version}
|
%setup -q -n sentry-python-%{version}
|
||||||
|
# do not test integration:
|
||||||
|
rm -r tests/integrations
|
||||||
|
rm pytest.ini
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Remove export CFLAGS=... for noarch packages (unneeded)
|
|
||||||
export CFLAGS="%{optflags}"
|
|
||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export DJANGO_SETTINGS_MODULE=tests.integrations.django.myapp.settings
|
export PYTHONDONTWRITEBYTECODE=1
|
||||||
# skip integrations
|
# the two tests fail in obs
|
||||||
#%%python_expand $python setup.py test
|
%pytest -k 'not (test_scope_initialized_before_client or test_configure_scope_unavailable)'
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root)
|
%doc README.md CHANGES.md
|
||||||
%doc
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
%pycache_only %{python_sitelib}/sentry_sdk/__pycache__/*
|
|
||||||
%pycache_only %{python_sitelib}/sentry_sdk/integrations/__pycache__/serverless.*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user