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>
@ -5,7 +132,7 @@ Sun Jul 16 11:40:36 UTC 2023 - Dirk Müller <dmueller@suse.com>
* Harden ``get_module_part()`` against ``"."``.
* Avoid expensive list/tuple multiplication operations that
would result in ``MemoryError``.
-------------------------------------------------------------------
Mon May 15 16:15:33 UTC 2023 - Dirk Müller <dmueller@suse.com>
@ -15,7 +142,7 @@ Mon May 15 16:15:33 UTC 2023 - Dirk Müller <dmueller@suse.com>
-------------------------------------------------------------------
Fri Apr 28 07:12:30 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- Correct Requires for typing_extensions.
- Correct Requires for typing_extensions.
-------------------------------------------------------------------
Tue Apr 25 22:00:42 UTC 2023 - Dirk Müller <dmueller@suse.com>
@ -63,7 +190,7 @@ Sun Apr 16 09:20:21 UTC 2023 - Dirk Müller <dmueller@suse.com>
removed in the next minor release.
* Fix ``are_exclusive`` function when a walrus operator is used
inside ``IfExp.test`` field.
-------------------------------------------------------------------
Thu Apr 13 22:40:04 UTC 2023 - Matej Cepl <mcepl@suse.com>
@ -84,7 +211,7 @@ Sat Jan 7 08:50:36 UTC 2023 - Dirk Müller <dmueller@suse.com>
-------------------------------------------------------------------
Sat Dec 3 03:46:28 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to 2.12.13:
- Update to 2.12.13:
* Prevent returning an empty list for ``ClassDef.slots()`` when the mro list contains one class & it is not ``object``.
Refs PyCQA/pylint#5099
@ -101,7 +228,7 @@ Sat Dec 3 03:46:28 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
-------------------------------------------------------------------
Thu Oct 27 21:41:48 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to 2.12.12:
- Update to 2.12.12:
* Add the ``length`` parameter to ``hash.digest`` & ``hash.hexdigest`` in the ``hashlib`` brain.
Refs PyCQA/pylint#4039
* Prevent a crash when a module's ``__path__`` attribute is unexpectedly missing.
@ -115,7 +242,7 @@ Thu Oct 13 19:31:55 UTC 2022 - Dirk Müller <dmueller@suse.com>
- update to 2.12.11:
* Improve detection of namespace packages for the modules with ``__spec__``
set to None.
set to None.
-------------------------------------------------------------------
Fri Sep 23 20:40:39 UTC 2022 - Ben Greiner <code@bnavigator.de>
@ -154,7 +281,7 @@ Thu Sep 22 22:50:11 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
Refs PyCQA/pylint#7365
* Fix ``astroid.interpreter._import.util.is_namespace()`` incorrectly
returning ``True`` for frozen stdlib modules on PyPy.
Closes #1755
Closes #1755
-------------------------------------------------------------------
Sat Aug 27 10:10:36 UTC 2022 - Ben Greiner <code@bnavigator.de>
@ -553,9 +680,9 @@ Sun Mar 21 23:20:02 UTC 2021 - Ben Greiner <code@bnavigator.de>
`assignment-from-no-return` pylint check.
* Corrected the parent of function type comment nodes.
These nodes used to be parented to their original ast.
FunctionDef parent but are now correctly parented to their
FunctionDef parent but are now correctly parented to their
astroid.FunctionDef parent.
- Drop part_rm_dep_imp.patch fixed upstream
- Drop part_rm_dep_imp.patch fixed upstream
- Drop unpin-deps.patch unpinned upstream
-------------------------------------------------------------------
@ -575,7 +702,7 @@ Tue Jun 16 02:59:27 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 2.4.2:
* `FunctionDef.is_generator` properly handles `yield` nodes in `While` tests
* Properly construct the arguments of infered property descriptors
* Properly construct the arguments of infered property descriptors
-------------------------------------------------------------------
Thu May 7 04:36:24 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
@ -624,7 +751,7 @@ Thu May 7 04:36:24 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
* Handle StopIteration error in infer_int.
* Can access per argument type comments for positional only and keyword only arguments.
* Relax upper bound on `wrapt`
* Properly analyze CFFI compiled extensions.
* Properly analyze CFFI compiled extensions.
- Refresh unpin-deps.patch
-------------------------------------------------------------------
@ -931,7 +1058,7 @@ Wed Jan 13 10:03:16 UTC 2016 - toddrme2178@gmail.com
... import ...` syntax. Also, we added a new fail import hook for
six.moves, which fixes the import-error false positive from
pylint. Closes issue #107.
-------------------------------------------------------------------
Mon Mar 16 12:20:32 UTC 2015 - mcihar@suse.cz
@ -1033,7 +1160,7 @@ Fri Nov 21 08:53:09 UTC 2014 - mcihar@suse.cz
are now supported via some explicit detection code.
* astroid.register_module_extender has been added to generalize
the support for module extenders as used by many brain plugins.
* brain plugins can now register hooks to handle failed imports,
* brain plugins can now register hooks to handle failed imports,
as done by the gobject-introspection plugin.
* The modules have been moved to a separate package directory,
`setup.py develop` now works correctly.
@ -1084,8 +1211,8 @@ Tue Aug 12 09:24:19 UTC 2014 - mcihar@suse.com
* Backported most of the logilab.common.modutils module there, as
most things there are for pylint/astroid only and we want to be
able to fix them without requiring a new logilab.common release
* Fix names grabed using wildcard import in "absolute import mode"
(ie with absolute_import activated from the __future__ or with
* Fix names grabed using wildcard import in "absolute import mode"
(ie with absolute_import activated from the __future__ or with
python 3). Fix pylint issue #58.
* Add support in pylint-brain for understanding enum classes.
@ -1164,7 +1291,7 @@ Sat Feb 18 16:21:22 UTC 2012 - toganm@opensuse.org
needed
* Lambda nodes should have a `name` attribute
* only call transformers if modname specified
-------------------------------------------------------------------
Thu Oct 6 08:48:58 CEST 2011 - dmueller@suse.de
@ -1243,7 +1370,7 @@ Wed Apr 7 09:48:56 CEST 2010 - dmueller@suse.de
* fix #20464: raises “TypeError: '_Yes' object is not iterable” on list inference
* fix #19882: pylint hangs
* fix #20759: crash on pyreverse UNARY_OP_METHOD KeyError '~'
* fix #20760: crash on pyreverse : AttributeError: 'Subscript'
* fix #20760: crash on pyreverse : AttributeError: 'Subscript'
object has no attribute 'infer_lhs'
* fix #21980: [Python-modules-team] Bug#573229 : Pylint hangs;
improving the cache yields a speed improvement on big projects
@ -1336,8 +1463,8 @@ Fri Aug 22 18:21:14 CEST 2008 - garloff@suse.de
- Update to version 0.17.2:
* "with" statement support, patch provided by Brian Hawthorne
* fixed recursion arguments in nodes_of_class method as notified
by Dave Borowitz
* new InstanceMethod node introduced to wrap bound method (eg
by Dave Borowitz
* new InstanceMethod node introduced to wrap bound method (eg
Function node), patch provided by Dave Borowitz
-------------------------------------------------------------------
@ -1353,7 +1480,7 @@ Tue Jul 17 01:38:11 CEST 2007 - garloff@suse.de
- changes from 0.16.2 to 0.16.3
* fix simple inference for subscription and loop assignments
- changes from 0.16.1 to 0.16.2
* compatibility with python2.3 and logilab-common 0.21
* compatibility with python2.3 and logilab-common 0.21
-------------------------------------------------------------------
Tue Sep 26 20:02:09 CEST 2006 - cthiel@suse.de
@ -1423,7 +1550,7 @@ Thu Dec 22 10:09:45 CET 2005 - garloff@suse.de
- Version 0.13:
* This package has been forked of python-logilab-common 0.12.
* Fixes: lambda, Compare.as_string, manager.astng_from_module_name
* .locals and .globals on scoped node handle now a list of
* .locals and .globals on scoped node handle now a list of
references to each assigment statements instead of a single
reference to the first assigment statement.

View File

@ -1,7 +1,7 @@
#
# 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
# remain the property of their copyright owners, unless otherwise agreed
@ -18,38 +18,25 @@
%{?sle15_python_module_pythons}
Name: python-astroid
Version: 2.15.6
Version: 3.3.5
Release: 0
Summary: Representation of Python source as an AST for pylint
License: LGPL-2.1-or-later
URL: https://github.com/pycqa/astroid
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 lazy-object-proxy >= 1.4}
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
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
BuildRequires: %{python_module typing-extensions >= 3.10}
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: python-rpm-macros
Requires: python-lazy-object-proxy >= 1.4
BuildArch: noarch
%if 0%{?python_version_nodots} < 38
Requires: python-typed-ast >= 1.4
%endif
%if 0%{?python_version_nodots} < 311
Requires: python-typing-extensions >= 3.10
%endif
%if 0%{?python_version_nodots} < 311
Requires: python-wrapt >= 1.11
%else
Requires: python-wrapt >= 1.14
%endif
%python_subpackages
%description