From 814e66b81c9d8d76b894ca16af439c385e80b60d97b247f4e6500b2fbc9f3e07 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 27 Oct 2021 19:47:00 +0000 Subject: [PATCH] Accepting request 927778 from home:bnavigator:branches:devel:languages:python - Update to 2.8.4 * Fix the ``scope()`` and ``frame()`` methods of ``NamedExpr`` nodes. When these nodes occur in ``Arguments``, ``Keyword`` or ``Comprehension`` nodes these methods now correctly point to the outer-scope of the ``FunctionDef``, ``ClassDef``, or ``Comprehension``. * Fix the ``set_local`` function for ``NamedExpr`` nodes. When these nodes occur in ``Arguments``, ``Keyword``, or ``Comprehension`` nodes these nodes are now correctly added to the locals of the ``FunctionDef``, ``ClassDef``, or ``Comprehension``. - Release 2.8.3? * Add support for wrapt 1.13 * Fixes handling of nested partial functions * Fix regression with the import resolver * Fix crash with invalid dataclass field call - Release 2.8.1 * Adds support of type hints inside numpy's brains. * Enable inference of dataclass import from pydantic.dataclasses. This allows the dataclasses brain to recognize pydantic dataclasses. * Fix regression on ClassDef inference * Fix regression on Compare node inference * Extended attrs brain to support the provisional APIs * Astroid does not trigger it's own deprecation warning anymore. * Improve brain for ``typing.Callable`` and ``typing.Type``. * Fix bug with importing namespace packages with relative imports * The ``is_typing_guard`` and ``is_sys_guard`` functions are deprecated and will be removed in 3.0.0. They are complex meta-inference functions that are better suited for pylint. OBS-URL: https://build.opensuse.org/request/show/927778 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=65 --- astroid-2.8.0-gh.tar.gz | 3 --- astroid-2.8.4-gh.tar.gz | 3 +++ python-astroid.changes | 41 +++++++++++++++++++++++++++++++++++++++++ python-astroid.spec | 2 +- 4 files changed, 45 insertions(+), 4 deletions(-) delete mode 100644 astroid-2.8.0-gh.tar.gz create mode 100644 astroid-2.8.4-gh.tar.gz diff --git a/astroid-2.8.0-gh.tar.gz b/astroid-2.8.0-gh.tar.gz deleted file mode 100644 index 86ebf2b..0000000 --- a/astroid-2.8.0-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:20d69b874d2fd6ffd3f71c51ce67ba253f288342b803bda247da2595f0d0ed8f -size 384821 diff --git a/astroid-2.8.4-gh.tar.gz b/astroid-2.8.4-gh.tar.gz new file mode 100644 index 0000000..8a31268 --- /dev/null +++ b/astroid-2.8.4-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c8da13c416071acfb0153cf1dcd0b40f61cf54261075f88d5bc1f8a02407c54e +size 391667 diff --git a/python-astroid.changes b/python-astroid.changes index 01c9b58..bc22d74 100644 --- a/python-astroid.changes +++ b/python-astroid.changes @@ -1,3 +1,44 @@ +------------------------------------------------------------------- +Wed Oct 27 13:31:47 UTC 2021 - Ben Greiner + +- Update to 2.8.4 + * Fix the ``scope()`` and ``frame()`` methods of ``NamedExpr`` + nodes. When these nodes occur in ``Arguments``, ``Keyword`` or + ``Comprehension`` nodes these methods now correctly point to + the outer-scope of the ``FunctionDef``, ``ClassDef``, or + ``Comprehension``. + * Fix the ``set_local`` function for ``NamedExpr`` nodes. When + these nodes occur in ``Arguments``, ``Keyword``, or + ``Comprehension`` nodes these nodes are now correctly added to + the locals of the ``FunctionDef``, ``ClassDef``, or + ``Comprehension``. +- Release 2.8.3? + * Add support for wrapt 1.13 + * Fixes handling of nested partial functions + * Fix regression with the import resolver + * Fix crash with invalid dataclass field call +- Release 2.8.1 + * Adds support of type hints inside numpy's brains. + * Enable inference of dataclass import from pydantic.dataclasses. + This allows the dataclasses brain to recognize pydantic + dataclasses. + * Fix regression on ClassDef inference + * Fix regression on Compare node inference + * Extended attrs brain to support the provisional APIs + * Astroid does not trigger it's own deprecation warning anymore. + * Improve brain for ``typing.Callable`` and ``typing.Type``. + * Fix bug with importing namespace packages with relative imports + * The ``is_typing_guard`` and ``is_sys_guard`` functions are + deprecated and will be removed in 3.0.0. They are complex + meta-inference functions that are better suited for pylint. + Import them from ``pylint.checkers.utils`` instead (requires + pylint ``2.12``). + * Suppress the conditional between applied brains and dynamic + import authorized modules. (Revert the "The transforms related + to a module are applied only if this module has not been + explicitly authorized to be imported" of version 2.7.3) + * Adds a brain to infer the ``numpy.ma.masked_where`` function. + ------------------------------------------------------------------- Sun Oct 3 17:17:52 UTC 2021 - Ben Greiner diff --git a/python-astroid.spec b/python-astroid.spec index 9f92c51..27e9653 100644 --- a/python-astroid.spec +++ b/python-astroid.spec @@ -19,7 +19,7 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-astroid -Version: 2.8.0 +Version: 2.8.4 Release: 0 Summary: Representation of Python source as an AST for pylint License: LGPL-2.1-or-later