From b590c8d7572b727d565cc0b8ff660d43569845de Mon Sep 17 00:00:00 2001 From: root Date: Fri, 12 Jun 2026 19:09:37 -0500 Subject: Adding metadata --- dev-python/crispy-bootstrap3/Manifest | 1 + .../crispy-bootstrap3-2024.1.ebuild | 44 ++++++++ .../files/crispy-bootstrap3-2024.1-django52.patch | 125 +++++++++++++++++++++ .../crispy-bootstrap3-2024.1-django52Py.patch | 53 +++++++++ dev-python/crispy-bootstrap3/metadata.xml | 9 ++ 5 files changed, 232 insertions(+) create mode 100644 dev-python/crispy-bootstrap3/Manifest create mode 100644 dev-python/crispy-bootstrap3/crispy-bootstrap3-2024.1.ebuild create mode 100644 dev-python/crispy-bootstrap3/files/crispy-bootstrap3-2024.1-django52.patch create mode 100644 dev-python/crispy-bootstrap3/files/crispy-bootstrap3-2024.1-django52Py.patch create mode 100644 dev-python/crispy-bootstrap3/metadata.xml (limited to 'dev-python/crispy-bootstrap3') diff --git a/dev-python/crispy-bootstrap3/Manifest b/dev-python/crispy-bootstrap3/Manifest new file mode 100644 index 000000000000..5d5b4b260332 --- /dev/null +++ b/dev-python/crispy-bootstrap3/Manifest @@ -0,0 +1 @@ +DIST crispy-bootstrap3-2024.1.gh.tar.gz 26766 BLAKE2B 40a90ab97755e72a5e46dfcb7a2763bf21acbb5bb53117c92fa419bcc52d2faf46e189d0b00003c09d1c0d835979a137299f3b7b3a503548efc38e4507415791 SHA512 d647da99f0939e3221130a10ca44eb122be2d7796c0f2d29b4c9c4c8948f8cad788a7218bb59b2ccf032298cc7be177a222e14a924c3f543a77eba73699f0c0e diff --git a/dev-python/crispy-bootstrap3/crispy-bootstrap3-2024.1.ebuild b/dev-python/crispy-bootstrap3/crispy-bootstrap3-2024.1.ebuild new file mode 100644 index 000000000000..e5642caa3312 --- /dev/null +++ b/dev-python/crispy-bootstrap3/crispy-bootstrap3-2024.1.ebuild @@ -0,0 +1,44 @@ +# Copyright 2023-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 + +DESCRIPTION="Bootstrap3 template pack for django-crispy-forms" +HOMEPAGE=" + https://github.com/django-crispy-forms/crispy-bootstrap3/ + https://pypi.org/project/crispy-bootstrap3/ +" +SRC_URI=" + https://github.com/django-crispy-forms/crispy-bootstrap3/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + >=dev-python/django-5.2[${PYTHON_USEDEP}] + >=dev-python/django-crispy-forms-2.0[${PYTHON_USEDEP}] +" + +PATCHES=( "${FILESDIR}"/${P}-django52Py.patch ) + +python_prepare_all() { + pushd tests/results/bootstrap3/test_form_helper 2>/dev/null + cp bootstrap_form_show_errors_bs3_true_gte5{0,2}.html || die + cp bootstrap_form_show_errors_bs3_false_gte5{0,2}.html || die + cp test_form_show_errors_non_field_errors_true_gte5{0,2}.html || die + cp test_form_show_errors_non_field_errors_false_gte5{0,2}.html || die + popd + eapply "${FILESDIR}"/${P}-django52.patch + distutils-r1_python_prepare_all +} + +EPYTEST_PLUGINS=( pytest-django ) +distutils_enable_tests pytest diff --git a/dev-python/crispy-bootstrap3/files/crispy-bootstrap3-2024.1-django52.patch b/dev-python/crispy-bootstrap3/files/crispy-bootstrap3-2024.1-django52.patch new file mode 100644 index 000000000000..302f0707281d --- /dev/null +++ b/dev-python/crispy-bootstrap3/files/crispy-bootstrap3-2024.1-django52.patch @@ -0,0 +1,125 @@ +--- a/tests/results/bootstrap3/test_form_helper/bootstrap_form_show_errors_bs3_true_gte52.html 2026-05-12 08:54:40.844588615 +0200 ++++ b/tests/results/bootstrap3/test_form_helper/bootstrap_form_show_errors_bs3_true_gte52.html 2026-05-12 08:56:08.969609620 +0200 +@@ -3,7 +3,7 @@ + +
+
+ whatever
+ Enter a valid email address. +@@ -15,7 +15,7 @@ +
+
+ blabla +- +
+ +@@ -27,7 +27,7 @@ +
+
+ foo +- + bar +
+--- a/tests/results/bootstrap3/test_form_helper/bootstrap_form_show_errors_bs3_false_gte52.html 2026-05-12 08:58:43.242895175 +0200 ++++ b/tests/results/bootstrap3/test_form_helper/bootstrap_form_show_errors_bs3_false_gte52.html 2026-05-12 08:59:34.010330008 +0200 +@@ -3,7 +3,7 @@ + +
+
+ whatever
+
Insert your email
+@@ -14,7 +14,7 @@ +
+
+ blabla +- +
+
+@@ -24,7 +24,7 @@ +
+
+ foo +- + bar +
+--- a/tests/results/bootstrap3/test_form_helper/test_form_show_errors_non_field_errors_true_gte52.html 2026-05-12 09:05:52.812112989 +0200 ++++ b/tests/results/bootstrap3/test_form_helper/test_form_show_errors_non_field_errors_true_gte52.html 2026-05-12 09:08:58.292049212 +0200 +@@ -11,7 +11,7 @@ +
+
This field is required. +
Insert your email
+@@ -29,13 +29,13 @@ +
+
+-
This field is required.
+
+
+-
This field is required.
+
+@@ -46,4 +46,4 @@ + id="id_datetime_field_1"> This field is + required.
+
+- +\ No newline at end of file ++ +--- a/tests/results/bootstrap3/test_form_helper/test_form_show_errors_non_field_errors_false_gte52.html 2026-05-12 09:07:54.198762179 +0200 ++++ b/tests/results/bootstrap3/test_form_helper/test_form_show_errors_non_field_errors_false_gte52.html 2026-05-12 09:10:38.733931881 +0200 +@@ -6,7 +6,7 @@ +
+
+
Insert your email
+
+@@ -23,12 +23,12 @@ +
+
+-
+
+
+-
+
+
+@@ -37,4 +37,4 @@ + id="id_datetime_field_0">
+
+- +\ No newline at end of file ++ diff --git a/dev-python/crispy-bootstrap3/files/crispy-bootstrap3-2024.1-django52Py.patch b/dev-python/crispy-bootstrap3/files/crispy-bootstrap3-2024.1-django52Py.patch new file mode 100644 index 000000000000..26104c0d6b68 --- /dev/null +++ b/dev-python/crispy-bootstrap3/files/crispy-bootstrap3-2024.1-django52Py.patch @@ -0,0 +1,53 @@ +--- a/tests/test_form_helper.py 2026-05-12 09:33:29.599682337 +0200 ++++ b/tests/test_form_helper.py 2026-05-12 09:36:56.323382756 +0200 +@@ -139,6 +139,11 @@ + "bootstrap3/test_form_helper/" + "test_form_show_errors_non_field_errors_true_lte40.html" + ) ++ elif django.VERSION >= (5, 2): ++ expected = parse_expected( ++ "bootstrap3/test_form_helper/" ++ "test_form_show_errors_non_field_errors_true_gte52.html" ++ ) + elif django.VERSION >= (5, 0): + # Added 'aria-describedby' for fields with help_text + # https://docs.djangoproject.com/en/5.0/releases/5.0/#forms +@@ -162,6 +167,11 @@ + "bootstrap3/test_form_helper/" + "test_form_show_errors_non_field_errors_false_lte40.html" + ) ++ elif django.VERSION >= (5, 2): ++ expected = parse_expected( ++ "bootstrap3/test_form_helper/" ++ "test_form_show_errors_non_field_errors_false_gte52.html" ++ ) + elif django.VERSION >= (5, 0): + # Added 'aria-describedby' for fields with help_text + # https://docs.djangoproject.com/en/5.0/releases/5.0/#forms +@@ -542,7 +552,11 @@ + form.is_valid() + + form.helper.form_show_errors = True +- if django.VERSION >= (5, 0): ++ if django.VERSION >= (5, 2): ++ expected = parse_expected( ++ "bootstrap3/test_form_helper/bootstrap_form_show_errors_bs3_true_gte52.html" ++ ) ++ elif django.VERSION >= (5, 0): + # Added 'aria-describedby' for fields with help_text + # https://docs.djangoproject.com/en/5.0/releases/5.0/#forms + expected = parse_expected( +@@ -555,7 +569,12 @@ + assert parse_form(form) == expected + + form.helper.form_show_errors = False +- if django.VERSION >= (5, 0): ++ if django.VERSION >= (5, 2): ++ expected = parse_expected( ++ "bootstrap3/test_form_helper/" ++ "bootstrap_form_show_errors_bs3_false_gte52.html" ++ ) ++ elif django.VERSION >= (5, 0): + # Added 'aria-describedby' for fields with help_text + # https://docs.djangoproject.com/en/5.0/releases/5.0/#forms + expected = parse_expected( diff --git a/dev-python/crispy-bootstrap3/metadata.xml b/dev-python/crispy-bootstrap3/metadata.xml new file mode 100644 index 000000000000..31493193c995 --- /dev/null +++ b/dev-python/crispy-bootstrap3/metadata.xml @@ -0,0 +1,9 @@ + + + + + tupone@gentoo.org + Tupone Alfredo + + baldeagleos-repo + -- cgit v1.3.1