diff options
| author | Wang Mingyu <wangmy@fujitsu.com> | 2022-03-09 18:44:00 +0800 |
|---|---|---|
| committer | Trevor Gamblin <trevor.gamblin@windriver.com> | 2022-03-10 10:03:29 -0500 |
| commit | 4700abe43824ad50c9731e60f5ea9357ac5606f7 (patch) | |
| tree | d6804c1fa3a83fc99f727738032acbdc205d2276 /meta-python/recipes-devtools/python/python3-astroid_2.10.0.bb | |
| parent | da657e3ebac4b8e8bc134710be08f1c43a38d39c (diff) | |
| download | meta-openembedded-4700abe43824ad50c9731e60f5ea9357ac5606f7.tar.gz | |
python3-astroid: upgrade 2.9.3 -> 2.10.0
Changelog:
=========
* Fixed inference of "self" in binary operations in which "self"
is part of a list or tuple.
* Fixed builtin inference on `property` calls not calling the `postinit` of the new node, which
resulted in instance arguments missing on these nodes.
* Fixed a crash on "Super.getattr" when the attribute was previously uninferable due to a cache
limit size. This limit can be hit when the inheritance pattern of a class (and therefore of the
"__init__" attribute) is very large.
* Inlcude names of keyword-only arguments in "astroid.scoped_nodes.Lambda.argnames".
* Fixed a crash inferring on a "NewType" named with an f-string.
* Add support for [attrs v21.3.0](https://github.com/python-attrs/attrs/releases/tag/21.3.0) which
added a new `attrs` module alongside the existing `attr`.
* Use the "end_lineno" attribute for the "NodeNG.tolineno" property
when it is available.
* Add "is_dataclass" attribute to "ClassDef" nodes.
* Use "sysconfig" instead of "distutils" to determine the location of
python stdlib files and packages.
* Fixed crash with recursion error for inference of class attributes that referenced
the class itself.
* Fixed crash when trying to infer "items()" on the "__dict__"
attribute of an imported module.
* Add optional "NodeNG.position" attribute.
Used for block nodes to highlight position of keyword(s) and name
in cases where the AST doesn't provide good enough positional information.
E.g. "nodes.ClassDef", "nodes.FunctionDef".
* Fix "ClassDef.fromlineno". For Python < 3.8 the "lineno" attribute includes decorators.
"fromlineno" should return the line of the "class" statement itself.
* Performance improvements. Only run expensive decorator functions when
non-default Deprecation warnings are enabled, eg. during a Pytest run.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-astroid_2.10.0.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-astroid_2.10.0.bb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-astroid_2.10.0.bb b/meta-python/recipes-devtools/python/python3-astroid_2.10.0.bb new file mode 100644 index 0000000000..fc23f17c6b --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-astroid_2.10.0.bb | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | SUMMARY = "An abstract syntax tree for Python with inference support." | ||
| 2 | HOMEPAGE = "https://pypi.python.org/pypi/astroid" | ||
| 3 | SECTION = "devel/python" | ||
| 4 | LICENSE = "LGPL-2.1-only" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=a70cf540abf41acb644ac3b621b2fad1" | ||
| 6 | |||
| 7 | SRC_URI[sha256sum] = "f616b9687a5f4afa673dfd2d684d2b6f38365c8ad7c6f27229dda1ede750c445" | ||
| 8 | |||
| 9 | inherit pypi setuptools3 | ||
| 10 | |||
| 11 | DEPENDS += "${PYTHON_PN}-pytest-runner-native" | ||
| 12 | |||
| 13 | PACKAGES =+ "${PN}-tests" | ||
| 14 | |||
| 15 | FILES:${PN}-tests += " \ | ||
| 16 | ${PYTHON_SITEPACKAGES_DIR}/astroid/test* \ | ||
| 17 | ${PYTHON_SITEPACKAGES_DIR}/astroid/__pycache__/test* \ | ||
| 18 | " | ||
| 19 | |||
| 20 | RDEPENDS:${PN}:class-target += "\ | ||
| 21 | ${PYTHON_PN}-distutils \ | ||
| 22 | ${PYTHON_PN}-lazy-object-proxy \ | ||
| 23 | ${PYTHON_PN}-logging \ | ||
| 24 | ${PYTHON_PN}-six \ | ||
| 25 | ${PYTHON_PN}-wrapt \ | ||
| 26 | ${PYTHON_PN}-setuptools \ | ||
| 27 | " | ||
| 28 | |||
| 29 | RDEPENDS:${PN}-tests:class-target += "\ | ||
| 30 | ${PYTHON_PN}-unittest \ | ||
| 31 | ${PYTHON_PN}-xml \ | ||
| 32 | " | ||
