dev-python/astroid: Sync with gentoo

It's from gentoo commit 62d39cbf818717f9d7ae4ceba0ad8ee17ff4749f.
This commit is contained in:
Krzesimir Nowak 2021-11-18 14:48:54 +01:00
parent d2b9a84628
commit e75eb385b1
12 changed files with 292 additions and 180 deletions

View File

@ -1,11 +1,6 @@
DIST astroid-1.3.8.tar.gz 155302 SHA256 3971c35c675dc7acfceb636eb1758b7df9fc3ad75b5f81ca89f57ccf51719442 SHA512 316d3a6a12d95b3bebe7ffe47de840cbff96f357c7c324f6684bb713bca191cfaf87fe226c3c1145049611a2035890bdf11845bf923f7d0087a0d1e565d5d5c5 WHIRLPOOL 456ebef20c278047ae0e85fb1386f63eb7c13dda295ddace9704df5255b5004887f6f5201097b2337cc678a9891f33aa5628cbf7acc01c4eb9ff3dc3c091408a DIST astroid-2.5.6.tar.gz 345014 BLAKE2B 13916663aef712449a842e50b74ecd2e1b82817e1c128fdf9a4d5779d391deab7f806300cb6597b29920222ff041b13eb985aa395dff024af6fee628a84f883f SHA512 3d10d0f92c4b4c2d7d5e0035f23ae554b512f34ddd55b4c1c4032b328643dfe60cb4aa675a3824423fcd12baea7961847435f1894a47fafa99802f3e17a5605f
DIST astroid-1.4.8.tar.gz 184091 SHA256 5f064785a7e45ed519285f2eb30b795e58a4932a0736b32030da6fef3394ddb3 SHA512 54bb20edf5518b417470a2d63210802b267fe727f9d30e1ac5000db00a7894739b1c4249468fb55df81b55d382f3a5bbe019876141f7ee4d94040fd699dc0c2c WHIRLPOOL 1d1d4ea2c14057a42023d776cc65e50c965f20cc0b37ad62fbf77446a8bba07669b5a3aae92c9987c232e9a639fe330d0a0dd05980c030a531dbda3040de0c48 DIST astroid-2.5.7.tar.gz 352082 BLAKE2B ca52339422da3a35cbe34e4b216dbfed3979dce96a8d5fcc508083c0ef9509c491e78dcfea281b79b07fcb7289a9f40aade0da21ca38b6abcf7025b84909a4fd SHA512 17fc185752510396fda9cce842df8ba72473e469b61c037195a9d6ff72af3ec8d3df01bdcf61d6059d4f90c95278928eba3e3380048bf5c6b4fa2a3c9b267176
DIST astroid-1.4.9.tar.gz 189315 SHA256 a483e7891ce3a06dadfc6cb9095b0938aca58940d43576d72e4502b480c085d7 SHA512 9091afbeffeae3f10a5f4b0dfb476ed5515661744508dde159bb3faa4af032c6359f4544cc3766a6613974f7725e6f8e28bad45bc68e3282764def019a233303 WHIRLPOOL 296973dbbf853766e424a5bd5f5ac7a1eae29f2e4d28efe75eeb4751e4265038c425f20fb186a5038c53b33c862a6610605af673706e0c62e871450b33872b00 DIST astroid-2.5.8.tar.gz 354281 BLAKE2B 70ee47c26b765ba9f9bd40cf120a9ce13709043738e20a08d201cdb899789c6c6bdc604aaab49c78b2888503b46321a1728cce656f39d70ce6877ac088cb9567 SHA512 ab2f413e399810e98bd61c837ac90674e7c6d8e2f4d32f3141b21bf1360c785831fc4afd347e755c97627a04cb482aa4e455897e1c02eec8c5fcd28c54c1e9fc
DIST astroid-1.5.2.tar.gz 240007 SHA256 271f1c9ad6519a5dde2a7f0c9b62c2923b55e16569bdd888f9f9055cc5be37ed SHA512 e8e4facc34f7a5ca1128961c3134d3adb0e59437aa38ef567bfe777b94215fedc32ae524135c6d376a3bc648c851d59315f4caadac684d7576e582e5d9e3b2fe WHIRLPOOL 084cfcd38379df10193bcf32ddb2b70737a10f058847f02c9b26bb6971d32bba2a031bb2f26a09fc52748bca84f525381c56168edc03220d9fba588c7213d111 DIST astroid-2.6.0.tar.gz 358265 BLAKE2B 77db092a9f4368f296a710235bd9d022638c97e3439195f01e55b38ff9e7cbfd204906c353a515ee0bc12f75526866d783ad57aa5d5f69e672e9c1603e48f579 SHA512 44e0833e078948eb1ba1e62710890be8cfc675f7ee136578a39e2914b082fcfbcb90b90a002998471fcd19c4092b9a3c5f71e58af32d3839fa799bcb5bf4a4ba
EBUILD astroid-1.3.8.ebuild 1073 SHA256 8e7c791ed0ef139a4dd186bc6dcd7935848d4b5c61e3b380c3f790ad7b5f499b SHA512 149f2808e81d785545f3397f064e02af6bc0d94964f8de1ef241a9645ed539d1ad1593edbb13ea5b6c82c95ac7efe1ccde29cd3d36494fe9a750b267e25bdff1 WHIRLPOOL 411b996f18f2a767cff5ee5e0d1bb0c97381753c5de1d20bea8f86fdba0033407a7d4d98b0f53898f3f6ff05bb627c3c6a82d3f17ca27daaf3ec347ffd96d5b9 DIST astroid-2.6.1.tar.gz 360231 BLAKE2B 4f162f4a32741f36f97df93e1204a0cf9b4ff1d3203a9d0cd48da25e45ac3fcca642123e14e014da24418fa7b137b8bb863f6a4118b32193880e3994f63adca9 SHA512 2efa670edbb2317160c468465541a8a2e78b2fe09939f4d6da5f89516bbe121e347e883aac833aa14a70f20c98d889a414730db0ab836d84a78c91feb8d0ae5a
EBUILD astroid-1.4.8.ebuild 1096 SHA256 b8c794daca57d5cca556b3a2e01cab3091c90cc1f59a41e76817edd18aefe36e SHA512 149b74ed93283dd9ace74311b313e93ad200e08c5056135c69da7117770361e7f0d958d309c482e8ef580665d4fc4c0ca41113deaabdd119c1df33904ce471b4 WHIRLPOOL 08e290df2c6e8ac72d531c6bcb4e88da31a46b592000e6ab0c4523045591279f001edc00e873f5f4bd536d6fec91b082732308e5755405c93d417b61e322e761 DIST astroid-2.6.2.tar.gz 360787 BLAKE2B a2744b9ada601b731989f17ec75aa94d88825693a4ccf349374b8795b0db3879aa5bffe838df68759ff3296cd8af9cd45524e7d894a363f54055f3f1fa01e92e SHA512 776f8f9a12d425b7f048318b632dedb8894b6a3051a0607d1079437084aab4e9593e39cf9c7e01c2dd722364d2396cf13d7d26cc2acf33482d75584c458d4b89
EBUILD astroid-1.4.9.ebuild 1220 SHA256 7e3be670c8327129e1b48026340324f787e1cddad54909cf0424de7f8a1812fc SHA512 db99782868dfac9a4af91f5dfef17091f7e9a1c42ce1f2495f2a3ca1bf0b6f1bba0b82ea0c70d97e2d6d29bf54f1198c31158f4b47f1ba0a95d0978aab5c9539 WHIRLPOOL 5162dd410c532fb66cf3ffcd44ce1a9fd56071d7189d2547231e7bedc793e52c9c2a41225a0f04c60a41ddcc56f03bbbc170556d22bb51621fe84ae3b134b4f3
EBUILD astroid-1.5.2.ebuild 1515 SHA256 18d80d7de8b3bf7847cff229a2e26b6a1e3b888e2e730c8275caa3e085a81409 SHA512 2ae9c523d39c27f4e3273b60eb3bcd9ee9a83f68821cf2c9a14d2c9429786c67436565081b69d4dc61aa5f00b355de27ef1839e5b8601338e43dd6590ee7e6f5 WHIRLPOOL 84e68afd5ea7e7a875a0ac938afdaae37bfd7a4e57b27250f9078a7c8da4e15098e9773cb003a099858e6ac2bd38828763ebeed5a588038d9a8359fc69db6ba9
MISC ChangeLog 5322 SHA256 224f6635132e7361368d7d0cbe2a1f609380cacfba270a5e63f3c60408d7e7a1 SHA512 05c3e717a7c2b4112dbaccba612241c69b7518aa665a62ecfce236bf3d55019725ed75e2f12a954b288efb48edb9ec37dd5e9fc4d32f9819b4b68529e497d9da WHIRLPOOL e10f839dc4d6637f1bb97b00be3d47dc10b2e454d6233cc38e0443503d0ab8aaeeda12fffaf2d3f39d123abedc3694e3de5a6e0a0de401b6d465f9ce8b843e9b
MISC ChangeLog-2015 3582 SHA256 d8e592b7da34c554ea37ccdc2e231215bd0fc6859b6d415849c8cdbb157b8085 SHA512 1fad591458cbb1329badb577b4d71131a98ecc7a3481f15ac4e43a3520d85d85437badb8f9bab69609ef8fe3f10ade3b10c9cf503627c9c93e8b1c8cca7d74f8 WHIRLPOOL 038702ea2d918679e1c8c7b3ae6f3a3e03f33fa1e948edb0d9986627872e02b250e29c03735500f117c5ad40f68585b16db0a18a89ae12cd86fe3288c302f807
MISC metadata.xml 1122 SHA256 931dc9518f2fbb777ec424769d47977252b30453f11bf47faf8388e062a8f01d SHA512 34a45382d84c03057ba59b40905138c2e048da4d602e5a26dab4b156c1a3697369e11ef66f451f3f823ec827f3771eb58c077c056f9609e5b55a27841fd5bf9d WHIRLPOOL 60303c70b000289bced472310ab29a80980f9918a72b8919f704b0f04919e593e9d705123c11ca36f08995b77485a3696d10bc7cacdd926d13f9523c1e0d0668

