Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-raven for openSUSE:Factory checked in at 2021-12-29 21:10:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-raven (Old) and /work/SRC/openSUSE:Factory/.python-raven.new.2520 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-raven" Wed Dec 29 21:10:37 2021 rev:15 rq:942856 version:6.10.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-raven/python-raven.changes 2020-09-04 11:04:37.494800567 +0200 +++ /work/SRC/openSUSE:Factory/.python-raven.new.2520/python-raven.changes 2021-12-29 21:10:40.354271511 +0100 @@ -1,0 +2,8 @@ +Mon Dec 27 16:34:28 UTC 2021 - Ben Greiner <[email protected]> + +- Don't test Django: not compatible with Django 4 in TW +- After fixing the test collection: Force tornado5, tornado6 is + not compatible +- Add raven-fix-flask-test.patch + +------------------------------------------------------------------- New: ---- raven-fix-flask-test.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-raven.spec ++++++ --- /var/tmp/diff_new_pack.ZZKTGS/_old 2021-12-29 21:10:40.810271886 +0100 +++ /var/tmp/diff_new_pack.ZZKTGS/_new 2021-12-29 21:10:40.814271889 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-raven # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,7 +29,8 @@ Patch0: remove-unittest2.patch Patch1: pytest4.patch Patch2: fix-tests.patch -BuildRequires: %{python_module Django} +# https://github.com/getsentry/raven-python/commit/20caf26ff33ac1efbace74ef99d6f0f911720568 +Patch3: raven-fix-flask-test.patch BuildRequires: %{python_module Flask >= 0.8} BuildRequires: %{python_module Flask-Login >= 0.2.0} BuildRequires: %{python_module Logbook} @@ -44,19 +45,24 @@ BuildRequires: %{python_module exam >= 0.5.2} BuildRequires: %{python_module kombu} BuildRequires: %{python_module mock} -BuildRequires: %{python_module pytest-django} BuildRequires: %{python_module pytest-pythonpath} BuildRequires: %{python_module pytest-timeout >= 0.4} BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytz} BuildRequires: %{python_module requests} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module tornado >= 4.1} +# async errors on tornado6 +BuildRequires: %{python_module tornado < 6 if %python-base < 3.10} BuildRequires: %{python_module vine} BuildRequires: fdupes BuildRequires: python-rpm-macros +%if 0%{?suse_version} < 1550 +# not compatible with Django 4 in TW +BuildRequires: %{python_module Django} +BuildRequires: %{python_module pytest-django} +%endif Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives Recommends: python-Flask >= 0.8 Recommends: python-blinker >= 1.1 BuildArch: noarch @@ -73,8 +79,7 @@ %prep %setup -q -n raven-%{version} %autopatch -p1 - -rm -f setup.cfg tox.ini pytest.ini +sed -i 's/--cov=raven//' setup.cfg %build %python_build @@ -86,8 +91,9 @@ %python_expand rm -rf %{buildroot}/%{$python_sitelib}/raven/data/cacert.pem %check -export DJANGO_SETTINGS_MODULE=tests.contrib.django.settings -%pytest -k 'not (TornadoAsyncClientTestCase or TornadoTransportTests)' +# no tornado5 in py310 +python310_flags="--ignore tests/contrib/tornado --ignore tests/transport/tornado" +%pytest -k 'not (TornadoTransportTests and (test_send or test__sending))' ${$python_flags} %post %python_install_alternative raven @@ -99,6 +105,7 @@ %license LICENSE %doc README.rst %python_alternative %{_bindir}/raven -%{python_sitelib}/* +%{python_sitelib}/raven +%{python_sitelib}/raven-%{version}*-info %changelog ++++++ raven-fix-flask-test.patch ++++++ >From 20caf26ff33ac1efbace74ef99d6f0f911720568 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer <[email protected]> Date: Mon, 6 May 2019 18:55:31 +0200 Subject: [PATCH] fix: Fix Flask tests --- tests/contrib/flask/tests.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/contrib/flask/tests.py b/tests/contrib/flask/tests.py index 593876c4..e7a46f2a 100644 --- a/tests/contrib/flask/tests.py +++ b/tests/contrib/flask/tests.py @@ -148,10 +148,6 @@ def test_get(self): self.assertEquals(http['data'], {}) self.assertTrue('headers' in http) headers = http['headers'] - self.assertTrue('Content-Length' in headers, headers.keys()) - self.assertEquals(headers['Content-Length'], '0') - self.assertTrue('Content-Type' in headers, headers.keys()) - self.assertEquals(headers['Content-Type'], '') self.assertTrue('Host' in headers, headers.keys()) self.assertEquals(headers['Host'], 'localhost') env = http['env']
