Hello community,
here is the log from the commit of package python-django-crispy-forms for
openSUSE:Factory checked in at 2020-09-06 00:04:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-crispy-forms (Old)
and /work/SRC/openSUSE:Factory/.python-django-crispy-forms.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-django-crispy-forms"
Sun Sep 6 00:04:01 2020 rev:9 rq:832479 version:1.9.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-django-crispy-forms/python-django-crispy-forms.changes
2020-06-10 00:51:02.799357881 +0200
+++
/work/SRC/openSUSE:Factory/.python-django-crispy-forms.new.3399/python-django-crispy-forms.changes
2020-09-06 00:04:08.327306011 +0200
@@ -1,0 +2,8 @@
+Sat Sep 5 10:43:56 UTC 2020 - Matthias Fehring <[email protected]>
+
+- Update to 1.9.2
+ * Fixed FileField UI bug
+- Remove test suite from runtime installation
+- Fix test suite execution
+
+-------------------------------------------------------------------
Old:
----
django-crispy-forms-1.9.1.tar.gz
New:
----
django-crispy-forms-1.9.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-django-crispy-forms.spec ++++++
--- /var/tmp/diff_new_pack.8UPWB8/_old 2020-09-06 00:04:09.151306424 +0200
+++ /var/tmp/diff_new_pack.8UPWB8/_new 2020-09-06 00:04:09.155306426 +0200
@@ -20,7 +20,7 @@
%define skip_python2 1
%define mod_name django-crispy-forms
Name: python-%{mod_name}
-Version: 1.9.1
+Version: 1.9.2
Release: 0
Summary: Django DRY Forms
License: MIT
@@ -48,13 +48,15 @@
%build
%python_build
-%check
-export DJANGO_SETTINGS_MODULE=crispy_forms.tests.test_settings
-%pytest
-
%install
%python_install
-%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%{python_expand rm -r %{buildroot}%{$python_sitelib}/crispy_forms/tests/
+%fdupes %{buildroot}%{$python_sitelib}
+}
+
+%check
+export DJANGO_SETTINGS_MODULE=crispy_forms.tests.test_settings
+%python_exec -m pytest -rs crispy_forms/tests/
%files %{python_files}
%license LICENSE.txt
++++++ django-crispy-forms-1.9.1.tar.gz -> django-crispy-forms-1.9.2.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/django-crispy-forms-1.9.1/PKG-INFO
new/django-crispy-forms-1.9.2/PKG-INFO
--- old/django-crispy-forms-1.9.1/PKG-INFO 2020-05-16 08:06:42.649849400
+0200
+++ new/django-crispy-forms-1.9.2/PKG-INFO 2020-07-11 21:12:55.229901000
+0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: django-crispy-forms
-Version: 1.9.1
+Version: 1.9.2
Summary: Best way to have Django DRY forms
Home-page: https://github.com/django-crispy-forms/django-crispy-forms
Author: Miguel Araujo
@@ -20,7 +20,7 @@
The best way to have Django_ DRY forms. Build programmatic reusable
layouts out of components, having full control of the rendered HTML without
writing HTML in templates. All this without breaking the standard way of doing
things in Django, so it plays nice with any other form application.
- `django-crispy-forms` supports Django 2.2 and 3.0 with Python 3.5+.
+ `django-crispy-forms` supports Django 2.2, 3.0 and 3.1 with Python
3.5+. **Note: Django 3.1 requires `django-crispy-forms` version 1.9 or higher**.
Versions of `django-crispy-forms` prior to 1.9.0 also supported Python
2.7 and Django 1.11/2.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/django-crispy-forms-1.9.1/README.rst
new/django-crispy-forms-1.9.2/README.rst
--- old/django-crispy-forms-1.9.1/README.rst 2020-05-09 08:58:05.000000000
+0200
+++ new/django-crispy-forms-1.9.2/README.rst 2020-07-02 08:49:40.000000000
+0200
@@ -12,7 +12,7 @@
The best way to have Django_ DRY forms. Build programmatic reusable layouts
out of components, having full control of the rendered HTML without writing
HTML in templates. All this without breaking the standard way of doing things
in Django, so it plays nice with any other form application.
-`django-crispy-forms` supports Django 2.2 and 3.0 with Python 3.5+.
+`django-crispy-forms` supports Django 2.2, 3.0 and 3.1 with Python 3.5+.
**Note: Django 3.1 requires `django-crispy-forms` version 1.9 or higher**.
Versions of `django-crispy-forms` prior to 1.9.0 also supported Python 2.7 and
Django 1.11/2.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/django-crispy-forms-1.9.1/crispy_forms/__init__.py
new/django-crispy-forms-1.9.2/crispy_forms/__init__.py
--- old/django-crispy-forms-1.9.1/crispy_forms/__init__.py 2020-05-16
08:03:53.000000000 +0200
+++ new/django-crispy-forms-1.9.2/crispy_forms/__init__.py 2020-07-11
21:10:49.000000000 +0200
@@ -1 +1 @@
-__version__ = "1.9.1"
+__version__ = "1.9.2"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/django-crispy-forms-1.9.1/crispy_forms/templates/bootstrap4/layout/field_file.html
new/django-crispy-forms-1.9.2/crispy_forms/templates/bootstrap4/layout/field_file.html
---
old/django-crispy-forms-1.9.1/crispy_forms/templates/bootstrap4/layout/field_file.html
2020-05-16 08:03:46.000000000 +0200
+++
new/django-crispy-forms-1.9.2/crispy_forms/templates/bootstrap4/layout/field_file.html
2020-07-02 08:49:40.000000000 +0200
@@ -7,12 +7,12 @@
<div class="input-group-prepend">
<span class="input-group-text">{{ widget.data.initial_text }}</span>
</div>
- <div class="form-control d-flex">
- <span style="flex-grow: 1;">
+ <div class="form-control d-flex h-auto">
+ <span class="text-break" style="flex-grow:1;min-width:0">
<a href="{{ field.value.url }}">{{ field.value }}</a>
</span>
{% if not widget.data.required %}
- <span class=" ">
+ <span class="align-self-center ml-2">
<span class="custom-control custom-checkbox">
<input type="checkbox" name="{{ widget.data.checkbox_name }}"
id="{{ widget.data.checkbox_id }}" class="custom-control-input"{% if
field.field.disabled %} disabled{% endif %} >
<label class="custom-control-label mb-0" for="{{
widget.data.checkbox_id }}">{{ widget.data.clear_checkbox_label }}</label>
@@ -28,7 +28,7 @@
{% endif %}
<div class="form-control custom-file{% if field.errors %}
is-invalid{%endif%}" style="border:0">
<input type="{{ widget.data.type }}" name="{{ widget.data.name }}"
class="custom-file-input{% if field.errors %} is-invalid{%endif%}" {% if
field.field.disabled %}disabled{% endif %} {% for name, value in
field.field.widget.attrs.items %}{% if value is not False %} {{ name }}{% if
value is not True %}="{{ value|stringformat:'s' }}"{% endif %}{% endif %}{%
endfor %}>
- <label class="custom-file-label" for="{{ field.id_for_label
}}">---</label>
+ <label class="custom-file-label text-truncate" for="{{
field.id_for_label }}">---</label>
<script type="text/javascript" id="script-{{ field.id_for_label }}">
document.getElementById("script-{{ field.id_for_label
}}").parentNode.querySelector('.custom-file-input').onchange = function (e){
var filenames = "";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/django-crispy-forms-1.9.1/crispy_forms/tests/test_layout.py
new/django-crispy-forms-1.9.2/crispy_forms/tests/test_layout.py
--- old/django-crispy-forms-1.9.1/crispy_forms/tests/test_layout.py
2020-05-16 08:03:46.000000000 +0200
+++ new/django-crispy-forms-1.9.2/crispy_forms/tests/test_layout.py
2020-07-02 08:49:33.000000000 +0200
@@ -618,14 +618,13 @@
form.helper.use_custom_control = True
form.helper.layout = Layout("file_field")
html = render_crispy_form(form)
- assert (
- '<div class="form-control custom-file" style="border:0"> <input
type="file" name="file_field" '
- 'class="custom-file-input" > <label class="custom-file-label"
for="id_file_field">---</label>' in html
- )
+ assert '<div class="form-control custom-file"' in html
+ assert '<input type="file" name="file_field" class="custom-file-input"' in
html
+ assert '<label class="custom-file-label' in html
+ assert 'for="id_file_field">---</label>' in html
form.helper.use_custom_control = False
html = render_crispy_form(form)
- assert (
- '<div class="form-control custom-file" style="border:0"> <input
type="file" name="file_field" '
- 'class="custom-file-input" > <label class="custom-file-label"
for="id_file_field">---</label>' not in html
- )
+ assert "custom-file" not in html
+ assert "custom-file-input" not in html
+ assert "custom-file-label" not in html
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/django-crispy-forms-1.9.1/crispy_forms/tests/urls.py
new/django-crispy-forms-1.9.2/crispy_forms/tests/urls.py
--- old/django-crispy-forms-1.9.1/crispy_forms/tests/urls.py 2020-05-01
20:02:08.000000000 +0200
+++ new/django-crispy-forms-1.9.2/crispy_forms/tests/urls.py 2020-06-24
08:58:15.000000000 +0200
@@ -1,6 +1,6 @@
-from django.conf.urls import url
+from django.urls import path
from django.views.generic import View
urlpatterns = [
- url(r"^simple/action/$", View.as_view(), name="simpleAction"),
+ path("simple/action/", View.as_view(), name="simpleAction"),
]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/django-crispy-forms-1.9.1/django_crispy_forms.egg-info/PKG-INFO
new/django-crispy-forms-1.9.2/django_crispy_forms.egg-info/PKG-INFO
--- old/django-crispy-forms-1.9.1/django_crispy_forms.egg-info/PKG-INFO
2020-05-16 08:06:42.000000000 +0200
+++ new/django-crispy-forms-1.9.2/django_crispy_forms.egg-info/PKG-INFO
2020-07-11 21:12:54.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: django-crispy-forms
-Version: 1.9.1
+Version: 1.9.2
Summary: Best way to have Django DRY forms
Home-page: https://github.com/django-crispy-forms/django-crispy-forms
Author: Miguel Araujo
@@ -20,7 +20,7 @@
The best way to have Django_ DRY forms. Build programmatic reusable
layouts out of components, having full control of the rendered HTML without
writing HTML in templates. All this without breaking the standard way of doing
things in Django, so it plays nice with any other form application.
- `django-crispy-forms` supports Django 2.2 and 3.0 with Python 3.5+.
+ `django-crispy-forms` supports Django 2.2, 3.0 and 3.1 with Python
3.5+. **Note: Django 3.1 requires `django-crispy-forms` version 1.9 or higher**.
Versions of `django-crispy-forms` prior to 1.9.0 also supported Python
2.7 and Django 1.11/2.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/django-crispy-forms-1.9.1/setup.cfg
new/django-crispy-forms-1.9.2/setup.cfg
--- old/django-crispy-forms-1.9.1/setup.cfg 2020-05-16 08:06:42.650847400
+0200
+++ new/django-crispy-forms-1.9.2/setup.cfg 2020-07-11 21:12:55.231894300
+0200
@@ -1,9 +1,6 @@
[metadata]
license-file = LICENSE.txt
-[bdist_wheel]
-universal = 1
-
[isort]
multi_line_output = 3
include_trailing_comma = True