dev-python/django-sortedm2m: Bump to 4.0.0

Closes: https://bugs.gentoo.org/923002
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2024-08-12 04:24:25 +02:00
parent c9dc2cd9e1
commit 80888d4a00
2 changed files with 44 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST django-sortedm2m-3.1.1.gh.tar.gz 45888 BLAKE2B 878a23d5f5dad114b0b6ef9bd687d4e23620c823a8ad33a66b7c6c1e598db15e5328a46373dd6d7fd9449b4ba533e21664db716cde40150af2451a74f2f28fda SHA512 440c049a1fbe54c0db8edb0a5a737b5d84553afb7305d21a64c2dbac02f143e6f17e7e0499a4d3e687b13f292558d7818c030d78d8cc9443048a95ae6b50204f
DIST django-sortedm2m-4.0.0.gh.tar.gz 43476 BLAKE2B 07cec1cce786e64642ec2ed620e5db11c6f33efe701f9e2b2a1b5081ce91631d4e3524595729cd390fed4acce48eb07193a25a8d3ac1ff66d7895cccd84b3515 SHA512 90d407ca78d264b3b6262896cdb45de64a9d60f2a7a99e8daa0a62adf104d245e5bd142c9c7020f0cfeb17ebe5f311295f67e4b40ce78095d6b02bc3d480c77f

View File

@@ -0,0 +1,43 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1
DESCRIPTION="Drop-in replacement for django's many to many field with sorted relations"
HOMEPAGE="
https://pypi.org/project/django-sortedm2m/
https://github.com/jazzband/django-sortedm2m/
"
SRC_URI="
https://github.com/jazzband/django-sortedm2m/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-python/django[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
$(python_gen_impl_dep sqlite)
${RDEPEND}
)
"
python_test() {
local -x PYTHONPATH=test_project:${PYTHONPATH}
local -x DB_ENGINE=sqlite3
local -x DB_NAME=":memory:"
django-admin test -v 2 --settings=settings --noinput sortedm2m_tests ||
die "Tests fail with ${EPYTHON}"
}