pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-astroid py-astroid: updated to 2.11.3



details:   https://anonhg.NetBSD.org/pkgsrc/rev/351fb4709bbd
branches:  trunk
changeset: 377382:351fb4709bbd
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Apr 20 10:42:10 2022 +0000

description:
py-astroid: updated to 2.11.3

What's New in astroid 2.11.3?
=============================
* Fixed an error in the Qt brain when building ``instance_attrs``.

* Fixed a crash in the ``gi`` brain.


What's New in astroid 2.11.2?
=============================
* Avoided adding the name of a parent namedtuple to its child's locals.


What's New in astroid 2.11.1?
=============================
* Promoted ``getattr()`` from ``astroid.scoped_nodes.FunctionDef`` to its parent
  ``astroid.scoped_nodes.Lambda``.

* Fixed crash on direct inference via ``nodes.FunctionDef._infer``.


What's New in astroid 2.11.0?
=============================
* Add new (optional) ``doc_node`` attribute to ``nodes.Module``, ``nodes.ClassDef``,
  and ``nodes.FunctionDef``.

* Accessing the ``doc`` attribute of ``nodes.Module``, ``nodes.ClassDef``, and
  ``nodes.FunctionDef`` has been deprecated in favour of the ``doc_node`` attribute.
  Note: ``doc_node`` is an (optional) ``nodes.Const`` whereas ``doc`` was an (optional) ``str``.

* Passing the ``doc`` argument to the ``__init__`` of ``nodes.Module``, ``nodes.ClassDef``,
  and ``nodes.FunctionDef`` has been deprecated in favour of the ``postinit`` ``doc_node`` attribute.
  Note: ``doc_node`` is an (optional) ``nodes.Const`` whereas ``doc`` was an (optional) ``str``.

* Replace custom ``cachedproperty`` with ``functools.cached_property`` and deprecate it
  for Python 3.8+.

* Set ``end_lineno`` and ``end_col_offset`` attributes to ``None`` for all nodes
  with PyPy 3.8. PyPy 3.8 assigns these attributes inconsistently which could lead
  to unexpected errors. Overwriting them with ``None`` will cause a fallback
  to the already supported way of PyPy 3.7.

* Add missing ``shape`` parameter to numpy ``zeros_like``, ``ones_like``,
  and ``full_like`` methods.

* Only pin ``wrapt`` on the major version.


What's New in astroid 2.10.0?
=============================
* Fixed inference of ``self`` in binary operations in which ``self``
  is part of a list or tuple.

* Fixed builtin inference on `property` calls not calling the `postinit` of the new node, which
  resulted in instance arguments missing on these nodes.

* Fixed a crash on ``Super.getattr`` when the attribute was previously uninferable due to a cache
  limit size. This limit can be hit when the inheritance pattern of a class (and therefore of the
  ``__init__`` attribute) is very large.

* Inlcude names of keyword-only arguments in ``astroid.scoped_nodes.Lambda.argnames``.

* Fixed a crash inferring on a ``NewType`` named with an f-string.

* Add support for [attrs v21.3.0](https://github.com/python-attrs/attrs/releases/tag/21.3.0) which
  added a new `attrs` module alongside the existing `attr`.

* Use the ``end_lineno`` attribute for the ``NodeNG.tolineno`` property
  when it is available.

* Add ``is_dataclass`` attribute to ``ClassDef`` nodes.

* Use ``sysconfig`` instead of ``distutils`` to determine the location of
  python stdlib files and packages.

* Fixed crash with recursion error for inference of class attributes that referenced
  the class itself.

* Fixed crash when trying to infer ``items()`` on the ``__dict__``
  attribute of an imported module.

* Add optional ``NodeNG.position`` attribute.
  Used for block nodes to highlight position of keyword(s) and name
  in cases where the AST doesn't provide good enough positional information.
  E.g. ``nodes.ClassDef``, ``nodes.FunctionDef``.

* Fix ``ClassDef.fromlineno``. For Python < 3.8 the ``lineno`` attribute includes decorators.
  ``fromlineno`` should return the line of the ``class`` statement itself.

* Performance improvements. Only run expensive decorator functions when
  non-default Deprecation warnings are enabled, eg. during a Pytest run.

diffstat:

 devel/py-astroid/Makefile |   4 ++--
 devel/py-astroid/PLIST    |  14 +++++++++++++-
 devel/py-astroid/distinfo |   8 ++++----
 3 files changed, 19 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r 84556f2a4fa8 -r 351fb4709bbd devel/py-astroid/Makefile
--- a/devel/py-astroid/Makefile Wed Apr 20 10:40:29 2022 +0000
+++ b/devel/py-astroid/Makefile Wed Apr 20 10:42:10 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.54 2022/01/10 11:31:00 adam Exp $
+# $NetBSD: Makefile,v 1.55 2022/04/20 10:42:10 adam Exp $
 
-DISTNAME=      astroid-2.9.3
+DISTNAME=      astroid-2.11.3
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=a/astroid/}
diff -r 84556f2a4fa8 -r 351fb4709bbd devel/py-astroid/PLIST
--- a/devel/py-astroid/PLIST    Wed Apr 20 10:40:29 2022 +0000
+++ b/devel/py-astroid/PLIST    Wed Apr 20 10:42:10 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.17 2022/01/07 17:13:30 adam Exp $
+@comment $NetBSD: PLIST,v 1.18 2022/04/20 10:42:10 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -247,9 +247,18 @@
 ${PYSITELIB}/astroid/nodes/scoped_nodes/__init__.py
 ${PYSITELIB}/astroid/nodes/scoped_nodes/__init__.pyc
 ${PYSITELIB}/astroid/nodes/scoped_nodes/__init__.pyo