View File

@ -1,39 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python2_7 python3_4 pypy )
inherit distutils-r1
DESCRIPTION="Abstract Syntax Tree for logilab packages"
HOMEPAGE="https://bitbucket.org/logilab/astroid https://pypi.python.org/pypi/astroid"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86 ~x64-macos ~x86-macos"
IUSE="test"
# Version specified in __pkginfo__.py.
RDEPEND="
>=dev-python/logilab-common-0.63.0[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]"
DEPEND="
app-arch/unzip
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
${RDEPEND}
>=dev-python/pylint-1.4.0[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
$(python_gen_cond_dep 'dev-python/egenix-mx-base[${PYTHON_USEDEP}]' python2_7)
)"
# Required for tests
DISTUTILS_IN_SOURCE_BUILD=1
python_test() {
pushd build/lib > /dev/null || die
PYTHONPATH=. pytest || die "Tests fail with ${EPYTHON}"
popd > /dev/null || die
}

View File

@ -1,41 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
inherit distutils-r1
DESCRIPTION="Abstract Syntax Tree for logilab packages"
HOMEPAGE="https://bitbucket.org/logilab/astroid https://pypi.python.org/pypi/astroid"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86 ~x64-macos ~x86-macos"
IUSE="test"
# still broken
RESTRICT=test
# Version specified in __pkginfo__.py.
RDEPEND="
dev-python/lazy-object-proxy[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
dev-python/wrapt[${PYTHON_USEDEP}]"
DEPEND="
app-arch/unzip
dev-python/setuptools[${PYTHON_USEDEP}]"
# test? (
# ${RDEPEND}
# >=dev-python/pylint-1.4.0[${PYTHON_USEDEP}]
# dev-python/pytest[${PYTHON_USEDEP}]
# $(python_gen_cond_dep 'dev-python/egenix-mx-base[${PYTHON_USEDEP}]' python2_7)
# )"
# Required for tests
DISTUTILS_IN_SOURCE_BUILD=1
python_test() {
${EPYTHON} -m unittest discover -p "unittest*.py" --verbose || die
}

View File

@ -1,40 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
inherit distutils-r1
DESCRIPTION="Abstract Syntax Tree for logilab packages"
HOMEPAGE="https://bitbucket.org/logilab/astroid https://pypi.python.org/pypi/astroid"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos ~x86-macos"
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}]"
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
${RDEPEND}
>=dev-python/pylint-1.5.0[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
virtual/python-singledispatch[${PYTHON_USEDEP}]
$(python_gen_cond_dep 'dev-python/functools32[${PYTHON_USEDEP}]' python2_7 )
$(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' python2_7 )
)"
# Required for tests
DISTUTILS_IN_SOURCE_BUILD=1
python_test() {
${EPYTHON} -m unittest discover -p "unittest*.py" --verbose || die
}

View File

@ -1,48 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
inherit distutils-r1
DESCRIPTION="Abstract Syntax Tree for logilab packages"
HOMEPAGE="https://bitbucket.org/logilab/astroid https://pypi.python.org/pypi/astroid"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~x86 ~x64-macos ~x86-macos"
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}]"
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
${RDEPEND}
dev-python/nose[${PYTHON_USEDEP}]
>=dev-python/pylint-1.6.0[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
virtual/python-singledispatch[${PYTHON_USEDEP}]
$(python_gen_cond_dep 'dev-python/backports-functools-lru-cache[${PYTHON_USEDEP}]' python2_7 )
$(python_gen_cond_dep 'dev-python/functools32[${PYTHON_USEDEP}]' python2_7 )
$(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' python2_7 )
)"
# Required for tests
DISTUTILS_IN_SOURCE_BUILD=1
python_prepare() {
# Disable failing test
sed -i -e "/test_namespace_package_pth_support/a\\ return" astroid/tests/unittest_manager.py || die
distutils-r1_python_prepare_all
}
python_test() {
${EPYTHON} -m unittest discover -p "unittest*.py" --verbose || die
}

View File

@ -0,0 +1,47 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
inherit distutils-r1
DESCRIPTION="Abstract Syntax Tree for logilab packages"
HOMEPAGE="
https://github.com/PyCQA/astroid/
https://pypi.org/project/astroid/"
SRC_URI="
https://github.com/PyCQA/astroid/archive/${P}.tar.gz"
S=${WORKDIR}/${PN}-${P}
LICENSE="LGPL-2.1+"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ppc ppc64 sparc x86"
# Version specified in __pkginfo__.py.
RDEPEND="
>=dev-python/lazy-object-proxy-1.4.0[${PYTHON_USEDEP}]
>=dev-python/wrapt-1.11.2[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
>=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}]
' python3_7)"
BDEPEND="
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
)"
distutils_enable_tests pytest
python_test() {
local deselect=(
# no clue why it's broken
tests/unittest_modutils.py::GetModulePartTest::test_knownValues_get_builtin_module_part
)
# Faker causes sys.path_importer_cache keys to be overwritten
# with PosixPaths
epytest -p no:faker ${deselect[@]/#/--deselect }
}

View File

@ -0,0 +1,51 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..10} )
inherit distutils-r1
DESCRIPTION="Abstract Syntax Tree for logilab packages"
HOMEPAGE="
https://github.com/PyCQA/astroid/
https://pypi.org/project/astroid/"
SRC_URI="
https://github.com/PyCQA/astroid/archive/v${PV}.tar.gz
-> ${P}.tar.gz"
LICENSE="LGPL-2.1+"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
# Version specified in __pkginfo__.py.
RDEPEND="
>=dev-python/lazy-object-proxy-1.4.0[${PYTHON_USEDEP}]
>=dev-python/wrapt-1.11.2[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
>=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}]
>=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}]
' python3_7)"
BDEPEND="
dev-python/setuptools_scm[${PYTHON_USEDEP}]
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
)"
distutils_enable_tests pytest
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
python_test() {
local deselect=(
# no clue why it's broken
tests/unittest_modutils.py::GetModulePartTest::test_knownValues_get_builtin_module_part
)
# Faker causes sys.path_importer_cache keys to be overwritten
# with PosixPaths
epytest -p no:faker ${deselect[@]/#/--deselect }
}

View File

@ -0,0 +1,47 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="Abstract Syntax Tree for logilab packages"
HOMEPAGE="
https://github.com/PyCQA/astroid/
https://pypi.org/project/astroid/"
SRC_URI="
https://github.com/PyCQA/astroid/archive/v${PV}.tar.gz
-> ${P}.tar.gz"
LICENSE="LGPL-2.1+"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ppc ppc64 sparc x86"
# Version specified in __pkginfo__.py.
RDEPEND="
>=dev-python/lazy-object-proxy-1.4.0[${PYTHON_USEDEP}]
>=dev-python/wrapt-1.11.2[${PYTHON_USEDEP}]"
BDEPEND="
dev-python/setuptools_scm[${PYTHON_USEDEP}]
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
)"
distutils_enable_tests pytest
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
python_test() {
local deselect=(
# no clue why it's broken
tests/unittest_modutils.py::GetModulePartTest::test_knownValues_get_builtin_module_part
)
# Faker causes sys.path_importer_cache keys to be overwritten
# with PosixPaths
epytest -p no:faker ${deselect[@]/#/--deselect }
}

View File

@ -0,0 +1,47 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="Abstract Syntax Tree for logilab packages"
HOMEPAGE="
https://github.com/PyCQA/astroid/
https://pypi.org/project/astroid/"
SRC_URI="
https://github.com/PyCQA/astroid/archive/v${PV}.tar.gz
-> ${P}.tar.gz"
LICENSE="LGPL-2.1+"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
# Version specified in __pkginfo__.py.
RDEPEND="
>=dev-python/lazy-object-proxy-1.4.0[${PYTHON_USEDEP}]
>=dev-python/wrapt-1.11.2[${PYTHON_USEDEP}]"
BDEPEND="
dev-python/setuptools_scm[${PYTHON_USEDEP}]
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
)"
distutils_enable_tests pytest
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
python_test() {
local deselect=(
# no clue why it's broken
tests/unittest_modutils.py::GetModulePartTest::test_known_values_get_builtin_module_part
)
# Faker causes sys.path_importer_cache keys to be overwritten
# with PosixPaths
epytest -p no:faker ${deselect[@]/#/--deselect }
}

View File

@ -0,0 +1,46 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="Abstract Syntax Tree for logilab packages"
HOMEPAGE="
https://github.com/PyCQA/astroid/
https://pypi.org/project/astroid/"
SRC_URI="
https://github.com/PyCQA/astroid/archive/v${PV}.tar.gz
-> ${P}.tar.gz"
LICENSE="LGPL-2.1+"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
# Version specified in __pkginfo__.py.
RDEPEND="
>=dev-python/lazy-object-proxy-1.4.0[${PYTHON_USEDEP}]
>=dev-python/wrapt-1.11.2[${PYTHON_USEDEP}]"
BDEPEND="
dev-python/setuptools_scm[${PYTHON_USEDEP}]
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
)"
distutils_enable_tests pytest
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
python_test() {
local deselect=(
# no clue why it's broken
tests/unittest_modutils.py::GetModulePartTest::test_known_values_get_builtin_module_part
)
# Faker causes sys.path_importer_cache keys to be overwritten
# with PosixPaths
epytest -p no:faker ${deselect[@]/#/--deselect }
}

View File

@ -0,0 +1,46 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="Abstract Syntax Tree for logilab packages"
HOMEPAGE="
https://github.com/PyCQA/astroid/
https://pypi.org/project/astroid/"
SRC_URI="
https://github.com/PyCQA/astroid/archive/v${PV}.tar.gz
-> ${P}.tar.gz"
LICENSE="LGPL-2.1+"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
# Version specified in __pkginfo__.py.
RDEPEND="
>=dev-python/lazy-object-proxy-1.4.0[${PYTHON_USEDEP}]
>=dev-python/wrapt-1.11.2[${PYTHON_USEDEP}]"
BDEPEND="
dev-python/setuptools_scm[${PYTHON_USEDEP}]
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
)"
distutils_enable_tests pytest
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
python_test() {
local deselect=(
# no clue why it's broken
tests/unittest_modutils.py::GetModulePartTest::test_known_values_get_builtin_module_part
)
# Faker causes sys.path_importer_cache keys to be overwritten
# with PosixPaths
epytest -p no:faker ${deselect[@]/#/--deselect }
}

View File

@ -16,8 +16,9 @@
attributes for different usages. They include some support for static attributes for different usages. They include some support for static
inference and local name scopes. Furthermore, astng builds partial inference and local name scopes. Furthermore, astng builds partial
trees by inspecting living objects.</longdescription> trees by inspecting living objects.</longdescription>
<stabilize-allarches/>
<upstream> <upstream>
<remote-id type="pypi">astroid</remote-id> <remote-id type="pypi">astroid</remote-id>
<remote-id type="bitbucket">logilab/astroid</remote-id> <remote-id type="github">PyCQA/astroid</remote-id>
</upstream> </upstream>
</pkgmetadata> </pkgmetadata>