commit: 6053ed3a3d3178ef3260734ae6c6776e2b02789f Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Sat Dec 30 19:07:30 2023 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Sat Dec 30 19:17:20 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6053ed3a
dev-python/django-debug-toolbar: PythonCompatUpdate Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> ...0.ebuild => django-debug-toolbar-4.2.0-r1.ebuild} | 4 +++- .../files/django-debug-toolbar-4.2.0-py312.patch | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/dev-python/django-debug-toolbar/django-debug-toolbar-4.2.0.ebuild b/dev-python/django-debug-toolbar/django-debug-toolbar-4.2.0-r1.ebuild similarity index 89% rename from dev-python/django-debug-toolbar/django-debug-toolbar-4.2.0.ebuild rename to dev-python/django-debug-toolbar/django-debug-toolbar-4.2.0-r1.ebuild index 570f8b5e767c..31ff14e414eb 100644 --- a/dev-python/django-debug-toolbar/django-debug-toolbar-4.2.0.ebuild +++ b/dev-python/django-debug-toolbar/django-debug-toolbar-4.2.0-r1.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=hatchling -PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit distutils-r1 pypi @@ -30,6 +30,8 @@ BDEPEND=" ) " +PATCHES=( "${FILESDIR}"/${P}-py312.patch ) + python_test() { "${EPYTHON}" -m django test -v 2 --settings tests.settings \ || die "Tests failed with ${EPYTHON}" diff --git a/dev-python/django-debug-toolbar/files/django-debug-toolbar-4.2.0-py312.patch b/dev-python/django-debug-toolbar/files/django-debug-toolbar-4.2.0-py312.patch new file mode 100644 index 000000000000..69a5558da31b --- /dev/null +++ b/dev-python/django-debug-toolbar/files/django-debug-toolbar-4.2.0-py312.patch @@ -0,0 +1,20 @@ +--- a/tests/panels/test_profiling.py 2023-12-30 20:02:22.263807899 +0100 ++++ b/tests/panels/test_profiling.py 2023-12-30 20:03:44.655458186 +0100 +@@ -1,3 +1,6 @@ ++import sys ++import unittest ++ + from django.contrib.auth.models import User + from django.db import IntegrityError, transaction + from django.http import HttpResponse +@@ -50,6 +53,10 @@ + self.assertNotIn("render", content) + self.assertValidHTML(content) + ++ @unittest.skipUnless( ++ sys.version_info < (3, 12, 0), ++ "Python 3.12 no longer contains a frame for list comprehensions.", ++ ) + def test_listcomp_escaped(self): + self._get_response = lambda request: listcomp_view(request) + response = self.panel.process_request(self.request)