15
0

26 Commits

Author SHA256 Message Date
a7c93caa37 Accepting request 1325245 from devel:languages:python
- update to 4.0.3:
  * Fix inference of ``IfExp`` (ternary expression) nodes to
    avoid prematurely narrowing results in the face of inference
    ambiguity.
  * Fix base class inference for dataclasses using the PEP 695
    typing syntax.

OBS-URL: https://build.opensuse.org/request/show/1325245
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=63
2026-01-05 13:50:15 +00:00
906dbbfd21 - update to 4.0.3:
* Fix inference of ``IfExp`` (ternary expression) nodes to
    avoid prematurely narrowing results in the face of inference
    ambiguity.
  * Fix base class inference for dataclasses using the PEP 695
    typing syntax.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=125
2026-01-04 08:49:52 +00:00
58db59d613 Accepting request 1318120 from devel:languages:python
- Update to 4.0.2:
  * Handle FunctionDef blockstart_tolineno edge cases correctly.
  * Add HTTPMethod enum support to brain module for Python 3.11+.
  * Suppress SyntaxWarning for invalid escape sequences and return in finally
    on Python 3.14 when parsing modules.
  * Assign Import and ImportFrom nodes to module locals if used with global.
  * Support constraints from ternary expressions in inference.
  * Handle deprecated bool(NotImplemented) cast in const nodes.
  * Add support for boolean truthiness constraints (x, not x) in inference.
  * Fix false positive invalid-name on attrs classes with ClassVar annotated
    variables.
  * Prevent crash when parsing deeply nested parentheses causing MemoryError
    in python's built-in ast.
  * Fix crash when inferring namedtuple with invalid field name looking like
    f-string formatting.
  * Fix false positive no-member in except * handler.
  * Fix crash when comparing invalid dict literal
  * To alleviate circular imports, the manager argument to AstroidBuilder()
    is now required.
  * Constants now have a parent of nodes.SYNTHETIC_ROOT.
  * Fix crashes with large positive and negative list multipliers.
  * Fix precedence of path arg in modpath_from_file_with_callback to be
    higher than sys.path
  * Improve consistency of JoinedStr inference by not raising InferenceError
    and returning either Uninferable or a fully resolved Const.
  * Fix crash when typing._alias() call is missing arguments.
  * Remove support for Python 3.9 (and constant PY310_PLUS).
  * Include subclasses of standard property classes as property decorators
  * Modify astroid.bases and tests.test_nodes to reflect that enum.property
    was added in Python 3.11, not 3.10

OBS-URL: https://build.opensuse.org/request/show/1318120
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=62
2025-11-18 14:28:32 +00:00
0316b9206a - Update to 4.0.2:
* Handle FunctionDef blockstart_tolineno edge cases correctly.
  * Add HTTPMethod enum support to brain module for Python 3.11+.
  * Suppress SyntaxWarning for invalid escape sequences and return in finally
    on Python 3.14 when parsing modules.
  * Assign Import and ImportFrom nodes to module locals if used with global.
  * Support constraints from ternary expressions in inference.
  * Handle deprecated bool(NotImplemented) cast in const nodes.
  * Add support for boolean truthiness constraints (x, not x) in inference.
  * Fix false positive invalid-name on attrs classes with ClassVar annotated
    variables.
  * Prevent crash when parsing deeply nested parentheses causing MemoryError
    in python's built-in ast.
  * Fix crash when inferring namedtuple with invalid field name looking like
    f-string formatting.
  * Fix false positive no-member in except * handler.
  * Fix crash when comparing invalid dict literal
  * To alleviate circular imports, the manager argument to AstroidBuilder()
    is now required.
  * Constants now have a parent of nodes.SYNTHETIC_ROOT.
  * Fix crashes with large positive and negative list multipliers.
  * Fix precedence of path arg in modpath_from_file_with_callback to be
    higher than sys.path
  * Improve consistency of JoinedStr inference by not raising InferenceError
    and returning either Uninferable or a fully resolved Const.
  * Fix crash when typing._alias() call is missing arguments.
  * Remove support for Python 3.9 (and constant PY310_PLUS).
  * Include subclasses of standard property classes as property decorators
  * Modify astroid.bases and tests.test_nodes to reflect that enum.property
    was added in Python 3.11, not 3.10

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=123
2025-11-17 04:34:07 +00:00
f430284a65 Accepting request 1306358 from devel:languages:python
- add py314-failing-tests.patch

