Compare commits
8 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| a7c93caa37 | |||
| 906dbbfd21 | |||
| 58db59d613 | |||
| 0316b9206a | |||
| f430284a65 | |||
| 832ed79542 | |||
| cf078417bf | |||
| f8769f5066 |
BIN
astroid-3.3.10-gh.tar.gz
LFS
BIN
astroid-3.3.10-gh.tar.gz
LFS
Binary file not shown.
3
astroid-4.0.3-gh.tar.gz
Normal file
3
astroid-4.0.3-gh.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:42f49822d3693fc5d723138cec315b6c8bdbf52f36b0cee66d8f85756d104581
|
||||
size 476645
|
||||
@@ -1,3 +1,76 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-astroid
|
||||
#
|
||||
# Copyright (c) 2025 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,13 @@
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-astroid
|
||||
Version: 3.3.10
|
||||
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}
|
||||
@@ -35,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
|
||||
@@ -54,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
|
||||
@@ -71,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
|
||||
|
||||
Reference in New Issue
Block a user