diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-12-31 06:25:01 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-12-31 06:25:01 +0000 |
| commit | e2c2a9c364d22d65cbba766bb0683b57cb69682a (patch) | |
| tree | 0447ab5b4f559f4fc4220bbc843334ec18ed699d /dev-python/django-debug-toolbar | |
| parent | cbaecd86fd82eb50088f96c38a8a657f34eff918 (diff) | |
| download | baldeagleos-repo-e2c2a9c364d22d65cbba766bb0683b57cb69682a.tar.gz baldeagleos-repo-e2c2a9c364d22d65cbba766bb0683b57cb69682a.tar.xz baldeagleos-repo-e2c2a9c364d22d65cbba766bb0683b57cb69682a.zip | |
Adding metadata
Diffstat (limited to 'dev-python/django-debug-toolbar')
| -rw-r--r-- | dev-python/django-debug-toolbar/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/django-debug-toolbar/django-debug-toolbar-4.1.ebuild | 41 | ||||
| -rw-r--r-- | dev-python/django-debug-toolbar/django-debug-toolbar-4.2.0-r1.ebuild (renamed from dev-python/django-debug-toolbar/django-debug-toolbar-4.2.0.ebuild) | 2 | ||||
| -rw-r--r-- | dev-python/django-debug-toolbar/files/django-debug-toolbar-4.2.0-py312.patch | 20 |
4 files changed, 22 insertions, 42 deletions
diff --git a/dev-python/django-debug-toolbar/Manifest b/dev-python/django-debug-toolbar/Manifest index 642306af4c36..fe8b6a3f728c 100644 --- a/dev-python/django-debug-toolbar/Manifest +++ b/dev-python/django-debug-toolbar/Manifest @@ -1,2 +1 @@ -DIST django-debug-toolbar-4.1.gh.tar.gz 267550 BLAKE2B 80ebec1ee6f09d44089e119107a3696b8db82263976b4d191aaeea89658b0fbfb7ca1e2975aa73ad5c9240ac3010816710b5f7386165b1d7bdf335f8ef82b896 SHA512 8e9cc1ffcd8be7e345fff78e60cde8c4b44ef751dbf6a6bc061d452ccb60c68eda9f7e7a17efc32be3a62601921dff87f52ba2fe0e47a17fb820bf025cac0035 DIST django_debug_toolbar-4.2.0.tar.gz 259709 BLAKE2B 81172bca569f6080710db2180650b0620670a4b4d2919d8b1694bf9f15425d9378f6cd0cbb852544fca0809388bb13867500a38c9046e1feaa241cde973936d9 SHA512 ff36d92132fd9338e88a2f078747c1e54e7633aecc6babea28ccb0c080b0beb99feccf1d1c00960ba109e3e6e4805562c36c6571842ea3baeda860c71ffcbd50 diff --git a/dev-python/django-debug-toolbar/django-debug-toolbar-4.1.ebuild b/dev-python/django-debug-toolbar/django-debug-toolbar-4.1.ebuild deleted file mode 100644 index c0dd9669bc94..000000000000 --- a/dev-python/django-debug-toolbar/django-debug-toolbar-4.1.ebuild +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=hatchling -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) - -inherit distutils-r1 - -DESCRIPTION="A configurable set of panels that display various debug information" -HOMEPAGE=" - https://github.com/jazzband/django-debug-toolbar/ - https://pypi.org/project/django-debug-toolbar/ -" -# no tests in sdist, as of 4.0.0 -SRC_URI=" - https://github.com/jazzband/django-debug-toolbar/archive/${PV}.tar.gz - -> ${P}.gh.tar.gz -" -IUSE="test" -RESTRICT="!test? ( test )" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND=" - dev-python/django[${PYTHON_USEDEP}] -" - -BDEPEND=" - test? ( - dev-python/html5lib[${PYTHON_USEDEP}] - ) -" - -python_test() { - "${EPYTHON}" -m django test -v 2 --settings tests.settings \ - || die "Tests failed with ${EPYTHON}" -} 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 index 8e5fcc386837..ace9ae9f7eac 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 @@ -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) |
