commit: 6302726dcb462651759121a0399ca3bf21704646
Author: Zamarin Arthur <arthurzam <AT> gmail <DOT> com>
AuthorDate: Thu May 27 07:29:49 2021 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri May 28 14:19:29 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6302726d
dev-python/pylru: bump python 3.{9,10}, add tests
passes tests
Signed-off-by: Zamarin Arthur <arthurzam <AT> gmail.com>
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pylru/pylru-1.2.0.ebuild | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/dev-python/pylru/pylru-1.2.0.ebuild
b/dev-python/pylru/pylru-1.2.0.ebuild
index 73f3e86bb7f..f22b1b0e9eb 100644
--- a/dev-python/pylru/pylru-1.2.0.ebuild
+++ b/dev-python/pylru/pylru-1.2.0.ebuild
@@ -1,18 +1,20 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-PYTHON_COMPAT=( python3_{7,8} )
+PYTHON_COMPAT=( python3_{7..10} )
inherit distutils-r1
DESCRIPTION="A least recently used (LRU) cache for Python"
HOMEPAGE="https://github.com/jlhutch/pylru"
-LICENSE="GPL-2"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64"
-BDEPEND=""
-RDEPEND=""
+python_test() {
+ "${EPYTHON}" test.py || die "tests failed under ${EPYTHON}"
+}