OBS-URL: https://build.opensuse.org/request/show/1306358
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=61
2025-09-23 14:05:40 +00:00
832ed79542 - add py314-failing-tests.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=121
2025-09-21 19:34:24 +00:00
cf078417bf Accepting request 1295268 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1295268
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=60
2025-07-24 16:41:57 +00:00
f8769f5066 - Update to 3.3.11
* Fix a crash when parsing an empty arbitrary expression with
    ``extract_node`` (``extract_node("__()")``).
  * Fix a crash when parsing a slice called in a decorator on a
    function that is also decorated with a known ``six`` decorator.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=119
2025-07-23 10:33:28 +00:00
341e0118e8 Accepting request 1285430 from devel:languages:python
Fix the .changes file format

OBS-URL: https://build.opensuse.org/request/show/1285430
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=59
2025-06-13 16:44:27 +00:00
630b738f58 Fix .changes file, osc service runall source_validator
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=117
2025-06-12 12:52:38 +00:00
4195d1bad8 Accepting request 1277386 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1277386
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=58
2025-05-15 14:59:54 +00:00
b8769bc83f - Update to 3.3.10
* Avoid importing submodules sharing names with standard library modules.
  * Fix bug where ``pylint code.custom_extension`` would analyze ``code.py``
    or ``code.pyi`` instead if they existed.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=115
2025-05-14 10:18:07 +00:00
8406e72f47 Accepting request 1255009 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1255009
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=57
2025-03-24 12:25:17 +00:00
2109829eeb - Update to 3.3.9
* Fix crash when `sys.modules` contains lazy loader objects
    during checking.
  * Upload release assets to PyPI via Trusted Publishing.
- Update BuildRequires from pyproject.toml

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=113
2025-03-21 13:03:38 +00:00
3c0f3fb1a8 Accepting request 1234570 from devel:languages:python
- update to 3.3.8:
  * Fix inability to import `collections.abc` in python 3.13.1.
    The reported fixes in astroid 3.3.6 and 3.3.7 did not actually
    fix this issue.

OBS-URL: https://build.opensuse.org/request/show/1234570
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=56
2025-01-06 15:04:55 +00:00
591b4ef01d - update to 3.3.8:
* Fix inability to import `collections.abc` in python 3.13.1.
    The reported fixes in astroid 3.3.6 and 3.3.7 did not actually
    fix this issue.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=111
2025-01-02 14:15:11 +00:00
c708150b5c Accepting request 1217044 from devel:languages:python
- update to 3.3.5:
  * Control setting local nodes outside of the supposed local's
    constructor.
  * Fix Python 3.13 compatibility re: `collections.abc`

OBS-URL: https://build.opensuse.org/request/show/1217044
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=55
2024-10-23 19:08:58 +00:00
55c7f0afdf - update to 3.3.5:
* Control setting local nodes outside of the supposed local's
    constructor.
  * Fix Python 3.13 compatibility re: `collections.abc`

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=109
2024-10-22 13:46:29 +00:00
5ea4b747ff Accepting request 1202985 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1202985
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=54
2024-09-25 19:51:16 +00:00
bb404eda28 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=107
2024-09-24 13:54:53 +00:00
e5238126ce Accepting request 1192588 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1192588
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=53
2024-08-10 17:05:58 +00:00
693950acc7 - 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).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=105
2024-08-08 10:28:42 +00:00
9f4e3b6ef8 Accepting request 1189108 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1189108
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=52
2024-07-24 13:29:27 +00:00
9f6a3418ed Accepting request 1189035 from home:glaubitz:branches:devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1189035
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=103
2024-07-22 18:48:53 +00:00
3e3484f21b Accepting request 1185391 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1185391
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=51
2024-07-05 17:45:10 +00:00
9a5f856633 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=101
2024-06-30 22:04:15 +00:00
4 changed files with 173 additions and 13 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3ba572a3faeabdd72ec79965b38867d1ce159ebec1281ba833928842b36cca32
size 463675

3
astroid-4.0.3-gh.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:42f49822d3693fc5d723138cec315b6c8bdbf52f36b0cee66d8f85756d104581
size 476645

View File

