From a189c60f94abb9a4a6b73c3a35beaa2c5c1298e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 14 Apr 2026 04:23:04 +0200 Subject: [PATCH] dev-python/django-tables2: Bump to 3.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/django-tables2/Manifest | 1 + .../django-tables2-3.0.0.ebuild | 49 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 dev-python/django-tables2/django-tables2-3.0.0.ebuild diff --git a/dev-python/django-tables2/Manifest b/dev-python/django-tables2/Manifest index 2371f30f5ad48..44098af4ceb39 100644 --- a/dev-python/django-tables2/Manifest +++ b/dev-python/django-tables2/Manifest @@ -1 +1,2 @@ DIST django-tables2-2.9.0.gh.tar.gz 433751 BLAKE2B f0c134da1dde3c6eaf73bf4b6cd08e73b53126051c5ba7e341b4b1c5be0799ca3c497ad10ebd465e8b9e319fa55bec96a892e94362ef67765a329d515158e40c SHA512 760fdc5a7892e435e214d99f0563a905ac2360dbd718f5966746666f9722a8428e6f328c04fef98193fb28d7f8964267e1030f9a7509f4050d41c4a76a7366c7 +DIST django-tables2-3.0.0.gh.tar.gz 433992 BLAKE2B 7826832cc0bbd060a0732f5dfb32b1be92a9acec5eff324ea9b0b0dc501dd9be0683aaf479624978aaba3301272f5236274f3ab19bbf6f3e6cf8f665a8f21210 SHA512 ae1687dbc0d13f5dda7ce9cf949eab937c96506eed742f7a6966d9bc52abef54174c12df9847b15e110feb4ffe330fd14f85c0f809a026321d1b3a0d43a0a9d1 diff --git a/dev-python/django-tables2/django-tables2-3.0.0.ebuild b/dev-python/django-tables2/django-tables2-3.0.0.ebuild new file mode 100644 index 0000000000000..fdc19a78efe8a --- /dev/null +++ b/dev-python/django-tables2/django-tables2-3.0.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{12..14} ) + +inherit distutils-r1 + +DESCRIPTION="Table/data-grid framework for Django" +HOMEPAGE=" + https://pypi.org/project/django-tables2/ + https://github.com/jieter/django-tables2/ +" +SRC_URI=" + https://github.com/jieter/django-tables2/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/django-4.2[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + ${RDEPEND} + dev-python/django-filter[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/psycopg:*[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + ) +" + +src_prepare() { + # these tests require tablib + rm tests/test_export.py tests/test_templatetags.py || die + + distutils-r1_src_prepare +} + +python_test() { + "${EPYTHON}" manage.py test -v 2 tests || die +}