From de808a929117adb9e5ada195f73946d77e87675f Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Tue, 26 Jul 2016 08:33:18 +0000 Subject: [PATCH] django-1.10-add-Django-1.10-fixtures.html.patch --- debian/changelog | 1 + ...o-1.10-add-Django-1.10-fixtures.html.patch | 236 ++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 238 insertions(+) create mode 100644 debian/patches/django-1.10-add-Django-1.10-fixtures.html.patch diff --git a/debian/changelog b/debian/changelog index cc3743a..0575687 100644 --- a/debian/changelog +++ b/debian/changelog @@ -11,6 +11,7 @@ python-django-bootstrap-form (3.2.1-1) unstable; urgency=medium * Removed all patches. * Added patch: - django-1.10-fix-settings-in-runtests.py.patch + - django-1.10-add-Django-1.10-fixtures.html.patch * Using pkgos-dh_auto_install from openstack-pkg-tools >= 52~. * Standards-Version is now 3.9.8 (no change). diff --git a/debian/patches/django-1.10-add-Django-1.10-fixtures.html.patch b/debian/patches/django-1.10-add-Django-1.10-fixtures.html.patch new file mode 100644 index 0000000..279854d --- /dev/null +++ b/debian/patches/django-1.10-add-Django-1.10-fixtures.html.patch @@ -0,0 +1,236 @@ +Description: Add Django 1.10 fixtures +Author: Thomas Goirand +Forwarded: no +Last-Update: 2016-07-26 + +--- /dev/null ++++ python-django-bootstrap-form-3.2.1/bootstrapform/fixtures/basic_dj110.html +@@ -0,0 +1,99 @@ ++
++ ++
++ ++
++
++ ++
++ ++
++ ++
++
++ ++
++ ++
++
++ ++
++ ++
++ ++
++ ++
++ ++
++
++
++ ++
++ ++
++ ++
++
++ ++
++ ++
++
    ++
  • ++
  • ++
  • ++
++
++
++ ++
++ ++ ++
++ ++
++
++ ++
++ ++ ++
++ ++
++
++ ++
++ ++
++ ++
++
++ ++
++
++
++ ++
++
++
+--- /dev/null ++++ python-django-bootstrap-form-3.2.1/bootstrapform/fixtures/horizontal_dj110.html +@@ -0,0 +1,102 @@ ++
++ ++ ++
++ ++
++
++ ++
++ ++ ++
++ ++
++
++ ++
++ ++ ++
++
++ ++
++
++ ++
++
++ ++
++
++
++ ++
++ ++ ++
++ ++
++
++ ++
++ ++
++
    ++
  • ++
  • ++
  • ++
++
++
++ ++
++ ++ ++
++ ++
++
++ ++
++ ++ ++
++ ++
++
++ ++
++ ++ ++
++ ++
++
++ ++
++
++
++ ++
++
++
+--- python-django-bootstrap-form-3.2.1.orig/bootstrapform/tests.py ++++ python-django-bootstrap-form-3.2.1/bootstrapform/tests.py +@@ -43,7 +43,9 @@ class BootstrapTemplateTagTests(TestCase + html = Template("{% load bootstrap %}{{ form|bootstrap }}").render(Context({'form': form})) + + +- if StrictVersion(django.get_version()) >= StrictVersion('1.7'): ++ if StrictVersion(django.get_version()) >= StrictVersion('1.10b1'): ++ fixture = 'basic_dj110.html' ++ elif StrictVersion(django.get_version()) >= StrictVersion('1.7'): + fixture = 'basic.html' + elif StrictVersion(django.get_version()) >= StrictVersion('1.6'): + fixture = 'basic_dj16.html' +@@ -61,7 +63,9 @@ class BootstrapTemplateTagTests(TestCase + + html = Template("{% load bootstrap %}{{ form|bootstrap_horizontal }}").render(Context({'form': form})) + +- if StrictVersion(django.get_version()) >= StrictVersion('1.7'): ++ if StrictVersion(django.get_version()) >= StrictVersion('1.10b1'): ++ fixture = 'horizontal_dj110.html' ++ elif StrictVersion(django.get_version()) >= StrictVersion('1.7'): + fixture = 'horizontal.html' + elif StrictVersion(django.get_version()) >= StrictVersion('1.6'): + fixture = 'horizontal_dj16.html' diff --git a/debian/patches/series b/debian/patches/series index d529510..01568b9 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ django-1.10-fix-settings-in-runtests.py.patch +django-1.10-add-Django-1.10-fixtures.html.patch