dev-python/astroid: add 3.0.1

Closes: #2564
Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
Andreas Billmeier 2023-12-30 20:28:44 +01:00
parent 2e516b61e0
commit 069611cd0a
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
4 changed files with 67 additions and 11 deletions

View File

@ -612,12 +612,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 1572 Ebuilds in total, 1561 of them have in total 1578 (42 different) licenses assigned.
There are 1575 Ebuilds in total, 1564 of them have in total 1581 (42 different) licenses assigned.
|License| Ebuilds using it|
|-------|-----|
|MIT|904|
|Apache-2.0|333|
|Apache-2.0|335|
|GPL-3|100|
|BSD|87|
|LGPL-3|22|
@ -629,10 +629,10 @@ There are 1572 Ebuilds in total, 1561 of them have in total 1578 (42 different)
|Unlicense|9|
|ISC|5|
|MPL-2.0|5|
|LGPL-2.1+|4|
|LGPL-2.1|4|
|EPL-1.0|4|
|ZPL|3|
|LGPL-2.1+|3|
|PSF-2|3|
|AGPL-3+|2|
|LGPL-2+|2|
@ -659,9 +659,9 @@ There are 1572 Ebuilds in total, 1561 of them have in total 1578 (42 different)
|GPL-2+|1|
|GPL-2-with-linking-exception|1|
(Last counted: 29/12/2023)
(Last counted: 30/12/2023)
I did my best to keep these clean. If a valid license was published on PyPI, it has been automatically merged. Otherwise I took it from GitHub or alternatively from comments/files in the source. Sometimes these differed and have been not unique. All license strings are adjusted to the list in `/usr/portage/gentoo/licenses/`. Some packages do not have any license published. In this case, Authors have been asked for clarification, some did not respond. Following the [official Gentoo Guide](https://devmanual.gentoo.org/general-concepts/licenses/index.html), these then were added with an `all-rights-reserved` license and `RESTRICT="mirror"` was set. Find the appropriate licenses referenced in the Ebuild files and in the corresponding homepages or sources.
A big thanks goes to Iris for reviewing this README.
Last updated: 29/12/2023
Last updated: 30/12/2023

View File

@ -1,3 +1,5 @@
DIST astroid-2.15.7.gh.tar.gz 462906 BLAKE2B 7a984f9f7c67c2956958b23ee2ca94c1f86284d8a50aaedbe10b9dca887802189cba21f19ee66b394f347f415d61946aaff52e4d0448271edba77b6bd958fa0e SHA512 716665744915d8a635ac124f03ffe6f7aee6bde6d98c238551ea1c6468595d6c327bb2d5605f66e7ba6294ec1b79c85b861034acba8a4584095ba38e24f82ae9
DIST astroid-3.0.1.gh.tar.gz 461593 BLAKE2B de3458bcd9ba111020132e89b6e2fdf18b81b82cba68c986e84af91c910e6c70e7d13ff024b7947f3fa08e2491ba211a77a35421b3d5cd184b94e6a833c0da42 SHA512 2c8a4cf22959aef1eb9510430bcc55d00fcda76d022575786c9a59c093fe4196b67c0b9401f9226595a4cbf1fb9444bdfbb9ac2d83c115ec1d7d46cb7dd75dbd
EBUILD astroid-2.15.7.ebuild 1821 BLAKE2B 65bebcfa30ffa1bb5a6908abc17660782fde50559b4e03a617d0ace377f89e317fe818b790043ea530398c0874478b139f8584ba4f9ab46a337f653f0f483914 SHA512 875263821e73284cdb7f444aa1c1dcabe096d65241cf40236456157c1da7fe9190b03a6ce5ca9bfd294becf504872a52143833f6d301ee8ef2566bc78a2dd918
MISC metadata.xml 527 BLAKE2B c0cbbfe8dcf2241098521b9898ea8ab864b81d7dde74a799b5f429d4cd57518cf9726b1e3a53083a95a2dbf3fcbef831edf38f5510b26b23e16d92e3bf1ce5a8 SHA512 1be7fac7562fccdf2a63b5d590fed379b665d9348c11a20fa22212989368a59dbb93345e66792299b7b421c10b6d8190a1963e3acb8913116e5192a4acba9008
EBUILD astroid-3.0.1.ebuild 1451 BLAKE2B 7e606691877a47fd3ee64c22626d3c62566357ba2ecf350dc73088616a9e758a9464e52ebe81fc333494d9e9801833373d9438a2b4d515eed12336c26ecd4ad5 SHA512 8d8909b99eed607f353e4c7081c987fc5d95602883d9656cdbe585d316f786c3e7cd3ae2905cb772a9aa73e29176c4ace1b9cb3032f34352ea20d0c7d853bf1a
MISC metadata.xml 386 BLAKE2B 0fdb35ff12eee31b0eec240328dad835b4119b00c4be0fd3924b7b0053c7cd139f39ab33efcbc9cc0bd5db237ee886003f19aeeda389a1ae7344da6ab5ad8156 SHA512 53748a52d3aa42d8d48c3543eeda99bd13c08e8d2569f712a1af0de686c1a153c7c2850baed61f987d6ec838b3f63be8a9553d9b85b900790c9103cc908539c0

View File

@ -0,0 +1,58 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
DESCRIPTION="Abstract Syntax Tree for logilab packages"
HOMEPAGE="
https://github.com/pylint-dev/astroid/
https://pypi.org/project/astroid/
"
SRC_URI="
https://github.com/pylint-dev/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="
$(python_gen_cond_dep '
>=dev-python/typing-extensions-4.0.0[${PYTHON_USEDEP}]
' 3.10)
"
BDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]
test? (
dev-python/attrs[${PYTHON_USEDEP}]
>=dev-python/numpy-1.17.0[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
dev-python/regex[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
python_test() {
local EPYTEST_DESELECT=(
# no clue why they're broken
tests/test_modutils.py::GetModulePartTest::test_known_values_get_builtin_module_part
tests/test_regrtest.py::NonRegressionTests::test_numpy_distutils
# pydantic-2?
tests/brain/test_dataclasses.py::test_pydantic_field
# requires urllib3 with bundled six (skipped with urllib3>=2)
tests/test_modutils.py::test_file_info_from_modpath__SixMetaPathImporter
)
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest
}

View File

@ -7,10 +7,6 @@
</maintainer>
<upstream>
<remote-id type="pypi">astroid</remote-id>
<remote-id type="github">PyCQA/astroid</remote-id>
<maintainer status="unknown">
<email>code-quality@python.org</email>
<name>Python Code Quality Authority</name>
</maintainer>
<remote-id type="github">pylint-dev/astroid</remote-id>
</upstream>
</pkgmetadata>