@@ -1,3 +1,167 @@
-------------------------------------------------------------------
Sun Jan 4 08:45:22 UTC 2026 - Dirk Müller <dmueller@suse.com>
- update to 4.0.3:
* Fix inference of ``IfExp`` (ternary expression) nodes to
avoid prematurely narrowing results in the face of inference
ambiguity.
* Fix base class inference for dataclasses using the PEP 695
typing syntax.
-------------------------------------------------------------------
Mon Nov 17 04:33:23 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 4.0.2:
* Handle FunctionDef blockstart_tolineno edge cases correctly.
* Add HTTPMethod enum support to brain module for Python 3.11+.
* Suppress SyntaxWarning for invalid escape sequences and return in finally
on Python 3.14 when parsing modules.
* Assign Import and ImportFrom nodes to module locals if used with global.
* Support constraints from ternary expressions in inference.
* Handle deprecated bool(NotImplemented) cast in const nodes.
* Add support for boolean truthiness constraints (x, not x) in inference.
* Fix false positive invalid-name on attrs classes with ClassVar annotated
variables.
* Prevent crash when parsing deeply nested parentheses causing MemoryError
in python's built-in ast.
* Fix crash when inferring namedtuple with invalid field name looking like
f-string formatting.
* Fix false positive no-member in except * handler.
* Fix crash when comparing invalid dict literal
* To alleviate circular imports, the manager argument to AstroidBuilder()
is now required.
* Constants now have a parent of nodes.SYNTHETIC_ROOT.
* Fix crashes with large positive and negative list multipliers.
* Fix precedence of path arg in modpath_from_file_with_callback to be
higher than sys.path
* Improve consistency of JoinedStr inference by not raising InferenceError
and returning either Uninferable or a fully resolved Const.
* Fix crash when typing._alias() call is missing arguments.
* Remove support for Python 3.9 (and constant PY310_PLUS).
* Include subclasses of standard property classes as property decorators
* Modify astroid.bases and tests.test_nodes to reflect that enum.property
was added in Python 3.11, not 3.10
* Fix incorrect result in _get_relative_base_path when the target directory
name starts with the base path
* The brain for nose was dropped. nose has been deprecated for 10 years and
the brain required some maintenance.
* Fix a crash when the root of a node is not a module but is unknown.
* Add basic support for ast.TemplateStr and ast.Interpolationadded in
Python 3.14.
* Add support for type parameter defaults added in Python 3.13.
* Improve as_string() representation for TypeVar, ParamSpec and
TypeVarTuple nodes, as well as type parameter in ClassDef, FuncDef and
TypeAlias nodes (PEP 695).
* Astroid now correctly supports the exceptions attribute of
ExceptionGroup.
* Deprecate importing node classes from astroid directly.
- Drop patch py314-failing-tests.patch, not required.
-------------------------------------------------------------------
Sun Sep 21 19:34:11 UTC 2025 - Dirk Müller <dmueller@suse.com>
- add py314-failing-tests.patch
-------------------------------------------------------------------
Wed Jul 23 08:27:09 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 3.3.11
* Fix a crash when parsing an empty arbitrary expression with
``extract_node`` (``extract_node("__()")``).
* Fix a crash when parsing a slice called in a decorator on a
function that is also decorated with a known ``six`` decorator.
-------------------------------------------------------------------
Wed May 14 09:35:21 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 3.3.10
* Avoid importing submodules sharing names with standard library modules.
* Fix bug where ``pylint code.custom_extension`` would analyze ``code.py``
or ``code.pyi`` instead if they existed.
-------------------------------------------------------------------
Fri Mar 21 10:38:20 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 3.3.9
* Fix crash when `sys.modules` contains lazy loader objects
during checking.
* Upload release assets to PyPI via Trusted Publishing.
- Update BuildRequires from pyproject.toml
-------------------------------------------------------------------
Thu Jan 2 14:14:36 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 3.3.8:
* Fix inability to import `collections.abc` in python 3.13.1.
The reported fixes in astroid 3.3.6 and 3.3.7 did not actually
fix this issue.
-------------------------------------------------------------------
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>
@@ -1488,4 +1652,3 @@ Thu Dec 22 10:09:45 CET 2005 - garloff@suse.de
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) 2024 SUSE LLC
# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,13 +18,14 @@
%{?sle15_python_module_pythons}
Name: python-astroid
Version: 3.1.0
Version: 4.0.3
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.8}
BuildRequires: %{python_module base >= 3.10}
BuildRequires: %{python_module mypy}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
@@ -34,9 +35,6 @@ BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%if 0%{?python_version_nodots} < 311
Requires: python-typing-extensions >= 3.10
%endif
%python_subpackages
%description
@@ -53,8 +51,7 @@ scopes. Furthermore, astroid builds partial trees by inspecting living
objects.
%prep
%setup -q -n astroid-%{version}
%autopatch -p1
%autosetup -p1 -n astroid-%{version}
%build
%pyproject_wheel
@@ -70,6 +67,6 @@ objects.
%license LICENSE
%doc ChangeLog README.rst
%{python_sitelib}/astroid/
%{python_sitelib}/astroid-%{version}*-info
%{python_sitelib}/astroid-%{version}.dist-info
%changelog