1 |
commit: 220ea6de926edca2673a378b941f7b5e6883bf6e |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 11 02:13:44 2020 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 11 02:14:41 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=220ea6de |
7 |
|
8 |
dev-python/astroid-2.3.3-r2: revbump, don't lock wrapt dep |
9 |
|
10 |
Package-Manager: Portage-2.3.93, Repoman-2.3.20 |
11 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
12 |
|
13 |
dev-python/astroid/astroid-2.3.3-r2.ebuild | 56 ++++++++++++++++++++++++++++++ |
14 |
1 file changed, 56 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/astroid/astroid-2.3.3-r2.ebuild b/dev-python/astroid/astroid-2.3.3-r2.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..528031d8ee8 |
19 |
--- /dev/null |
20 |
+++ b/dev-python/astroid/astroid-2.3.3-r2.ebuild |
21 |
@@ -0,0 +1,56 @@ |
22 |
+# Copyright 1999-2020 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="Abstract Syntax Tree for logilab packages" |
32 |
+HOMEPAGE="https://github.com/PyCQA/astroid https://pypi.org/project/astroid/" |
33 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="LGPL-2.1" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
38 |
+IUSE="test" |
39 |
+RESTRICT="!test? ( test )" |
40 |
+ |
41 |
+# Version specified in __pkginfo__.py. |
42 |
+RDEPEND=" |
43 |
+ dev-python/lazy-object-proxy[${PYTHON_USEDEP}] |
44 |
+ dev-python/six[${PYTHON_USEDEP}] |
45 |
+ >=dev-python/wrapt-1.11.2[${PYTHON_USEDEP}] |
46 |
+ >=dev-python/typed-ast-1.3.0[${PYTHON_USEDEP}]" |
47 |
+DEPEND=" |
48 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
49 |
+ test? ( |
50 |
+ ${RDEPEND} |
51 |
+ dev-python/nose[${PYTHON_USEDEP}] |
52 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
53 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
54 |
+ dev-python/python-dateutil[${PYTHON_USEDEP}] |
55 |
+ )" |
56 |
+ |
57 |
+PATCHES=( |
58 |
+ "${FILESDIR}/${PN}-2.3.3-no-pytest-runner.patch" |
59 |
+) |
60 |
+ |
61 |
+python_prepare_all() { |
62 |
+ # Disable failing tests |
63 |
+ |
64 |
+ # no idea why this test fails |
65 |
+ sed -i -e "s/test_knownValues_get_builtin_module_part/_&/" \ |
66 |
+ astroid/tests/unittest_modutils.py || die |
67 |
+ |
68 |
+ sed -r -e 's:"wrapt(~|=)=.+":"wrapt":' \ |
69 |
+ -i astroid/__pkginfo__.py || die |
70 |
+ |
71 |
+ distutils-r1_python_prepare_all |
72 |
+} |
73 |
+ |
74 |
+python_test() { |
75 |
+ "${EPYTHON}" -m pytest -v --pyargs astroid/tests \ |
76 |
+ || die "tests failed with ${EPYTHON}" |
77 |
+} |