1 |
commit: 8ccffd1c6c6b7b4cbb50c3895700cb34670705a4 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 22 04:31:55 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 22 04:46:34 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ccffd1c |
7 |
|
8 |
dev-python/jellyfish: Bump to 0.8.2 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/jellyfish/Manifest | 1 + |
13 |
dev-python/jellyfish/jellyfish-0.8.2.ebuild | 39 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 40 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/jellyfish/Manifest b/dev-python/jellyfish/Manifest |
17 |
index 0d51365934c..2dcc19337b2 100644 |
18 |
--- a/dev-python/jellyfish/Manifest |
19 |
+++ b/dev-python/jellyfish/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST jellyfish-0.7.2.tar.gz 133320 BLAKE2B 094610c79e8c7f1caa94ff6c8f6936c3ff26c8d8ab8a7605c145e8293d1ebc28f5d057a603f7d8392811aea5d31a87ecb3e3d9eb682e2fd8a3222f23fbc7c3f7 SHA512 5fa19826a3adb16dea26855d733bd3e8ccce0c68652249f7bcc06f9b5d5ac36919152301c9afafdfca9877cef6614dccbe8e46a51ab41c1fed493374929c3367 |
22 |
+DIST jellyfish-0.8.2.tar.gz 134200 BLAKE2B f765047414e4c1de4588d51598583c49767dde07fe2b94cdb40674bf90f4af8b5b3fa59d0ddf1e0bae3793e531426ccc941dde3fbdaa25839dd13da8b19386c4 SHA512 c4cc2b22df37497ed1ee595f03ec10b7ffe6b8441accaea77ca1b6018df07d23bbe9f2ed72d0c3e06792d6e1229b7e56f77f1758396d83120236d018ce2328da |
23 |
|
24 |
diff --git a/dev-python/jellyfish/jellyfish-0.8.2.ebuild b/dev-python/jellyfish/jellyfish-0.8.2.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..f013a652a02 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/jellyfish/jellyfish-0.8.2.ebuild |
29 |
@@ -0,0 +1,39 @@ |
30 |
+# Copyright 1999-2020 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
36 |
+inherit distutils-r1 |
37 |
+ |
38 |
+DESCRIPTION="Python module for doing approximate and phonetic matching of strings" |
39 |
+HOMEPAGE="https://github.com/jamesturk/jellyfish https://pypi.org/project/jellyfish/" |
40 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="BSD-2" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~x86" |
45 |
+IUSE="doc test" |
46 |
+RESTRICT="!test? ( test )" |
47 |
+ |
48 |
+DEPEND=" |
49 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
50 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
51 |
+ test? ( |
52 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
53 |
+ dev-python/unicodecsv[${PYTHON_USEDEP}] |
54 |
+ ) |
55 |
+" |
56 |
+ |
57 |
+python_compile_all() { |
58 |
+ if use doc; then |
59 |
+ esetup.py build_sphinx |
60 |
+ HTML_DOCS=( build/sphinx/html/. ) |
61 |
+ fi |
62 |
+} |
63 |
+ |
64 |
+python_test() { |
65 |
+ cp -r testdata "${BUILD_DIR}" || die |
66 |
+ cd "${BUILD_DIR}" || die |
67 |
+ pytest -vv lib/jellyfish/test.py || die "tests failed with ${EPYTHON}" |
68 |
+} |