Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-django-classy-tags for 
openSUSE:Factory checked in at 2022-01-10 23:52:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-classy-tags (Old)
 and      /work/SRC/openSUSE:Factory/.python-django-classy-tags.new.1892 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-django-classy-tags"

Mon Jan 10 23:52:55 2022 rev:5 rq:944970 version:2.0.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-django-classy-tags/python-django-classy-tags.changes
      2021-06-01 10:35:32.096616221 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-django-classy-tags.new.1892/python-django-classy-tags.changes
    2022-01-10 23:52:56.704769719 +0100
@@ -1,0 +2,6 @@
+Sun Jan  9 01:42:13 UTC 2022 - John Vandenberg <jay...@gmail.com>
+
+- Add dj40.patch for Django 4 compatibility
+- Skip Python 2 to allow Python 3 Leap to build
+
+-------------------------------------------------------------------

New:
----
  dj40.patch

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

Other differences:
------------------
++++++ python-django-classy-tags.spec ++++++
--- /var/tmp/diff_new_pack.6nMSBP/_old  2022-01-10 23:52:57.864770735 +0100
+++ /var/tmp/diff_new_pack.6nMSBP/_new  2022-01-10 23:52:57.868770738 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-django-classy-tags
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,6 +17,7 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define skip_python2 1
 Name:           python-django-classy-tags
 Version:        2.0.0
 Release:        0
@@ -24,11 +25,13 @@
 License:        MIT
 URL:            https://github.com/ojii/django-classy-tags
 Source:         
https://github.com/divio/django-classy-tags/archive/%{version}.tar.gz
-BuildRequires:  %{python_module Django >= 1.11}
+# https://github.com/django-cms/django-classy-tags/pull/66
+Patch0:         dj40.patch
+BuildRequires:  %{python_module Django >= 2.2}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-Requires:       python-Django >= 1.11
+Requires:       python-Django >= 2.2
 BuildArch:      noarch
 %python_subpackages
 
@@ -38,6 +41,8 @@
 
 %prep
 %setup -q -n django-classy-tags-%{version}
+%patch0 -p1
+sed -i 's/verbosity=1/verbosity=2/' tests/settings.py
 
 %build
 %python_build
@@ -54,7 +59,7 @@
 %files %{python_files}
 %doc README.rst
 %license LICENSE.txt
-%{python_sitelib}/classytags
-%{python_sitelib}/django_classy_tags*egg-info
+%{python_sitelib}/classytags/
+%{python_sitelib}/django_classy_tags*egg-info/
 
 %changelog

++++++ dj40.patch ++++++
commit cee75e71eaefa96f849ef995d27c547e75324bba
Author: John Vandenberg <jay...@gmail.com>
Date:   Sun Jan 9 09:37:25 2022 +0800

    Force tag value to be string before rendering
    
    Fixes https://github.com/django-cms/django-classy-tags/issues/65

diff --git a/classytags/core.py b/classytags/core.py
index 28213cb..c4d7754 100644
--- a/classytags/core.py
+++ b/classytags/core.py
@@ -148,7 +148,7 @@ class Tag(TagMeta('TagMeta', (Node,), {})):
         items = self.kwargs.items()
         kwargs = dict([(key, value.resolve(context)) for key, value in items])
         kwargs.update(self.blocks)
-        return self.render_tag(context, **kwargs)
+        return str(self.render_tag(context, **kwargs))
 
     def render_tag(self, context, **kwargs):
         """

Reply via email to