summaryrefslogtreecommitdiff
path: root/dev-python/crispy-bootstrap3/crispy-bootstrap3-2024.1.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/crispy-bootstrap3/crispy-bootstrap3-2024.1.ebuild')
-rw-r--r--dev-python/crispy-bootstrap3/crispy-bootstrap3-2024.1.ebuild24
1 files changed, 17 insertions, 7 deletions
diff --git a/dev-python/crispy-bootstrap3/crispy-bootstrap3-2024.1.ebuild b/dev-python/crispy-bootstrap3/crispy-bootstrap3-2024.1.ebuild
index 8b831964569f..70d88fb87505 100644
--- a/dev-python/crispy-bootstrap3/crispy-bootstrap3-2024.1.ebuild
+++ b/dev-python/crispy-bootstrap3/crispy-bootstrap3-2024.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2023-2025 Gentoo Authors
+# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -23,12 +23,22 @@ SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
RDEPEND="
- dev-python/django-crispy-forms[${PYTHON_USEDEP}]
-"
-BDEPEND="
- test? (
- dev-python/pytest-django[${PYTHON_USEDEP}]
- )
+ >=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