Accepting request 922942 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/922942 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=31
This commit is contained in:
commit
3852176b1d
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ca57b56be54a803e43e2bd18e3886fbdfbe3fd60ef42ccb166ea516643dd92dc
|
|
||||||
size 373086
|
|
3
astroid-2.8.0-gh.tar.gz
Normal file
3
astroid-2.8.0-gh.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:20d69b874d2fd6ffd3f71c51ce67ba253f288342b803bda247da2595f0d0ed8f
|
||||||
|
size 384821
|
@ -1,3 +1,50 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Oct 3 17:17:52 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Update to 2.8.0
|
||||||
|
* Add additional deprecation warnings in preparation for astroid
|
||||||
|
3.0
|
||||||
|
* Require attributes for some node classes with ``__init__``
|
||||||
|
call.
|
||||||
|
* ``name`` (``str``) for ``Name``, ``AssignName``,
|
||||||
|
``DelName``
|
||||||
|
* ``attrname`` (``str``) for ``Attribute``, ``AssignAttr``,
|
||||||
|
``DelAttr``
|
||||||
|
* ``op`` (``str``) for ``AugAssign``, ``BinOp``, ``BoolOp``,
|
||||||
|
``UnaryOp``
|
||||||
|
* ``names`` (``list[tuple[str, str | None]]``) for ``Import``
|
||||||
|
* Support pyz imports
|
||||||
|
* Add ``node_ancestors`` method to ``NodeNG`` for obtaining the
|
||||||
|
ancestors of nodes.
|
||||||
|
* It's now possible to infer the value of comparison nodes
|
||||||
|
* Fixed bug in inference of dataclass field calls.
|
||||||
|
- Release 2.7.3
|
||||||
|
* The transforms related to a module are applied only if this
|
||||||
|
module has not been explicitly authorized to be imported
|
||||||
|
(i.e is not in AstroidManager.extension_package_whitelist).
|
||||||
|
Solves the following issues if numpy is authorized to be
|
||||||
|
imported through the `extension-pkg-allow-list` option.
|
||||||
|
* Fixed bug in attribute inference from inside method calls.
|
||||||
|
* Fixed bug in inference for superclass instance methods called
|
||||||
|
from the class rather than an instance.
|
||||||
|
* Fixed bug in inference of chained attributes where a subclass
|
||||||
|
had an attribute that was an instance of its superclass.
|
||||||
|
* Adds a brain for the ctypes module.
|
||||||
|
* When processing dataclass attributes, exclude the same type
|
||||||
|
hints from abc.collections as from typing.
|
||||||
|
* Apply dataclass inference to pydantic's dataclasses.
|
||||||
|
- Release 2.7.2
|
||||||
|
* ``BaseContainer`` is now public, and will replace
|
||||||
|
``_BaseContainer`` completely in astroid 3.0.
|
||||||
|
* The call cache used by inference functions produced by
|
||||||
|
``inference_tip`` can now be cleared via
|
||||||
|
``clear_inference_tip_cache``.
|
||||||
|
* ``astroid.const.BUILTINS`` and ``astroid.bases.BUILTINS`` are
|
||||||
|
not used internally anymore and will be removed in astroid 3.0.
|
||||||
|
Simply replace this by the string 'builtins' for better
|
||||||
|
performances and clarity.
|
||||||
|
* Add inference for dataclass initializer method.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Aug 20 19:16:19 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
Fri Aug 20 19:16:19 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-astroid
|
Name: python-astroid
|
||||||
Version: 2.7.1
|
Version: 2.8.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Representation of Python source as an AST for pylint
|
Summary: Representation of Python source as an AST for pylint
|
||||||
License: LGPL-2.1-or-later
|
License: LGPL-2.1-or-later
|
||||||
@ -30,7 +30,7 @@ BuildRequires: %{python_module pytest-runner}
|
|||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module typed-ast >= 1.4 if %python-base < 3.8}
|
BuildRequires: %{python_module typed-ast >= 1.4 if %python-base < 3.8}
|
||||||
BuildRequires: %{python_module typing_extensions if %python-base < 3.8}
|
BuildRequires: %{python_module typing_extensions >= 3.10 if %python-base < 3.10}
|
||||||
BuildRequires: %{python_module wrapt >= 1.11}
|
BuildRequires: %{python_module wrapt >= 1.11}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@ -39,7 +39,9 @@ Requires: python-wrapt >= 1.11
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if 0%{?python_version_nodots} < 38
|
%if 0%{?python_version_nodots} < 38
|
||||||
Requires: python-typed-ast >= 1.4
|
Requires: python-typed-ast >= 1.4
|
||||||
Requires: python-typing_extensions
|
%endif
|
||||||
|
%if 0%{?python_version_nodots} < 310
|
||||||
|
Requires: python-typing_extensions >= 3.10
|
||||||
%endif
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user