From 306744035a9f278ba5bd45d2db6a56dc4210b18f06d5fa2d15277c1e1fb46da6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 12 Aug 2019 15:33:07 +0000 Subject: [PATCH] - Format with spec-cleaner - Run tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sentry-sdk?expand=0&rev=2 --- python-sentry-sdk.changes | 6 ++++ python-sentry-sdk.spec | 64 ++++++++++++++++++--------------------- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/python-sentry-sdk.changes b/python-sentry-sdk.changes index 90befd0..6082e02 100644 --- a/python-sentry-sdk.changes +++ b/python-sentry-sdk.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Aug 12 14:19:52 UTC 2019 - Tomáš Chvátal + +- Format with spec-cleaner +- Run tests + ------------------------------------------------------------------- Fri Aug 9 22:36:25 UTC 2019 - Jimmy Berry diff --git a/python-sentry-sdk.spec b/python-sentry-sdk.spec index 38518f0..fcfed84 100644 --- a/python-sentry-sdk.spec +++ b/python-sentry-sdk.spec @@ -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