Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-django-opentracing for 
openSUSE:Factory checked in at 2022-10-06 07:41:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-opentracing (Old)
 and      /work/SRC/openSUSE:Factory/.python-django-opentracing.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-django-opentracing"

Thu Oct  6 07:41:49 2022 rev:2 rq:1008082 version:1.1.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-django-opentracing/python-django-opentracing.changes
      2022-05-15 19:00:29.558415207 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-django-opentracing.new.2275/python-django-opentracing.changes
    2022-10-06 07:42:00.212660516 +0200
@@ -1,0 +2,5 @@
+Wed Oct  5 04:12:44 UTC 2022 - John Vandenberg <jay...@gmail.com>
+
+- Add dj41.patch for Django 4.1 compatibility
+
+-------------------------------------------------------------------

New:
----
  dj41.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-django-opentracing.spec ++++++
--- /var/tmp/diff_new_pack.EocbDk/_old  2022-10-06 07:42:00.732661673 +0200
+++ /var/tmp/diff_new_pack.EocbDk/_new  2022-10-06 07:42:00.740661691 +0200
@@ -24,9 +24,11 @@
 License:        BSD-3-Clause
 URL:            https://github.com/opentracing-contrib/python-django/
 Source:         
https://github.com/opentracing-contrib/python-django/archive/%{version}.tar.gz#/django_opentracing-%{version}.tar.gz
-BuildRequires:  python-rpm-macros
-BuildRequires:  %{python_module setuptools}
+# c.f. https://github.com/opentracing-contrib/python-django/issues/71
+Patch0:         dj41.patch
 BuildRequires:  %{python_module django-codemod}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  python-rpm-macros
 # SECTION test requirements
 BuildRequires:  %{python_module Django}
 BuildRequires:  %{python_module opentracing >= 2.0}
@@ -44,6 +46,7 @@
 
 %prep
 %setup -q -n python-django-%{version}
+%patch0 -p1
 djcodemod run --removed-in 4.0 tests/test_site/urls.py
 sed -i 's/import mock/from unittest import mock as mock/' 
tests/test_site/test_middleware.py
 

++++++ dj41.patch ++++++
diff --git a/django_opentracing/middleware.py b/django_opentracing/middleware.py
index bcfba42..718073e 100644
--- a/django_opentracing/middleware.py
+++ b/django_opentracing/middleware.py
@@ -29,6 +29,7 @@ class OpenTracingMiddleware(MiddlewareMixin):
         self._init_tracing()
         self._tracing = settings.OPENTRACING_TRACING
         self.get_response = get_response
+        self._is_coroutine = None
 
     def _init_tracing(self):
         if getattr(settings, 'OPENTRACING_TRACER', None) is not None:

Reply via email to