Hello community,

here is the log from the commit of package python-django-formtools for 
openSUSE:Factory checked in at 2018-08-10 09:50:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-formtools (Old)
 and      /work/SRC/openSUSE:Factory/.python-django-formtools.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-django-formtools"

Fri Aug 10 09:50:22 2018 rev:3 rq:628272 version:2.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-django-formtools/python-django-formtools.changes
  2018-03-04 12:51:15.526532105 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-django-formtools.new/python-django-formtools.changes
     2018-08-10 09:50:29.754339385 +0200
@@ -1,0 +2,7 @@
+Wed Aug  8 21:32:47 UTC 2018 - [email protected]
+
+- Format with spec-cleaner
+- Add patch for django 2.1:
+  * django-21.patch
+
+-------------------------------------------------------------------

New:
----
  django-21.patch

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

Other differences:
------------------
++++++ python-django-formtools.spec ++++++
--- /var/tmp/diff_new_pack.e3cjP6/_old  2018-08-10 09:50:31.502342204 +0200
+++ /var/tmp/diff_new_pack.e3cjP6/_new  2018-08-10 09:50:31.506342212 +0200
@@ -16,8 +16,6 @@
 #
 
 
-%bcond_without tests
-
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-django-formtools
 Version:        2.1
@@ -25,16 +23,14 @@
 Summary:        A set of high-level abstractions for Django forms
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
-Url:            https://github.com/django/django-formtools
+URL:            https://github.com/django/django-formtools
 Source:         
https://files.pythonhosted.org/packages/source/d/django-formtools/django-formtools-%{version}.tar.gz
+Patch0:         django-21.patch
 BuildRequires:  %{python_module Django >= 1.8}
-BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module isort}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-%if %{with test}
-BuildRequires:  %{python_module isort}
-%endif
 Requires:       python-Django >= 1.8
 BuildArch:      noarch
 %python_subpackages
@@ -45,24 +41,23 @@
 
 %prep
 %setup -q -n django-formtools-%{version}
+%patch0 -p1
 
 %build
 %python_build
 
 %install
 %python_install
-%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
-%if %{with tests}
 %check
 export DJANGO_SETTINGS_MODULE=tests.settings
 export PYTHONPATH=`pwd`
 %python_expand %{_bindir}/django-admin.py-%{$python_bin_suffix} test tests 
--pythonpath=`pwd` 
-%endif
 
 %files %{python_files}
-%defattr(-,root,root,-)
-%doc AUTHORS.rst LICENSE README.rst
+%license LICENSE
+%doc AUTHORS.rst README.rst
 %{python_sitelib}/*
 
 %changelog

++++++ django-21.patch ++++++
>From af6925fde6ca395f7fb8cf1794f934de62da36cc Mon Sep 17 00:00:00 2001
From: Claude Paroz <[email protected]>
Date: Tue, 13 Mar 2018 10:42:47 +0100
Subject: [PATCH] Fixed test with Django master

Was failing after Django commit d368784ba.
---
 tests/tests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/tests.py b/tests/tests.py
index a3e8c72..67f0f96 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -191,7 +191,7 @@ def test_empty_permitted(self):
         empty_permitted = True, or forms where data has not changed.
         """
         f1 = HashTestBlankForm({})
-        f2 = HashTestForm({}, empty_permitted=True)
+        f2 = HashTestForm({}, empty_permitted=True, 
use_required_attribute=False)
         hash1 = utils.form_hmac(f1)
         hash2 = utils.form_hmac(f2)
         self.assertEqual(hash1, hash2)

Reply via email to