Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/textdistance/
Date: Thu, 16 Sep 2021 06:34:46
Message-Id: 1631774067.8264e1b109f5c80c7f6f408033b16ab2a2845906.arthurzam@gentoo
1 commit: 8264e1b109f5c80c7f6f408033b16ab2a2845906
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 16 06:34:16 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 16 06:34:27 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8264e1b1
7
8 dev-python/textdistance: enable py3.10, small cleanup
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/textdistance/textdistance-4.2.1-r1.ebuild | 19 +++++--------------
13 1 file changed, 5 insertions(+), 14 deletions(-)
14
15 diff --git a/dev-python/textdistance/textdistance-4.2.1-r1.ebuild b/dev-python/textdistance/textdistance-4.2.1-r1.ebuild
16 index 9466d5a900d..aea07b6f2fd 100644
17 --- a/dev-python/textdistance/textdistance-4.2.1-r1.ebuild
18 +++ b/dev-python/textdistance/textdistance-4.2.1-r1.ebuild
19 @@ -3,13 +3,13 @@
20
21 EAPI=7
22
23 -PYTHON_COMPAT=( python3_{7,8,9} )
24 -
25 +PYTHON_COMPAT=( python3_{8..10} )
26 inherit distutils-r1
27
28 DESCRIPTION="Compute distance between the two texts"
29 HOMEPAGE="https://github.com/life4/textdistance"
30 SRC_URI="https://github.com/life4/textdistance/archive/v.${PV}.tar.gz -> ${P}.tar.gz"
31 +S="${WORKDIR}/${PN}-v.${PV}"
32
33 LICENSE="MIT"
34 SLOT="0"
35 @@ -25,17 +25,8 @@ BDEPEND="test? (
36 dev-python/pyxDamerauLevenshtein[${PYTHON_USEDEP}]
37 )"
38
39 -S="${WORKDIR}/${PN}-v.${PV}"
40 -
41 distutils_enable_tests --install pytest
42
43 -python_prepare_all() {
44 - # RuntimeError: cannot import distance.hamming
45 - # these optional things are missing at the moment
46 - sed -i -e 's:test_compare:_&:' \
47 - -e 's:test_qval:_&:' \
48 - -e 's:test_list_of_numbers:_&:' \
49 - tests/test_external.py || die
50 -
51 - distutils-r1_python_prepare_all
52 -}
53 +EPYTEST_DESELECT=(
54 + tests/test_external.py
55 +)