From b85b5d58685b2c346e4c64a1e2b762e2da3fbf13 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Mon, 25 Sep 2023 09:25:03 +0200 Subject: [PATCH] Bump astroid to 3.0.0, update changelog --- ChangeLog | 31 ++++++++++++++++++++++--------- astroid/__pkginfo__.py | 2 +- tbump.toml | 2 +- 3 files changed, 24 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index 52e064edf..b19d8fd87 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,9 +2,22 @@ astroid's ChangeLog =================== + +What's New in astroid 3.1.0? +============================ +Release date: TBA + + + +What's New in astroid 3.0.1? +============================ +Release date: TBA + + + What's New in astroid 3.0.0? ============================= -Release date: TBA +Release date: TODO! * Add support for Python 3.12, including PEP 695 type parameter syntax. @@ -14,6 +27,14 @@ Release date: TBA Refs #2137 +* Use the global inference cache when inferring, even without an explicit + ``InferenceContext``. This is a significant performance improvement given how + often methods default to ``None`` for the context argument. (Linting ``astroid`` + itself now takes ~5% less time on Python 3.12; other projects requiring more + complex inference calculations will see greater speedups.) + + Refs #529 + * 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``. @@ -72,14 +93,6 @@ Release date: TBA Closes pylint-dev/pylint#7464 Closes pylint-dev/pylint#8074 -* Use the global inference cache when inferring, even without an explicit - ``InferenceContext``. This is a significant performance improvement given how - often methods default to ``None`` for the context argument. (Linting ``astroid`` - itself now takes ~5% less time on Python 3.12; other projects requiring more - complex inference calculations will see greater speedups.) - - Refs #529 - * Fix interrupted ``InferenceContext`` call chains, thereby addressing performance problems when linting ``sqlalchemy``. diff --git a/astroid/__pkginfo__.py b/astroid/__pkginfo__.py index 3373449a2..6c2707620 100644 --- a/astroid/__pkginfo__.py +++ b/astroid/__pkginfo__.py @@ -2,5 +2,5 @@ # For details: https://github.com/pylint-dev/astroid/blob/main/LICENSE # Copyright (c) https://github.com/pylint-dev/astroid/blob/main/CONTRIBUTORS.txt -__version__ = "3.0.0b1-dev0" +__version__ = "3.0.0" version = __version__ diff --git a/tbump.toml b/tbump.toml index 9662dc361..35cebfe3e 100644 --- a/tbump.toml +++ b/tbump.toml @@ -1,7 +1,7 @@ github_url = "https://github.com/pylint-dev/astroid" [version] -current = "3.0.0b1-dev0" +current = "3.0.0" regex = ''' ^(?P0|[1-9]\d*) \.