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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0675D1382C5 for ; Mon, 14 Jun 2021 10:36:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3F8CCE0EDF; Mon, 14 Jun 2021 10:36:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1A06CE0EDF for ; Mon, 14 Jun 2021 10:36:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CC906335D76 for ; Mon, 14 Jun 2021 10:36:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 331EF796 for ; Mon, 14 Jun 2021 10:36:33 +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: <1623666983.18615d3901d6e081821414c20966fc843dd2412d.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/diskcache/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/diskcache/diskcache-5.2.1-r1.ebuild X-VCS-Directories: dev-python/diskcache/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 18615d3901d6e081821414c20966fc843dd2412d X-VCS-Branch: master Date: Mon, 14 Jun 2021 10:36:33 +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: 33a38d9a-1c82-4d63-8f97-988f14910f77 X-Archives-Hash: 4a0fee8a6e7a5c8ce1a253d8716db4f0 commit: 18615d3901d6e081821414c20966fc843dd2412d Author: Michał Górny gentoo org> AuthorDate: Mon Jun 14 10:20:18 2021 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon Jun 14 10:36:23 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18615d39 dev-python/diskcache: Enable py3.10, skip django tests Signed-off-by: Michał Górny gentoo.org> dev-python/diskcache/diskcache-5.2.1-r1.ebuild | 42 ++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/dev-python/diskcache/diskcache-5.2.1-r1.ebuild b/dev-python/diskcache/diskcache-5.2.1-r1.ebuild new file mode 100644 index 00000000000..362a97886af --- /dev/null +++ b/dev-python/diskcache/diskcache-5.2.1-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_REQ_USE="sqlite" + +inherit distutils-r1 + +HOMEPAGE="http://www.grantjenks.com/docs/diskcache/ + https://github.com/grantjenks/python-diskcache/" +DESCRIPTION="Disk and file backed cache" +SRC_URI=" + https://github.com/grantjenks/python-diskcache/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz" +S=${WORKDIR}/python-diskcache-${PV} + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc64 ~x86 ~amd64-linux ~x86-linux" + +distutils_enable_sphinx docs +distutils_enable_tests pytest + +src_prepare() { + # remove dep on pytest-xdist and pytest-cov + sed -i -e '/-n auto/d' -e '/--cov/d' tox.ini || die + + distutils-r1_src_prepare +} + +python_test() { + local ignore=( + # django tests don't work with django-3.2, and django-3.1 + # doesn't work with py3.10 + tests/test_djangocache.py + tests/test_doctest.py + README.rst + ) + epytest ${ignore[@]/#/--ignore } +}