dev-python/django-debug-toolbar: add 4.3.0

Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
Alarig Le Lay 2024-09-13 22:54:24 +02:00
parent 42040f1e4f
commit b685fb7408
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC
4 changed files with 37 additions and 109 deletions

View file

@ -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

View file

@ -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
}

View file

@ -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
}

View file

@ -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}"
}