bump astroid-2.3.1

This commit is contained in:
Andreas Billmeier 2019-10-07 21:29:00 +02:00
parent 2979803793
commit becc4fca2a
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
4 changed files with 90 additions and 0 deletions

View File

@ -0,0 +1,4 @@
AUX astroid-2.1.0-no-pytest-runner.patch 474 BLAKE2B fde7f34aa9e1feefb29bf0a993bdd451523ccfa30bcd8726d36c4b159d849536445599f8f794e6cac71e71ff6b68e8cd3af4d3d5ad1ecdf9936977ec92e29536 SHA512 9c8ff2d8b2ae67620fe38d9f454c77216c2291a7f2aa59d9c78abd5a76f72aabd8154b12055aacbbabdc10fc466f57e09ed5527f796df8e6a5a15bfefaa4f0f0
DIST astroid-2.3.1.tar.gz 297020 BLAKE2B f94a72ee0037a8675a1a4f7bb5ffd038e9acd430292ebe4041d8f484f3c1ac1ec61ce2dcf131351fed1e3e0057986aa970ae1fdf3f3684af650a68d67821a1e0 SHA512 771c68013c791a2e55a40f4463148a6e317583d55397b8bb57d74cb27869f5a188b2a54258010ee441567a461aaa6d62f0ef0266543b64bb4104bbe15e0951f8
EBUILD astroid-2.3.1.ebuild 1289 BLAKE2B 8c70bab22faa7f9afffa3b804443370d6c013d233d025c3edf6f9576914be093c3fbe91277df30c79bfb6b438eec94f434eece515029dd4347e7e72ac8a66f0b SHA512 265d1104e022fdd9a04bc3edf76577890a89a63543d0b805af7cbafffd4fcec7dcf9e1c2f10f8f7b89b5428be2584c6d5fc2bf73edcd90a6768a0c7ba8458539
MISC metadata.xml 1122 BLAKE2B 29f5f5eb980aa5e9035316854d7b69a803bf8507cd8f2b97880ef3a0be3e200936ddc3679e480741cf82203b704cd6c7b1610d31e9173dc3f8b97ebec6a6c844 SHA512 34a45382d84c03057ba59b40905138c2e048da4d602e5a26dab4b156c1a3697369e11ef66f451f3f823ec827f3771eb58c077c056f9609e5b55a27841fd5bf9d

View File

@ -0,0 +1,51 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{5,6,7} )
inherit distutils-r1
DESCRIPTION="Abstract Syntax Tree for logilab packages"
HOMEPAGE="https://github.com/PyCQA/astroid https://pypi.org/project/astroid/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="test"
# Version specified in __pkginfo__.py.
RDEPEND="
dev-python/lazy-object-proxy[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
dev-python/wrapt[${PYTHON_USEDEP}]
>=dev-python/typed-ast-1.3.0[${PYTHON_USEDEP}]"
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
${RDEPEND}
dev-python/nose[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
)"
PATCHES=(
"${FILESDIR}/${PN}-2.1.0-no-pytest-runner.patch"
)
python_prepare_all() {
# Disable failing tests
# no idea why this test fails
sed -i -e "s/test_knownValues_get_builtin_module_part/_&/" \
astroid/tests/unittest_modutils.py || die
distutils-r1_python_prepare_all
}
python_test() {
${EPYTHON} -m pytest -v --pyarg astroid/tests || die "tests failed"
}

View File

@ -0,0 +1,12 @@
diff --git a/setup.py b/setup.py
index 2ad90aac..4628a40f 100644
--- a/setup.py
+++ b/setup.py
@@ -42,7 +42,6 @@ def install():
install_requires = install_requires,
extras_require=extras_require,
packages=find_packages(exclude=['astroid.tests']) + ['astroid.brain'],
- setup_requires=['pytest-runner'],
test_suite='test',
tests_require=['pytest'],
)

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
<longdescription lang="en">The aim of this module is to provide a common base representation of
python source code for projects such as pychecker, pyreverse,
pylint... Well, actually the development of this library is
essentially governed by pylint's needs.
It provides a compatible representation which comes from the _ast
module. It rebuilds the tree generated by the builtin _ast module by
recursively walking down the AST and building an extended ast (let's
call it astng ;). The new node classes have additional methods and
attributes for different usages. They include some support for static
inference and local name scopes. Furthermore, astng builds partial
trees by inspecting living objects.</longdescription>
<upstream>
<remote-id type="pypi">astroid</remote-id>
<remote-id type="bitbucket">logilab/astroid</remote-id>
</upstream>
</pkgmetadata>