diff --git a/astroid-2.7.1-gh.tar.gz b/astroid-2.7.1-gh.tar.gz deleted file mode 100644 index d923fb1..0000000 --- a/astroid-2.7.1-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ca57b56be54a803e43e2bd18e3886fbdfbe3fd60ef42ccb166ea516643dd92dc -size 373086 diff --git a/astroid-2.8.0-gh.tar.gz b/astroid-2.8.0-gh.tar.gz new file mode 100644 index 0000000..86ebf2b --- /dev/null +++ b/astroid-2.8.0-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20d69b874d2fd6ffd3f71c51ce67ba253f288342b803bda247da2595f0d0ed8f +size 384821 diff --git a/python-astroid.changes b/python-astroid.changes index 67aa7de..01c9b58 100644 --- a/python-astroid.changes +++ b/python-astroid.changes @@ -1,3 +1,50 @@ +------------------------------------------------------------------- +Sun Oct 3 17:17:52 UTC 2021 - Ben Greiner + +- 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 diff --git a/python-astroid.spec b/python-astroid.spec index 811ded1..9f92c51 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.7.1 +Version: 2.8.0 Release: 0 Summary: Representation of Python source as an AST for pylint License: LGPL-2.1-or-later @@ -30,7 +30,7 @@ BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} 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: fdupes BuildRequires: python-rpm-macros @@ -39,7 +39,9 @@ Requires: python-wrapt >= 1.11 BuildArch: noarch %if 0%{?python_version_nodots} < 38 Requires: python-typed-ast >= 1.4 -Requires: python-typing_extensions +%endif +%if 0%{?python_version_nodots} < 310 +Requires: python-typing_extensions >= 3.10 %endif %python_subpackages