Sync from SUSE:SLFO:Main python-astroid revision 805eda7edb7a5affb309226c9c3f1d84

This commit is contained in:
Adrian Schröter 2024-12-13 11:10:39 +01:00
parent 5cb203505d
commit ebd4b534a6
4 changed files with 154 additions and 40 deletions

BIN
astroid-2.15.6-gh.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
astroid-3.3.5-gh.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,130 @@
-------------------------------------------------------------------
Tue Oct 22 13:46:15 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 3.3.5:
* Control setting local nodes outside of the supposed local's
constructor.
* Fix Python 3.13 compatibility re: `collections.abc`
-------------------------------------------------------------------
Tue Sep 24 13:54:23 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 3.3.4:
* Fix regression with f-string inference.
* Fix bug with ``manager.clear_cache()`` not fully clearing
cache
* Fix a crash from inferring empty format specs.
* Fix inference regression with property setters.
* Add annotation-only instance attributes to attrs classes to
fix `no-member` false positives.
* Restore support for soft-deprecated members of the ``typing``
module with python 3.13.
* Fix a crash introduced in 3.3.0 involving invalid format
strings.
-------------------------------------------------------------------
Tue Aug 6 09:29:26 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 3.3.0
* Add support for Python 3.13.
* Remove support for Python 3.8 (and constants `PY38`,
`PY39_PLUS`, and `PYPY_7_3_11_PLUS`).
* Add the ``__annotations__`` attribute to the ``ClassDef`` object model.
* Implement inference for JoinedStr and FormattedValue
* Add support for ``ssl.OP_LEGACY_SERVER_CONNECT`` (new in Python 3.12).
-------------------------------------------------------------------
Mon Jul 22 12:43:32 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 3.2.4
* Avoid reporting unary/binary op type errors when inference
is ambiguous.
- from version 3.2.3
* Fix ``AssertionError`` when inferring a property consisting
of a partial function.
-------------------------------------------------------------------
Sun Jun 30 22:03:18 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 3.2.2:
* Improve inference for generic classes using the PEP 695
syntax (Python 3.12).
* Fix ``RecursionError`` in ``infer_call_result()`` for certain
``__call__`` methods.
* Add ``AstroidManager.prefer_stubs`` attribute to control the
astroid 3.2.0 feature that prefers stubs.
* ``igetattr()`` returns the last same-named function in a
class (instead of the first). This avoids false positives
in pylint with ``@overload``.
* Adds ``module_denylist`` to ``AstroidManager`` for modules to
be skipped during AST generation. Modules in this list will
cause an ``AstroidImportError`` to be raised when an AST
for them is requested.
* Make ``astroid.interpreter._import.util.is_namespace`` only
consider modules using a loader set to ``NamespaceLoader``
or ``None`` as namespaces.
-------------------------------------------------------------------
Fri Mar 22 19:54:17 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 3.1.0:
* Include PEP 695 (Python 3.12) generic type syntax nodes in
``get_children()``, allowing checkers to visit them.
* Add ``__main__`` as a possible inferred value for
``__name__`` to improve control flow inference around
``if __name__ == "__main__":`` guards.
* Following a deprecation period, the ``names`` arg to the
``Import`` constructor and the ``op`` arg to the ``BoolOp``
constructor are now required, and the ``doc`` args
to the ``PartialFunction`` and ``Property`` constructors
have been removed (call ``postinit(doc_node=...)`` instead.)
* Following a deprecation announced in astroid 1.5.0, the alias
``AstroidBuildingException`` is removed in favor of
``AstroidBuildingError``.
* Include modname in AST warnings. Useful for ``invalid escape
sequence`` warnings with Python 3.12.
* ``RecursionError`` is now trapped and logged out as
``UserWarning`` during astroid node transformations with
instructions about raising the system recursion limit.
* Suppress ``SyntaxWarning`` for invalid escape sequences on
Python 3.12 when parsing modules.
-------------------------------------------------------------------
Wed Dec 27 09:42:24 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 3.0.2:
* Avoid duplicate inference results for some uses of
``typing.X`` constructs like ``Tuple[Optional[int], ...]``.
This was causing pylint to occasionally omit messages like
``deprecated-typing-alias``.
-------------------------------------------------------------------
Tue Oct 17 15:32:34 UTC 2023 - Markéta Calábková <meggy.calabkova@gmail.com>
- Update to 3.0.1
* Add support for Python 3.12, including PEP 695 type parameter syntax.
* Remove support for Python 3.7.
* Use the global inference cache when inferring, even without an explicit
InferenceContext.
* Following a deprecation period starting in astroid 2.7.0, the astroid.node_classes
and astroid.scoped_nodes modules have been removed in favor of astroid.nodes.node_classes
and astroid.nodes.scoped_nodes.
* Following a deprecation period starting in astroid 2.12.0, the astroid.mixins module
has been removed in favor of astroid.nodes._base_nodes (private).
* Remove @cached and @cachedproperty decorator (just use @cached_property from the stdlib).
* Remove the inference module. Node inference methods are now in the module
defining the node, rather than being associated to the node afterward.
* Move LookupMixIn to astroid.nodes._base_nodes and make it private.
* Remove the shims for OperationError, BinaryOperationError, and UnaryOperationError
in exceptions. They were moved to util in astroid 1.5.0.
* Reduce file system access in ast_from_file().
* nodes.FunctionDef no longer inherits from nodes.Lambda.
* infer_call_result now shares the same interface across all implementations.
* Remove unused and / or deprecated constants.
* The future argument to each method is deprecated and will be removed in astroid 4.0.
* So many more changes, see https://github.com/pylint-dev/astroid/blob/main/ChangeLog
for a complete list.
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Jul 16 11:40:36 UTC 2023 - Dirk Müller <dmueller@suse.com> Sun Jul 16 11:40:36 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-astroid # spec file for package python-astroid
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -18,38 +18,25 @@
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-astroid Name: python-astroid
Version: 2.15.6 Version: 3.3.5
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
URL: https://github.com/pycqa/astroid URL: https://github.com/pycqa/astroid
Source: https://github.com/PyCQA/astroid/archive/refs/tags/v%{version}.tar.gz#/astroid-%{version}-gh.tar.gz Source: https://github.com/PyCQA/astroid/archive/refs/tags/v%{version}.tar.gz#/astroid-%{version}-gh.tar.gz
BuildRequires: %{python_module base >= 3.7.2} BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module lazy-object-proxy >= 1.4}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
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}
# typing-extensions for python310 required for tests only: gh#PyCQA/astroid#1585 # typing-extensions for python310 required for tests only: gh#PyCQA/astroid#1585
BuildRequires: %{python_module typing-extensions >= 3.10} BuildRequires: %{python_module typing-extensions >= 3.10}
BuildRequires: %{python_module wheel} BuildRequires: %{python_module wheel}
BuildRequires: %{python_module wrapt >= 1.11 if %python-base < 3.11}
BuildRequires: %{python_module wrapt >= 1.14 if %python-base >= 3.11}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-lazy-object-proxy >= 1.4
BuildArch: noarch BuildArch: noarch
%if 0%{?python_version_nodots} < 38
Requires: python-typed-ast >= 1.4
%endif
%if 0%{?python_version_nodots} < 311 %if 0%{?python_version_nodots} < 311
Requires: python-typing-extensions >= 3.10 Requires: python-typing-extensions >= 3.10
%endif %endif
%if 0%{?python_version_nodots} < 311
Requires: python-wrapt >= 1.11
%else
Requires: python-wrapt >= 1.14
%endif
%python_subpackages %python_subpackages
%description %description