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/astroid/
Date: Tue, 06 Sep 2022 17:54:44
Message-Id: 1662486866.52da1101ec63e0c219febaac6feb27f79a94b65a.arthurzam@gentoo
1 commit: 52da1101ec63e0c219febaac6feb27f79a94b65a
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 6 16:36:14 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 6 17:54:26 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52da1101
7
8 dev-python/astroid: add 2.12.8
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/astroid/Manifest | 1 +
13 dev-python/astroid/astroid-2.12.8.ebuild | 59 ++++++++++++++++++++++++++++++++
14 2 files changed, 60 insertions(+)
15
16 diff --git a/dev-python/astroid/Manifest b/dev-python/astroid/Manifest
17 index 378db8a1911b..5980da730fda 100644
18 --- a/dev-python/astroid/Manifest
19 +++ b/dev-python/astroid/Manifest
20 @@ -3,3 +3,4 @@ DIST astroid-2.12.2.gh.tar.gz 430857 BLAKE2B 8b34366368718cd4329298bdff3b761cab5
21 DIST astroid-2.12.3.gh.tar.gz 432731 BLAKE2B 276537b9a97bfbba2177538c6546a8e55fd1a144dde2fc2104460b0867d5439433e10be58bdac4f7da17a22e61c9484045ee979b8de11dcb485b9979a50f1e30 SHA512 5927c54d2ae000a96615a7b81f83b39bd8ce4b15e6652b494d18cf085ed455fb9e59b9c0c35ba8de7e2ea12c036e06ceb741dacdf882158cfd7e9ed3750dad88
22 DIST astroid-2.12.4.gh.tar.gz 432812 BLAKE2B 1efd0af2b8695411aba0c1db21c464c742058c662d14b2a338c577f41f13c582f24dd5445ee2e2aa51f63096ce086d601750b2894280fb9f054f734165755dff SHA512 55a585dad9fcd319845fc2b16536867a5c0552b7f3a87b5ac40cc069a43a25a1de2862ec6cd2b6cd8e9dbd78efd508995152012399722056949ce460c23f57a0
23 DIST astroid-2.12.5.gh.tar.gz 433354 BLAKE2B dfe643ebe77200664bd630c1c5795809c8bca5ff0ad01d9361b6df302c33ab42529f33148649fada34ed6dc768c63f49c2eb2abc771ff0e13404146bee5e0fa6 SHA512 4bae868e21ef4751fd195b2990ffb3c9781e51654e9f327ee5bc220b53d553fb13744a2d683e30f1cb929ce1ec4cfd31382a4a42e867dd7a75a118202ccf377b
24 +DIST astroid-2.12.8.gh.tar.gz 434545 BLAKE2B 3ad3ff1a7e1a0c9433387b4167041adcc405e9b6d0fc0a850073960db9e7458d0b6989e3a0f78679ba4730f1da2fe9d35de3f984d2c79532d9f96c2a726b1f0e SHA512 76052caaef27f983751e3abfb44c38ad497a4d2d659521ee55c99080c9cacea90cf3603d6468b01cc9b127cd8318157faae56bb151c6449145c70545719c6c51
25
26 diff --git a/dev-python/astroid/astroid-2.12.8.ebuild b/dev-python/astroid/astroid-2.12.8.ebuild
27 new file mode 100644
28 index 000000000000..de2148b20e43
29 --- /dev/null
30 +++ b/dev-python/astroid/astroid-2.12.8.ebuild
31 @@ -0,0 +1,59 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +DISTUTILS_USE_PEP517=setuptools
38 +PYTHON_COMPAT=( python3_{8..11} )
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="Abstract Syntax Tree for logilab packages"
43 +HOMEPAGE="
44 + https://github.com/PyCQA/astroid/
45 + https://pypi.org/project/astroid/"
46 +SRC_URI="
47 + https://github.com/PyCQA/astroid/archive/v${PV}.tar.gz
48 + -> ${P}.gh.tar.gz
49 +"
50 +
51 +LICENSE="LGPL-2.1+"
52 +SLOT="0"
53 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
54 +
55 +# Version specified in pyproject.toml
56 +RDEPEND="
57 + >=dev-python/lazy-object-proxy-1.4.0[${PYTHON_USEDEP}]
58 + dev-python/setuptools[${PYTHON_USEDEP}]
59 + >=dev-python/typing-extensions-3.10[${PYTHON_USEDEP}]
60 + <dev-python/wrapt-2[${PYTHON_USEDEP}]
61 +"
62 +BDEPEND="
63 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
64 + test? (
65 + dev-python/numpy[${PYTHON_USEDEP}]
66 + dev-python/python-dateutil[${PYTHON_USEDEP}]
67 + )
68 +"
69 +
70 +distutils_enable_tests pytest
71 +
72 +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
73 +
74 +python_test() {
75 + local EPYTEST_DESELECT=(
76 + # no clue why it's broken
77 + tests/unittest_modutils.py::GetModulePartTest::test_known_values_get_builtin_module_part
78 + tests/unittest_brain_dataclasses.py::test_pydantic_field
79 + tests/unittest_brain.py::SixBrainTest::test_from_imports
80 + tests/unittest_regrtest.py::NonRegressionTests::test_numpy_distutils
81 + # some problem with warnings (our options?)
82 + tests/unittest_decorators.py::TestDeprecationDecorators::test_deprecated_default_argument_values_one_arg
83 + tests/unittest_decorators.py::TestDeprecationDecorators::test_deprecated_default_argument_values_two_args
84 + tests/unittest_scoped_nodes.py::test_deprecation_of_doc_attribute
85 + )
86 +
87 + # Faker causes sys.path_importer_cache keys to be overwritten
88 + # with PosixPaths
89 + epytest -p no:faker
90 +}