From b685fb740854b088a5dab716f91871d46150a20d Mon Sep 17 00:00:00 2001 From: Alarig Le Lay Date: Fri, 13 Sep 2024 22:54:24 +0200 Subject: [PATCH] dev-python/django-debug-toolbar: add 4.3.0 Signed-off-by: Alarig Le Lay --- dev-python/django-debug-toolbar/Manifest | 3 +- .../django-debug-toolbar-3.2.2.ebuild | 55 ------------------- .../django-debug-toolbar-3.4.ebuild | 52 ------------------ .../django-debug-toolbar-4.3.0.ebuild | 36 ++++++++++++ 4 files changed, 37 insertions(+), 109 deletions(-) delete mode 100644 dev-python/django-debug-toolbar/django-debug-toolbar-3.2.2.ebuild delete mode 100644 dev-python/django-debug-toolbar/django-debug-toolbar-3.4.ebuild create mode 100644 dev-python/django-debug-toolbar/django-debug-toolbar-4.3.0.ebuild diff --git a/dev-python/django-debug-toolbar/Manifest b/dev-python/django-debug-toolbar/Manifest index 71f4929..663b6eb 100644 --- a/dev-python/django-debug-toolbar/Manifest +++ b/dev-python/django-debug-toolbar/Manifest @@ -1,2 +1 @@ -DIST django-debug-toolbar-3.2.2.tar.gz 239313 BLAKE2B 0e53709a3857cefc0ff7a7176ca248891122b2d758264c32171198a22b0c105af414eaba0095b1435b4f071120038f4665bd84438d77a8f65156c056d523f60f SHA512 df1956d63e88d3cf9f831609b6191446a162afbf396cb6d20e5a42aab4276ab385943cc305cad58a9f388382b0dffabc8baedf2150182a4302e7da58ab3d6a5c -DIST django-debug-toolbar-3.4.tar.gz 259964 BLAKE2B 3cd33e0cb7db9afca41961df6b3c7623c1ab698e5751a55a8e12b5339d95af9e44892465a81cdfb822054899a11430d371081243a48c09caf47e764c31243712 SHA512 c6ecc0e1304cc0f3db60670518dc9b0631606a786a2ea71db940dfc641865214c9d2b9a8f302232a4664663f1745996351f3ac9b3b5928a6323779bdb3dcc11e +DIST django_debug_toolbar-4.3.0.tar.gz 261173 BLAKE2B d5332d205be3a08826ac8b1bf1cb1ed8cd06b66cd5efb203a4290c9e75aab96c822d46c93830182cf6bd6fe2b867e14d5a82d52f6f72aebeaa9aa8ff1bc4e558 SHA512 48e06187289fc92216e5d7c0a77f88ce2fd105eef5ae2bc8dd0d398929c86a9fe021ea1f88f03083174f846f7e43cd07353e1175694733bfa0d55e4aa612c7f3 diff --git a/dev-python/django-debug-toolbar/django-debug-toolbar-3.2.2.ebuild b/dev-python/django-debug-toolbar/django-debug-toolbar-3.2.2.ebuild deleted file mode 100644 index d24d5ae..0000000 --- a/dev-python/django-debug-toolbar/django-debug-toolbar-3.2.2.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{9..11} ) - -inherit distutils-r1 - -DESCRIPTION="A configurable set of panels that display debug information" -HOMEPAGE=" - https://pypi.org/project/django-debug-toolbar/ - https://github.com/jazzband/django-debug-toolbar/" -SRC_URI="https://github.com/jazzband/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -SLOT="0" -LICENSE="BSD" -KEYWORDS="~amd64 ~x86" -IUSE="doc examples test" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-python/django[${PYTHON_USEDEP}] - dev-python/sqlparse[${PYTHON_USEDEP}] - dev-python/jinja[${PYTHON_USEDEP}] -" -DEPEND=" - test? ( - $(python_gen_impl_dep sqlite) - ${RDEPEND} - ) -" - -distutils_enable_sphinx docs - -python_prepare_all() { - # This prevents distutils from installing 'tests' package, rm magic no more needed - sed -e "/find_packages/s:'tests':'tests.\*', 'tests':" -i setup.py || die - - distutils-r1_python_prepare_all -} - -python_test() { - emake test -} - -python_install_all() { - if use examples; then - docinto examples - dodoc -r example/. - docompress -x /usr/share/doc/${PF}/examples - fi - - distutils-r1_python_install_all -} diff --git a/dev-python/django-debug-toolbar/django-debug-toolbar-3.4.ebuild b/dev-python/django-debug-toolbar/django-debug-toolbar-3.4.ebuild deleted file mode 100644 index 1d724aa..0000000 --- a/dev-python/django-debug-toolbar/django-debug-toolbar-3.4.ebuild +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} ) - -inherit distutils-r1 - -DESCRIPTION="A configurable set of panels that display debug information" -HOMEPAGE=" - https://pypi.org/project/django-debug-toolbar/ - https://github.com/jazzband/django-debug-toolbar/ -" -SRC_URI=" - https://github.com/jazzband/django-debug-toolbar/archive/${PV}.tar.gz - -> ${P}.tar.gz -" - -SLOT="0" -LICENSE="BSD" -KEYWORDS="~amd64 ~x86" -IUSE="doc examples test" -RESTRICT="!test? ( test )" - -RDEPEND=" - >=dev-python/django-3.3[${PYTHON_USEDEP}] - >=dev-python/sqlparse-0.2.0[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - $(python_gen_impl_dep sqlite) - ${RDEPEND} - ) -" - -distutils_enable_sphinx docs - -python_test() { - emake TEST_ARGS='-v 2 tests' test -} - -python_install_all() { - if use examples; then - docinto examples - dodoc -r example/. - docompress -x /usr/share/doc/${PF}/examples - fi - - distutils-r1_python_install_all -} diff --git a/dev-python/django-debug-toolbar/django-debug-toolbar-4.3.0.ebuild b/dev-python/django-debug-toolbar/django-debug-toolbar-4.3.0.ebuild new file mode 100644 index 0000000..4093cf1 --- /dev/null +++ b/dev-python/django-debug-toolbar/django-debug-toolbar-4.3.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 pypi + +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/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +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}" +}