1 |
commit: 46df7470cf4d086f542e76844f895832806d824f |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 26 04:27:55 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 26 04:28:47 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46df7470 |
7 |
|
8 |
Revert "dev-python/astroid: drop 2.6.6" |
9 |
|
10 |
This reverts commit 3155ed2b1a255baeaa11255934ce0c959b3dcef5. |
11 |
|
12 |
Needed by dev-python/python-lsp-server. |
13 |
|
14 |
Bug: https://bugs.gentoo.org/814854 |
15 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
16 |
|
17 |
dev-python/astroid/Manifest | 1 + |
18 |
dev-python/astroid/astroid-2.6.6.ebuild | 48 +++++++++++++++++++++++++++++++++ |
19 |
2 files changed, 49 insertions(+) |
20 |
|
21 |
diff --git a/dev-python/astroid/Manifest b/dev-python/astroid/Manifest |
22 |
index 82d1c86c3c3..c254b32d1c9 100644 |
23 |
--- a/dev-python/astroid/Manifest |
24 |
+++ b/dev-python/astroid/Manifest |
25 |
@@ -1,2 +1,3 @@ |
26 |
+DIST astroid-2.6.6.tar.gz 368118 BLAKE2B c5117566579ee6c8ccf973e180b3de3cd3896110221627cfa16d17fbeb049954d4452d3f55ab4161751a9eb7892fbd49090eb8e82c5a90f5985ec13a9f5d1fdd SHA512 a077c291b90f52d353d27b8e6aee2ffca1d69bf0e1e7185c32f3959853d9f2957f411975e5bf66f27d73b66cce6bd1e55529de6b7d0a17dea5399edf3a404825 |
27 |
DIST astroid-2.7.3.tar.gz 378876 BLAKE2B 016ab6e798f1a608c0e0ce0bd81865145349c70497d09e336ec8b21eaf01ea365c204f42daf6d55d148f6873ef15e223adc9baf4a09dc8945158e4b5e24f1ebb SHA512 03a886c2daef640cf0a85f38e39b6e12080dc722862cb03386d1355f3f955ea46a7bb7b85c2887f52ba6d0ecb6243c653c7f1cd44d6c7429f2cd29c1dfd2297f |
28 |
DIST astroid-2.8.0.tar.gz 384821 BLAKE2B 74150d67fd883b2bd4356c49c9c1b148a5e98b4d219405e745474c536691276d029bf8a0bb9275ab9df3d09a9b3492a147c67676ab1f80c9c7d3ad10f240bec4 SHA512 0f14f094a6dc753f0171b462f856fb1bfb1b979a8853f76da14beb04a5b02662f6b4e63c3241ce2c9a37f63490a86300152cbe9509c43e0209d5ef536d693b08 |
29 |
|
30 |
diff --git a/dev-python/astroid/astroid-2.6.6.ebuild b/dev-python/astroid/astroid-2.6.6.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..5cf0a2860c2 |
33 |
--- /dev/null |
34 |
+++ b/dev-python/astroid/astroid-2.6.6.ebuild |
35 |
@@ -0,0 +1,48 @@ |
36 |
+# Copyright 1999-2021 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=8 |
40 |
+ |
41 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
42 |
+PYTHON_COMPAT=( python3_{8..10} ) |
43 |
+ |
44 |
+inherit distutils-r1 |
45 |
+ |
46 |
+DESCRIPTION="Abstract Syntax Tree for logilab packages" |
47 |
+HOMEPAGE=" |
48 |
+ https://github.com/PyCQA/astroid/ |
49 |
+ https://pypi.org/project/astroid/" |
50 |
+SRC_URI=" |
51 |
+ https://github.com/PyCQA/astroid/archive/v${PV}.tar.gz |
52 |
+ -> ${P}.tar.gz" |
53 |
+ |
54 |
+LICENSE="LGPL-2.1+" |
55 |
+SLOT="0" |
56 |
+KEYWORDS="~alpha amd64 arm arm64 ~ia64 ppc ppc64 ~riscv sparc x86" |
57 |
+ |
58 |
+# Version specified in __pkginfo__.py. |
59 |
+RDEPEND=" |
60 |
+ >=dev-python/lazy-object-proxy-1.4.0[${PYTHON_USEDEP}] |
61 |
+ >=dev-python/wrapt-1.11.2[${PYTHON_USEDEP}]" |
62 |
+BDEPEND=" |
63 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}] |
64 |
+ test? ( |
65 |
+ dev-python/nose[${PYTHON_USEDEP}] |
66 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
67 |
+ dev-python/python-dateutil[${PYTHON_USEDEP}] |
68 |
+ )" |
69 |
+ |
70 |
+distutils_enable_tests pytest |
71 |
+ |
72 |
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} |
73 |
+ |
74 |
+python_test() { |
75 |
+ local deselect=( |
76 |
+ # no clue why it's broken |
77 |
+ tests/unittest_modutils.py::GetModulePartTest::test_known_values_get_builtin_module_part |
78 |
+ ) |
79 |
+ |
80 |
+ # Faker causes sys.path_importer_cache keys to be overwritten |
81 |
+ # with PosixPaths |
82 |
+ epytest -p no:faker ${deselect[@]/#/--deselect } |
83 |
+} |