From d1e9fb3ed697f3ea8bf01d4258b540269177c472de9622090c51bcf18ec1c00e Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 16 Apr 2023 09:21:11 +0000 Subject: [PATCH 1/2] - update to 2.15.2: * Support more possible usages of ``attrs`` decorators. * Restore behavior of setting a Call as a base for classes created using ``six.with_metaclass()``, and harden support for using enums as metaclasses in this case. * astroid now supports ``TryStar`` nodes from python 3.11 and should be fully compatible with python 3.11. * ``Formattedvalue.postinit`` is now keyword only. This is to allow correct typing of the ``Formattedvalue`` class. * ``Astroid`` now supports custom import hooks. * ``astroid`` now infers return values from match cases. * ``AstroidManager.clear_cache`` now also clears the inference context cache. * ``Astroid`` now retrieves the default values of keyword only arguments and sets them on ``Arguments.kw_defaults``. * ``Uninferable`` now has the type ``UninferableBase``. This is to facilitate correctly type annotating code that uses this singleton. * Deprecate ``modutils.is_standard_module()``. It will be removed in the next minor release. * Fix ``are_exclusive`` function when a walrus operator is used inside ``IfExp.test`` field. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=82 --- astroid-2.12.14-gh.tar.gz | 3 --- astroid-2.15.2-gh.tar.gz | 3 +++ python-astroid.changes | 27 +++++++++++++++++++++++++++ python-astroid.spec | 2 +- 4 files changed, 31 insertions(+), 4 deletions(-) delete mode 100644 astroid-2.12.14-gh.tar.gz create mode 100644 astroid-2.15.2-gh.tar.gz diff --git a/astroid-2.12.14-gh.tar.gz b/astroid-2.12.14-gh.tar.gz deleted file mode 100644 index ae1cfb2..0000000 --- a/astroid-2.12.14-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:572fa4250065a85286b09c26c53547360cb3a1171a52ae744ff7e31938b4842a -size 440473 diff --git a/astroid-2.15.2-gh.tar.gz b/astroid-2.15.2-gh.tar.gz new file mode 100644 index 0000000..0a835ec --- /dev/null +++ b/astroid-2.15.2-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eb9a4ee7ca74a6f4f2a26e3cb68db2f0dc0a4350555782f3b61cb5bc7c1794e4 +size 461132 diff --git a/python-astroid.changes b/python-astroid.changes index 95101c3..b305aab 100644 --- a/python-astroid.changes +++ b/python-astroid.changes @@ -1,3 +1,30 @@ +------------------------------------------------------------------- +Sun Apr 16 09:20:21 UTC 2023 - Dirk Müller + +- update to 2.15.2: + * Support more possible usages of ``attrs`` decorators. + * Restore behavior of setting a Call as a base for classes + created using ``six.with_metaclass()``, + and harden support for using enums as metaclasses in this + case. + * astroid now supports ``TryStar`` nodes from python 3.11 and + should be fully compatible with python 3.11. + * ``Formattedvalue.postinit`` is now keyword only. This is to + allow correct typing of the ``Formattedvalue`` class. + * ``Astroid`` now supports custom import hooks. + * ``astroid`` now infers return values from match cases. + * ``AstroidManager.clear_cache`` now also clears the inference + context cache. + * ``Astroid`` now retrieves the default values of keyword only + arguments and sets them on ``Arguments.kw_defaults``. + * ``Uninferable`` now has the type ``UninferableBase``. This is + to facilitate correctly type annotating code that uses this + singleton. + * Deprecate ``modutils.is_standard_module()``. It will be + removed in the next minor release. + * Fix ``are_exclusive`` function when a walrus operator is used + inside ``IfExp.test`` field. + ------------------------------------------------------------------- Sat Jan 7 08:50:36 UTC 2023 - Dirk Müller diff --git a/python-astroid.spec b/python-astroid.spec index f353ceb..d733705 100644 --- a/python-astroid.spec +++ b/python-astroid.spec @@ -17,7 +17,7 @@ Name: python-astroid -Version: 2.12.14 +Version: 2.15.2 Release: 0 Summary: Representation of Python source as an AST for pylint License: LGPL-2.1-or-later From 54167c105ec0245b274f1eac13057a94fa0ae92c58563e135f23975dfb6af873 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 17 Apr 2023 19:07:57 +0000 Subject: [PATCH 2/2] - update to 2.15.3: * Fix ``infer_call_result()`` crash on methods called ``with_metaclass()`` * Suppress ``UserWarning`` when finding module specs. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=83 --- astroid-2.15.2-gh.tar.gz | 3 --- astroid-2.15.3-gh.tar.gz | 3 +++ python-astroid.changes | 8 ++++++++ python-astroid.spec | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) delete mode 100644 astroid-2.15.2-gh.tar.gz create mode 100644 astroid-2.15.3-gh.tar.gz diff --git a/astroid-2.15.2-gh.tar.gz b/astroid-2.15.2-gh.tar.gz deleted file mode 100644 index 0a835ec..0000000 --- a/astroid-2.15.2-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:eb9a4ee7ca74a6f4f2a26e3cb68db2f0dc0a4350555782f3b61cb5bc7c1794e4 -size 461132 diff --git a/astroid-2.15.3-gh.tar.gz b/astroid-2.15.3-gh.tar.gz new file mode 100644 index 0000000..c69b763 --- /dev/null +++ b/astroid-2.15.3-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ce1aa602081088c6ccd92a469df5db50eb02ea0986614537c2a018217a432279 +size 461474 diff --git a/python-astroid.changes b/python-astroid.changes index b305aab..54937bd 100644 --- a/python-astroid.changes +++ b/python-astroid.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Apr 17 19:07:36 UTC 2023 - Dirk Müller + +- update to 2.15.3: + * Fix ``infer_call_result()`` crash on methods called + ``with_metaclass()`` + * Suppress ``UserWarning`` when finding module specs. + ------------------------------------------------------------------- Sun Apr 16 09:20:21 UTC 2023 - Dirk Müller diff --git a/python-astroid.spec b/python-astroid.spec index d733705..8100adc 100644 --- a/python-astroid.spec +++ b/python-astroid.spec @@ -17,7 +17,7 @@ Name: python-astroid -Version: 2.15.2 +Version: 2.15.3 Release: 0 Summary: Representation of Python source as an AST for pylint License: LGPL-2.1-or-later