+${PYSITELIB}/astroid/nodes/scoped_nodes/mixin.py
+${PYSITELIB}/astroid/nodes/scoped_nodes/mixin.pyc
+${PYSITELIB}/astroid/nodes/scoped_nodes/mixin.pyo
 ${PYSITELIB}/astroid/nodes/scoped_nodes/scoped_nodes.py
 ${PYSITELIB}/astroid/nodes/scoped_nodes/scoped_nodes.pyc
 ${PYSITELIB}/astroid/nodes/scoped_nodes/scoped_nodes.pyo
+${PYSITELIB}/astroid/nodes/scoped_nodes/utils.py
+${PYSITELIB}/astroid/nodes/scoped_nodes/utils.pyc
+${PYSITELIB}/astroid/nodes/scoped_nodes/utils.pyo
+${PYSITELIB}/astroid/nodes/utils.py
+${PYSITELIB}/astroid/nodes/utils.pyc
+${PYSITELIB}/astroid/nodes/utils.pyo
 ${PYSITELIB}/astroid/objects.py
 ${PYSITELIB}/astroid/objects.pyc
 ${PYSITELIB}/astroid/objects.pyo
@@ -271,6 +280,9 @@
 ${PYSITELIB}/astroid/transforms.py
 ${PYSITELIB}/astroid/transforms.pyc
 ${PYSITELIB}/astroid/transforms.pyo
+${PYSITELIB}/astroid/typing.py
+${PYSITELIB}/astroid/typing.pyc
+${PYSITELIB}/astroid/typing.pyo
 ${PYSITELIB}/astroid/util.py
 ${PYSITELIB}/astroid/util.pyc
 ${PYSITELIB}/astroid/util.pyo
diff -r 84556f2a4fa8 -r 351fb4709bbd devel/py-astroid/distinfo
--- a/devel/py-astroid/distinfo Wed Apr 20 10:40:29 2022 +0000
+++ b/devel/py-astroid/distinfo Wed Apr 20 10:42:10 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.47 2022/01/10 11:31:00 adam Exp $
+$NetBSD: distinfo,v 1.48 2022/04/20 10:42:10 adam Exp $
 
-BLAKE2s (astroid-2.9.3.tar.gz) = 9df19f356914eb01ffb21073c454bacb7f78cf6f372a5f7da680b0d8b320ee5a
-SHA512 (astroid-2.9.3.tar.gz) = 66dbbbb11beb534661ba03ef94bbaabdb903422c34d4589a3e1e1196eed640fa6fbbd70980402475fcd76543b68fd9cae321c49ed3510044451439486a9ed444
-Size (astroid-2.9.3.tar.gz) = 207480 bytes
+BLAKE2s (astroid-2.11.3.tar.gz) = 6f5308562abd408a840a765a9a86242a0c42465a019cb171c25b3c71bc4499b4
+SHA512 (astroid-2.11.3.tar.gz) = 728f74f5e2789f31539eba82dbccac4b1da8a7d1f10cb254f78efabec42b8e85f53b0cce04e8de76d92e4b4dd209b12433da567cf329280f2b34679d33cffa7d
+Size (astroid-2.11.3.tar.gz) = 205673 bytes



Home | Main Index | Thread Index | Old Index