summaryrefslogtreecommitdiff
path: root/dev-python/crispy-bootstrap5
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-12-30 23:46:05 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-12-30 23:46:05 +0000
commitbb262580ec0b56a32797f121e627928d103e6bb1 (patch)
treeb3b80cb753a087635c972352ce99fed1d01f286b /dev-python/crispy-bootstrap5
parent35e3ee5faf74dc69409f957f81a6848d4d24c49f (diff)
gentoo auto-resync : 30:12:2023 - 23:46:05
Diffstat (limited to 'dev-python/crispy-bootstrap5')
-rw-r--r--dev-python/crispy-bootstrap5/Manifest3
-rw-r--r--dev-python/crispy-bootstrap5/crispy-bootstrap5-0.7.ebuild38
-rw-r--r--dev-python/crispy-bootstrap5/files/crispy-bootstrap5-0.7-test.patch172
3 files changed, 0 insertions, 213 deletions
diff --git a/dev-python/crispy-bootstrap5/Manifest b/dev-python/crispy-bootstrap5/Manifest
index 84a950d28e5c..90f01d679dee 100644
--- a/dev-python/crispy-bootstrap5/Manifest
+++ b/dev-python/crispy-bootstrap5/Manifest
@@ -1,6 +1,3 @@
-AUX crispy-bootstrap5-0.7-test.patch 6530 BLAKE2B a8a987e0a32ff4976575def65e9fdd893d7b28af9d1793de62daf6e9823023275b3a0735f037d23e82d6c0fb9143cdd6fb6d2d7787aab607c8dc0075268e8f7a SHA512 b185c09df4428f729d0f9afbbe22ba33edae059083cf28eb164e85ba971e700b112eb3bbf71952ee659302b62452de0a7ac2c0aee7e21908d55cab0d50d6d3ec
-DIST crispy-bootstrap5-0.7.gh.tar.gz 29728 BLAKE2B 1209ab7d8340e30c71050ed60a86d8233f454c49d2f6d4fcf4f1d6be4a7d1c470c3f907211c1ee352fc3eba9a74e8152d41162e4d6f8113538eccbb3522409a5 SHA512 c73305c6661719cd45989679c33751f44b318b39f895e0328257eaffcdd52b726be9be624ebecb6bcba35635f0f615bb83e48c775e0f05c40f8f1e6e80ab737c
DIST crispy-bootstrap5-2023.10.gh.tar.gz 31222 BLAKE2B cab972ed222ba0245d0a0d6e75487aac03c054f8669859fc4eb8293c2abb3775ef76f6866402917d1d1bfa0444548983639a24bd5fd4d1c2a3bbd74d1c086057 SHA512 379e4ea536809ceeb347d8894953acd97362c7340cb496727e4f56c2967aba93b1b041166ba6b8253d4952e4fa97f80668041733ddbd2ca62b60f4f9046259ef
-EBUILD crispy-bootstrap5-0.7.ebuild 743 BLAKE2B 651eaeccc6a64faa98676b2badf91fdd00c7f1451293aec1f1fbcad8f3cce077efff9cc931ad39246ced64eb063e87d98702eea1adf7997bf9524edd970f7f22 SHA512 e8630213fd6cd1d265d78c2c03d03a5b77614b9935b8b49c7676f4d02a9fdca687bf5dcebe382930649e7a9b44dd81e34f9d979a2645104fdf05e19a21bb1b78
EBUILD crispy-bootstrap5-2023.10.ebuild 746 BLAKE2B 8d9449f426d77d037b95e1855802bea380ba3b8c044723c4d0e5a8299521cce5ff5527388d36596f840a46cfe313cb896fba3779b28ace7e7597df760b198bce SHA512 9a83cef4fcb829adbd7cd671c2ecd7341559bb0c5b1a7314d2e0f0630fda3036f12689b7c6dab48f413dade941bfe96994a880a0d192f767f72e31ff2bd75e2f
MISC metadata.xml 405 BLAKE2B 4b4a3bf239037510067beb822fe736db7235f0f530504831e7e64b70b311f34d52e842b19b155ba3bad6d607b25cbda34d926bd6691da2316551f3d86b11c94e SHA512 4c44e8ae1e2729af4c84217f287316e1aa098b80c62770d77cf690bc8c34f6df03f0aed2ef4c5ef22e423270abf737058f48f64b78d7b2b882b151992b0701a8
diff --git a/dev-python/crispy-bootstrap5/crispy-bootstrap5-0.7.ebuild b/dev-python/crispy-bootstrap5/crispy-bootstrap5-0.7.ebuild
deleted file mode 100644
index b04b976d40a0..000000000000
--- a/dev-python/crispy-bootstrap5/crispy-bootstrap5-0.7.ebuild
+++ /dev/null
@@ -1,38 +0,0 @@
-# Copyright 2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..11} )
-
-inherit distutils-r1
-
-DESCRIPTION="Bootstrap5 template pack for django-crispy-forms"
-HOMEPAGE="
- https://github.com/django-crispy-forms/crispy-bootstrap5/
- https://pypi.org/project/crispy-bootstrap5/
-"
-SRC_URI="
- https://github.com/django-crispy-forms/crispy-bootstrap5/archive/${PV}.tar.gz
- -> ${P}.gh.tar.gz
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-RDEPEND="
- dev-python/django-crispy-forms[${PYTHON_USEDEP}]
-"
-BDEPEND="
- test? (
- dev-python/pytest-django[${PYTHON_USEDEP}]
- )
-"
-
-distutils_enable_tests pytest
-
-PATCHES=(
- "${FILESDIR}"/${P}-test.patch
-)
diff --git a/dev-python/crispy-bootstrap5/files/crispy-bootstrap5-0.7-test.patch b/dev-python/crispy-bootstrap5/files/crispy-bootstrap5-0.7-test.patch
deleted file mode 100644
index 914b48385437..000000000000
--- a/dev-python/crispy-bootstrap5/files/crispy-bootstrap5-0.7-test.patch
+++ /dev/null
@@ -1,172 +0,0 @@
-From 69ff88bed286a76e6216a54ecf93a0b27d87bc8d Mon Sep 17 00:00:00 2001
-From: David Smith <39445562+smithdc1@users.noreply.github.com>
-Date: Thu, 15 Dec 2022 08:01:04 +0000
-Subject: [PATCH] Fixed tests for crispy-forms 2.x (#133)
-
----
- tests/templates/custom_field_template.html | 2 +-
- tests/templates/custom_form_template.html | 2 +-
- .../custom_form_template_with_context.html | 2 +-
- tests/test_layout.py | 14 ++++++++++++--
- tests/test_layout_objects.py | 12 ++++++++++++
- tox.ini | 2 --
- 6 files changed, 27 insertions(+), 7 deletions(-)
-
-diff --git a/tests/templates/custom_field_template.html b/tests/templates/custom_field_template.html
-index 4724226..04f0274 100644
---- a/tests/templates/custom_field_template.html
-+++ b/tests/templates/custom_field_template.html
-@@ -1,2 +1,2 @@
- <h1>Special custom field</h1>
--{% include 'bootstrap/field.html' %}
-+{% include 'bootstrap5/field.html' %}
-diff --git a/tests/templates/custom_form_template.html b/tests/templates/custom_form_template.html
-index f2da757..c09b4c7 100644
---- a/tests/templates/custom_form_template.html
-+++ b/tests/templates/custom_form_template.html
-@@ -1,2 +1,2 @@
- <h1>Special custom form</h1>
--{% include "bootstrap/whole_uni_form.html" %}
-+{% include "bootstrap5/whole_uni_form.html" %}
-diff --git a/tests/templates/custom_form_template_with_context.html b/tests/templates/custom_form_template_with_context.html
-index 2378296..477997a 100644
---- a/tests/templates/custom_form_template_with_context.html
-+++ b/tests/templates/custom_form_template_with_context.html
-@@ -1,4 +1,4 @@
- <h1>Special custom form with context passthrough</h1>
- Got prefix: {{ prefix }}.
--{% include "bootstrap/whole_uni_form.html" %}
-+{% include "bootstrap5/whole_uni_form.html" %}
- Got suffix: {{ suffix }}.
-diff --git a/tests/test_layout.py b/tests/test_layout.py
-index 512facf..a2a72e8 100644
---- a/tests/test_layout.py
-+++ b/tests/test_layout.py
-@@ -16,6 +16,7 @@
- from django.middleware.csrf import _get_new_csrf_string
- from django.shortcuts import render
- from django.template import Context, Template
-+from django.test import override_settings
- from django.urls import reverse
- from django.utils.translation import gettext_lazy as _
-
-@@ -36,6 +37,12 @@
- )
- from .utils import contains_partial, parse_expected, parse_form
-
-+CONVERTERS = {
-+ "textinput": "inputtext textinput textInput",
-+ "fileinput": "fileinput fileUpload",
-+ "passwordinput": "textinput textInput",
-+}
-+
-
- def test_invalid_unicode_characters(settings):
- # Adds a BooleanField that uses non valid unicode characters "ñ"
-@@ -331,6 +338,7 @@ def test_bs5_field_with_buttons_css_classes():
- assert parse_form(form) == parse_expected("field_with_buttons_failing.html")
-
-
-+@override_settings(CRISPY_CLASS_CONVERTERS=CONVERTERS)
- def test_formset_layout():
- SampleFormSet = formset_factory(SampleForm, extra=3)
- formset = SampleFormSet()
-@@ -523,6 +531,7 @@ def test_keepcontext_context_manager():
- assert response.content.count(b"form-check-input") > 0
-
-
-+@override_settings(CRISPY_CLASS_CONVERTERS=CONVERTERS)
- def test_bootstrap5_form_inline():
- form = SampleForm()
- form.helper = FormHelper()
-@@ -557,7 +566,7 @@ def test_update_attributes_class():
- form.helper.layout = Layout("email", Field("password1"), "password2")
- form.helper["password1"].update_attributes(css_class="hello")
- html = render_crispy_form(form)
-- assert html.count(' class="hello textinput') == 1
-+ assert html.count(' class="hello') == 1
- form.helper = FormHelper()
- form.helper.layout = Layout(
- "email",
-@@ -566,7 +575,7 @@ def test_update_attributes_class():
- )
- form.helper["password1"].update_attributes(css_class="hello2")
- html = render_crispy_form(form)
-- assert html.count(' class="hello hello2 textinput') == 1
-+ assert html.count(' class="hello hello2') == 1
-
-
- def test_file_field():
-@@ -611,6 +620,7 @@ def test_html_label_escape():
- assert "&lt;&gt;&amp;" in html
-
-
-+@override_settings(CRISPY_CLASS_CONVERTERS=CONVERTERS)
- def test_tabular_formset_layout():
- SampleFormSet = formset_factory(SampleForm, extra=3)
- formset = SampleFormSet()
-diff --git a/tests/test_layout_objects.py b/tests/test_layout_objects.py
-index b386c0b..0e3dde7 100644
---- a/tests/test_layout_objects.py
-+++ b/tests/test_layout_objects.py
-@@ -21,6 +21,7 @@
- from crispy_forms.utils import render_crispy_form
- from django import forms
- from django.template import Context, Template
-+from django.test import override_settings
- from django.utils.translation import activate, deactivate
- from django.utils.translation import gettext as _
-
-@@ -37,6 +38,12 @@
- )
- from .utils import parse_expected, parse_form
-
-+CONVERTERS = {
-+ "textinput": "inputtext textinput textInput",
-+ "fileinput": "fileinput fileUpload",
-+ "passwordinput": "textinput textInput",
-+}
-+
-
- def test_field_with_custom_template():
- test_form = SampleForm()
-@@ -202,6 +209,7 @@ def test_custom_django_widget(self):
- html = render_crispy_form(form)
- assert 'class="form-check-input"' in html
-
-+ @override_settings(CRISPY_CLASS_CONVERTERS=CONVERTERS)
- def test_prepended_appended_text(self):
- test_form = SampleForm()
- test_form.helper = FormHelper()
-@@ -223,6 +231,7 @@ def test_inline_radios(self):
- html = render_crispy_form(test_form)
- assert html.count('form-check-inline"') == 2
-
-+ @override_settings(CRISPY_CLASS_CONVERTERS=CONVERTERS)
- def test_accordion_and_accordiongroup(self):
- random.seed(0)
- form = SampleForm()
-@@ -269,6 +278,7 @@ def test_accordion_active_false_not_rendered(self):
- == 0
- )
-
-+ @override_settings(CRISPY_CLASS_CONVERTERS=CONVERTERS)
- def test_bs5accordion(self):
- random.seed(0)
- form = SampleForm()
-@@ -315,6 +325,7 @@ def test_bs5accordion_active_false_not_rendered(self):
- == 0
- )
-
-+ @override_settings(CRISPY_CLASS_CONVERTERS=CONVERTERS)
- def test_bs5accordion_flush(self):
- random.seed(0)
- test_form = SampleForm()
-@@ -329,6 +340,7 @@ def test_bs5accordion_flush(self):
- )
- assert parse_form(test_form) == parse_expected("accordion_flush.html")
-
-+ @override_settings(CRISPY_CLASS_CONVERTERS=CONVERTERS)
- def test_bs5accordion_always_open(self):
- random.seed(0)
- test_form = SampleForm()