re-add astroid-2.12.5 (from main)

This commit is contained in:
Andreas Billmeier 2022-09-27 20:44:47 +02:00 committed by Andreas Billmeier
parent 4728fb5915
commit 5732d1b27e
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
4 changed files with 81 additions and 4 deletions

View File

@ -523,12 +523,12 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
## Licenses
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
There are 1902 Ebuilds in total, 1895 of them have in total 1907 (35 different) licenses assigned.
There are 1907 Ebuilds in total, 1900 of them have in total 1912 (35 different) licenses assigned.
|License| Ebuilds using it|
|-------|-----|
|MIT|1147|
|Apache-2.0|361|
|MIT|1148|
|Apache-2.0|364|
|GPL-3|118|
|BSD|104|
|LGPL-3|29|
@ -540,10 +540,10 @@ There are 1902 Ebuilds in total, 1895 of them have in total 1907 (35 different)
|LGPL-2.1|8|
|Unlicense|7|
|EPL-1.0|5|
|LGPL-2.1+|4|
|public-domain|4|
|LGPL-2+|3|
|BSD-4|3|
|LGPL-2.1+|3|
|PSF-2|3|
|GPL-2+|3|
|AGPL-3+|2|

View File

@ -0,0 +1,3 @@
DIST astroid-2.12.5.gh.tar.gz 433354 BLAKE2B dfe643ebe77200664bd630c1c5795809c8bca5ff0ad01d9361b6df302c33ab42529f33148649fada34ed6dc768c63f49c2eb2abc771ff0e13404146bee5e0fa6 SHA512 4bae868e21ef4751fd195b2990ffb3c9781e51654e9f327ee5bc220b53d553fb13744a2d683e30f1cb929ce1ec4cfd31382a4a42e867dd7a75a118202ccf377b
EBUILD astroid-2.12.5.ebuild 1749 BLAKE2B c9b9f57c235b08e5cdc9faf9abfb7d06d5142f29e80664259d28fadf24099b82b8f613d047eda1d0ae52950fe20ae5ae175d299433691ce690c53e831d9b9134 SHA512 64d8e3450e476421dffb16e6548e69b52fba7f2d4b71e55b0de802b128619ece619641b3b3a668352584337f17a358ce26debb37ed083063d5a38fa28ad5ed28
MISC metadata.xml 472 BLAKE2B 64b88b0e00e0b9ae10a1b9110de7eb0eaded28a6d00505292abeb89440ef07f84a229b6f8f94fc9f89c7bd62546613f3042da0def268389fe55c9d2f5cc82950 SHA512 99f7fec98db8bee85cca201d7ad45d7fec1bf25d1c8fcb9e6dc854c4eb94b3ba6ebd10515efa4ab65ac8b372453c41e07ead1325698d5681379f46099adf9347

View File

@ -0,0 +1,59 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{8..11} )
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}.gh.tar.gz
"
LICENSE="LGPL-2.1+"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
# Version specified in pyproject.toml
RDEPEND="
>=dev-python/lazy-object-proxy-1.4.0[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]
>=dev-python/typing-extensions-3.10[${PYTHON_USEDEP}]
<dev-python/wrapt-2[${PYTHON_USEDEP}]
"
BDEPEND="
dev-python/setuptools_scm[${PYTHON_USEDEP}]
test? (
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
python_test() {
local EPYTEST_DESELECT=(
# no clue why it's broken
tests/unittest_modutils.py::GetModulePartTest::test_known_values_get_builtin_module_part
tests/unittest_brain_dataclasses.py::test_pydantic_field
tests/unittest_brain.py::SixBrainTest::test_from_imports
tests/unittest_regrtest.py::NonRegressionTests::test_numpy_distutils
# some problem with warnings (our options?)
tests/unittest_decorators.py::TestDeprecationDecorators::test_deprecated_default_argument_values_one_arg
tests/unittest_decorators.py::TestDeprecationDecorators::test_deprecated_default_argument_values_two_args
tests/unittest_scoped_nodes.py::test_deprecation_of_doc_attribute
)
# Faker causes sys.path_importer_cache keys to be overwritten
# with PosixPaths
epytest -p no:faker
}

View File

@ -0,0 +1,15 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>b@edevau.net</email>
<name>Andreas Billmeier</name>
</maintainer>
<upstream>
<remote-id type="pypi">astroid</remote-id>
<maintainer status="unknown">
<email>code-quality@python.org</email>
<name>Python Code Quality Authority</name>
</maintainer>
</upstream>
</pkgmetadata>