From 6dbe21c7b4cc59a88f49f78e0812864877878175ec6b59bee723dd05c5e2ce9f Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 15 Jan 2022 16:45:59 +0000 Subject: [PATCH] - update to 2.9.3: * Fixed regression where packages without a ``__init__.py`` file were not recognized or imported correctly. * Fixed regression in ``astroid.scoped_nodes`` where ``_is_metaclass`` was not accessible anymore. * ``NodeNG.frame()`` and ``NodeNG.statement()`` will start raising ``ParentMissingError`` instead of ``AttributeError`` in astroid 3.0. This behaviour can already be triggered by passing ``future=True`` to a ``frame()`` or ``statement()`` call. * Prefer the module loader get_source() method in AstroidBuilder's module_build() when possible to avoid assumptions about source code being available on a filesystem. Otherwise the source cannot be found and application behavior changes when running within an embedded hermetic interpreter environment (pyoxidizer, etc.). * Require Python 3.6.2 to use astroid. * Removed custom ``distutils`` handling for resolving paths to submodules. * Fix ``deque.insert()`` signature in ``collections`` brain. * Fix ``Module`` nodes not having a ``col_offset``, ``end_lineno``, and ``end_col_offset`` attributes. * Fix typing and update explanation for ``Arguments.args`` being ``None``. * Fix crash if a variable named ``type`` is subscripted in a generator expression. * Enable inference of dataclass import from marshmallow_dataclass. This allows the dataclasses brain to recognize dataclasses annotated by marshmallow_dataclass. * Resolve symlinks in the import path Fixes inference error when the import path includes symlinks (e.g. Python installed on macOS via Homebrew). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=68 --- astroid-2.9.0-gh.tar.gz | 3 --- astroid-2.9.3-gh.tar.gz | 3 +++ python-astroid.changes | 29 +++++++++++++++++++++++++++++ python-astroid.spec | 4 ++-- 4 files changed, 34 insertions(+), 5 deletions(-) delete mode 100644 astroid-2.9.0-gh.tar.gz create mode 100644 astroid-2.9.3-gh.tar.gz diff --git a/astroid-2.9.0-gh.tar.gz b/astroid-2.9.0-gh.tar.gz deleted file mode 100644 index a6d443a..0000000 --- a/astroid-2.9.0-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:35ceb3584637c7ad7c0238024ec8d4a7693f868238e03d37ae77975fdb45b76d -size 404906 diff --git a/astroid-2.9.3-gh.tar.gz b/astroid-2.9.3-gh.tar.gz new file mode 100644 index 0000000..52579ab --- /dev/null +++ b/astroid-2.9.3-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:07234423c3722df6aa067c15f5fa60adf4f1d6ae659d2ab147acb40a8a1904f7 +size 409069 diff --git a/python-astroid.changes b/python-astroid.changes index cf13293..c87bac9 100644 --- a/python-astroid.changes +++ b/python-astroid.changes @@ -1,3 +1,32 @@ +------------------------------------------------------------------- +Sat Jan 15 16:43:55 UTC 2022 - Dirk Müller + +- update to 2.9.3: + * Fixed regression where packages without a ``__init__.py`` file were + not recognized or imported correctly. + * Fixed regression in ``astroid.scoped_nodes`` where ``_is_metaclass`` + was not accessible anymore. + * ``NodeNG.frame()`` and ``NodeNG.statement()`` will start raising ``ParentMissingError`` + instead of ``AttributeError`` in astroid 3.0. This behaviour can already be triggered + by passing ``future=True`` to a ``frame()`` or ``statement()`` call. + * Prefer the module loader get_source() method in AstroidBuilder's + module_build() when possible to avoid assumptions about source + code being available on a filesystem. Otherwise the source cannot + be found and application behavior changes when running within an + embedded hermetic interpreter environment (pyoxidizer, etc.). + * Require Python 3.6.2 to use astroid. + * Removed custom ``distutils`` handling for resolving paths to submodules. + * Fix ``deque.insert()`` signature in ``collections`` brain. + * Fix ``Module`` nodes not having a ``col_offset``, ``end_lineno``, and ``end_col_offset`` + attributes. + * Fix typing and update explanation for ``Arguments.args`` being ``None``. + * Fix crash if a variable named ``type`` is subscripted in a generator expression. + * Enable inference of dataclass import from marshmallow_dataclass. + This allows the dataclasses brain to recognize dataclasses annotated by marshmallow_dataclass. + * Resolve symlinks in the import path + Fixes inference error when the import path includes symlinks (e.g. Python + installed on macOS via Homebrew). + ------------------------------------------------------------------- Thu Dec 9 12:30:06 UTC 2021 - pgajdos@suse.com diff --git a/python-astroid.spec b/python-astroid.spec index f83c89f..2a405de 100644 --- a/python-astroid.spec +++ b/python-astroid.spec @@ -1,7 +1,7 @@ # # spec file for package python-astroid # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-astroid -Version: 2.9.0 +Version: 2.9.3 Release: 0 Summary: Representation of Python source as an AST for pylint License: LGPL-2.1-or-later