Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/diskcache/
Date: Mon, 14 Jun 2021 10:36:37
Message-Id: 1623666983.18615d3901d6e081821414c20966fc843dd2412d.mgorny@gentoo
1 commit: 18615d3901d6e081821414c20966fc843dd2412d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 14 10:20:18 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 14 10:36:23 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18615d39
7
8 dev-python/diskcache: Enable py3.10, skip django tests
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/diskcache/diskcache-5.2.1-r1.ebuild | 42 ++++++++++++++++++++++++++
13 1 file changed, 42 insertions(+)
14
15 diff --git a/dev-python/diskcache/diskcache-5.2.1-r1.ebuild b/dev-python/diskcache/diskcache-5.2.1-r1.ebuild
16 new file mode 100644
17 index 00000000000..362a97886af
18 --- /dev/null
19 +++ b/dev-python/diskcache/diskcache-5.2.1-r1.ebuild
20 @@ -0,0 +1,42 @@
21 +# Copyright 1999-2021 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=7
25 +
26 +PYTHON_COMPAT=( python3_{8..10} )
27 +PYTHON_REQ_USE="sqlite"
28 +
29 +inherit distutils-r1
30 +
31 +HOMEPAGE="http://www.grantjenks.com/docs/diskcache/
32 + https://github.com/grantjenks/python-diskcache/"
33 +DESCRIPTION="Disk and file backed cache"
34 +SRC_URI="
35 + https://github.com/grantjenks/python-diskcache/archive/v${PV}.tar.gz
36 + -> ${P}.gh.tar.gz"
37 +S=${WORKDIR}/python-diskcache-${PV}
38 +
39 +LICENSE="Apache-2.0"
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc64 ~x86 ~amd64-linux ~x86-linux"
42 +
43 +distutils_enable_sphinx docs
44 +distutils_enable_tests pytest
45 +
46 +src_prepare() {
47 + # remove dep on pytest-xdist and pytest-cov
48 + sed -i -e '/-n auto/d' -e '/--cov/d' tox.ini || die
49 +
50 + distutils-r1_src_prepare
51 +}
52 +
53 +python_test() {
54 + local ignore=(
55 + # django tests don't work with django-3.2, and django-3.1
56 + # doesn't work with py3.10
57 + tests/test_djangocache.py
58 + tests/test_doctest.py
59 + README.rst
60 + )
61 + epytest ${ignore[@]/#/--ignore }
62 +}