From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8498A15800D for ; Sat, 8 Jul 2023 14:46:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6CB43E085B; Sat, 8 Jul 2023 14:46:29 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 50B4FE085B for ; Sat, 8 Jul 2023 14:46:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 27593340AB6 for ; Sat, 8 Jul 2023 14:46:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 41B95A9C for ; Sat, 8 Jul 2023 14:46:26 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1688827129.f0ad29bc4d8bfcda9e83b231d7aa714a2f9a3d6b.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/django-sortedm2m/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/django-sortedm2m/django-sortedm2m-3.1.1-r1.ebuild X-VCS-Directories: dev-python/django-sortedm2m/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: f0ad29bc4d8bfcda9e83b231d7aa714a2f9a3d6b X-VCS-Branch: master Date: Sat, 8 Jul 2023 14:46:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 61448124-b510-4485-ae43-c4b84b1f2924 X-Archives-Hash: 1e9f53c31b95c9965acdaa7511343d5c commit: f0ad29bc4d8bfcda9e83b231d7aa714a2f9a3d6b Author: Michał Górny gentoo org> AuthorDate: Sat Jul 8 14:38:49 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Jul 8 14:38:49 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0ad29bc dev-python/django-sortedm2m: PEP517 Closes: https://bugs.gentoo.org/909914 Signed-off-by: Michał Górny gentoo.org> .../django-sortedm2m-3.1.1-r1.ebuild | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/dev-python/django-sortedm2m/django-sortedm2m-3.1.1-r1.ebuild b/dev-python/django-sortedm2m/django-sortedm2m-3.1.1-r1.ebuild new file mode 100644 index 000000000000..13fb9a284421 --- /dev/null +++ b/dev-python/django-sortedm2m/django-sortedm2m-3.1.1-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..11} ) + +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} + 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}" +}