summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-07-23 08:06:23 +0200
committerMichał Górny <mgorny@gentoo.org>2020-07-23 12:00:19 +0200
commitc505d4a2bfb6828ba89030e9e8b08f1b0bb46ef7 (patch)
tree67581c8a5da484102fa1c0deca0593a171da9636 /dev-python/django-sortedm2m
parentdev-python/pytest-forked: Remove RDEP on pytest (diff)
downloadgentoo-c505d4a2bfb6828ba89030e9e8b08f1b0bb46ef7.tar.gz
gentoo-c505d4a2bfb6828ba89030e9e8b08f1b0bb46ef7.tar.bz2
gentoo-c505d4a2bfb6828ba89030e9e8b08f1b0bb46ef7.zip
dev-python/django-sortedm2m: Bump to 3.0.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/django-sortedm2m')
-rw-r--r--dev-python/django-sortedm2m/Manifest1
-rw-r--r--dev-python/django-sortedm2m/django-sortedm2m-3.0.1.ebuild34
2 files changed, 35 insertions, 0 deletions
diff --git a/dev-python/django-sortedm2m/Manifest b/dev-python/django-sortedm2m/Manifest
index c0d32f2d2392..21fe41bf36d0 100644
--- a/dev-python/django-sortedm2m/Manifest
+++ b/dev-python/django-sortedm2m/Manifest
@@ -1 +1,2 @@
DIST django-sortedm2m-2.0.0.gh.tar.gz 44491 BLAKE2B f6fb1e8678a47881a52fa8dc65bd16b97871c9a711f6dd604c3293b6f77f943f3fc797c3dcebc43db7c6982d8bae8dbfbf7ae6d7904bd17309d6bd0a833083e3 SHA512 207abbe3ca9b46a26a8a6cea278c87a72990577afeaced347aa9c020a15fd8a384491f2c027d811ee96633cdafd23e2ab841b4cc90d88119415a71cf4860bb96
+DIST django-sortedm2m-3.0.1.gh.tar.gz 44262 BLAKE2B 0cfa2babf252423b23db4085a30536960727a71e7e01d740b8d433cf446fead039101d461a839cdbd861b23963897387dbf57ff4027a8956263a04f1f66d6368 SHA512 532c4c3260d52d1cc8052d7253f26c1783329ab8dc031542539fbce0d3e9ca08c91db60f3065ea9047fd8d2c2ac77a27ab8983d6fd4203cae512bfcb6ce877b0
diff --git a/dev-python/django-sortedm2m/django-sortedm2m-3.0.1.ebuild b/dev-python/django-sortedm2m/django-sortedm2m-3.0.1.ebuild
new file mode 100644
index 000000000000..1c4c012dae9b
--- /dev/null
+++ b/dev-python/django-sortedm2m/django-sortedm2m-3.0.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6..9} )
+
+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"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+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}
+ django-admin test -v 2 --settings=settings --noinput sortedm2m_tests ||
+ die "Tests fail with ${EPYTHON}"
+}