Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-django-crispy-forms for 
openSUSE:Factory checked in at 2023-07-25 11:49:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-crispy-forms (Old)
 and      /work/SRC/openSUSE:Factory/.python-django-crispy-forms.new.1467 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-django-crispy-forms"

Tue Jul 25 11:49:52 2023 rev:13 rq:1099525 version:2.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-django-crispy-forms/python-django-crispy-forms.changes
    2022-08-25 15:09:12.949230527 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-django-crispy-forms.new.1467/python-django-crispy-forms.changes
  2023-07-25 11:50:20.985187771 +0200
@@ -1,0 +2,21 @@
+Tue Jun 13 12:09:31 UTC 2023 - Markéta Machová <mmach...@suse.com>
+
+- Update to v2.0
+  * Removed all Bootstrap template packs. These template packs are now 
available as standalone packages.
+    To upgrade, install the required template pack and add it to your 
INSTALLED_APPS setting.
+    * See python-crispy-bootstrap3, python-crispy-bootstrap4 and 
python-crispy-bootstrap5
+  * Removed uni-form template pack. Uni-Form specific classes previously added 
to every template pack 
+    e.g. textInput are now removed.
+  * The form_style attribute of FormHelper is removed.
+  * The form_style positional argument to render_field() is removed.
+  * The form_style positional argument to the render() method of all 
LayoutObjects is removed.
+  * Widespread use of the |safe in crispy-form templates is removed. Audit for 
html input in your forms
+    especially for Field and Prepended/Appended text. To retain the previous 
behaviour mark text as safe
+    in your project code using mark_safe().
+  * Dropped support for Django 2.2.
+  * Added support for Django 4.1 and 4.2.
+  * Added support for Python 3.11.
+  * More changes, see 
https://github.com/django-crispy-forms/django-crispy-forms/releases
+- Convert to multibuild because of the template packs
+
+-------------------------------------------------------------------

Old:
----
  django-crispy-forms-1.14.0.tar.gz

New:
----
  _multibuild
  django-crispy-forms-2.0.tar.gz

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

Other differences:
------------------
++++++ python-django-crispy-forms.spec ++++++
--- /var/tmp/diff_new_pack.di9ugk/_old  2023-07-25 11:50:21.817192643 +0200
+++ /var/tmp/diff_new_pack.di9ugk/_new  2023-07-25 11:50:21.821192666 +0200
@@ -1,7 +1,7 @@
 #
-# spec file for package python-django-crispy-forms
+# spec file
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,23 +16,41 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%define skip_python2 1
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+# Multibuild: break cycles with crispy-bootstrap{3,4,5}
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
 %define mod_name django-crispy-forms
-Name:           python-%{mod_name}
-Version:        1.14.0
+Name:           python-%{mod_name}%{psuffix}
+Version:        2.0
 Release:        0
 Summary:        Django DRY Forms
 License:        MIT
 URL:            https://github.com/maraujop/django-crispy-forms
 Source:         
https://files.pythonhosted.org/packages/source/d/%{mod_name}/%{mod_name}-%{version}.tar.gz
-BuildRequires:  %{python_module Django >= 2.2}
-BuildRequires:  %{python_module pytest-django}
-BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-Requires:       python-Django >= 2.2
+%if %{with test}
+BuildRequires:  %{python_module %{mod_name} = %{version}}
+BuildRequires:  %{python_module Django >= 3.2}
+BuildRequires:  %{python_module crispy-bootstrap3}
+BuildRequires:  %{python_module crispy-bootstrap4}
+BuildRequires:  %{python_module crispy-bootstrap5}
+BuildRequires:  %{python_module pytest-django}
+BuildRequires:  %{python_module pytest}
+%endif
+Requires:       python-Django >= 3.2
+Recommends:     python-crispy-bootstrap3
+Recommends:     python-crispy-bootstrap4
+Recommends:     python-crispy-bootstrap5
 BuildArch:      noarch
 %python_subpackages
 
@@ -46,23 +64,28 @@
 %setup -q -n %{mod_name}-%{version}
 
 %build
-%python_build
+%if !%{with test}
+%pyproject_wheel
+%endif
 
 %install
-%python_install
-%{python_expand rm -r %{buildroot}%{$python_sitelib}/crispy_forms/tests/
-%fdupes %{buildroot}%{$python_sitelib}
-}
+%if !%{with test}
+%pyproject_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
 
 %check
-export DJANGO_SETTINGS_MODULE=crispy_forms.tests.test_settings
+%if %{with test}
+export DJANGO_SETTINGS_MODULE=tests.test_settings
 export PYTHONPATH=${PWD}
-# test_keepcontext_context_manager started failing in 1.14.0
-%pytest -rs crispy_forms/tests/ -k 'not test_keepcontext_context_manager'
+%pytest -rs tests/
+%endif
 
+%if !%{with test}
 %files %{python_files}
 %license LICENSE.txt
 %doc CONTRIBUTORS.txt README.rst
 %{python_sitelib}/*crispy[-_]forms*/
+%endif
 
 %changelog

++++++ _multibuild ++++++
<multibuild>
  <package>test</package>
</multibuild>

++++++ django-crispy-forms-1.14.0.tar.gz -> django-crispy-forms-2.0.tar.gz 
++++++
++++ 16420 lines of diff (skipped)

Reply via email to