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.3.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/926eab5cc150
branches:  trunk
changeset: 340267:926eab5cc150
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Oct 01 11:34:55 2019 +0000

description:
py-astroid: updated to 2.3.1

What's New in astroid 2.3.1?
* A transform for the builtin `dataclasses` module was added.
  This should address various `dataclasses` issues that were surfaced
  even more after the release of pylint 2.4.0.
  In the previous versions of `astroid`, annotated assign nodes were
  allowed to be retrieved via `getattr()` but that no longer happens
  with the latest `astroid` release, as those attribute are not actual
  attributes, but rather virtual ones, thus an operation such as `getattr()`
  does not make sense for them.
* Update attr brain to partly understand annotated attributes

What's New in astroid 2.3.0?
* Add a brain tip for ``subprocess.check_output``
* Remove NodeNG.nearest method because of lack of usage in astroid and pylint.
* Allow importing wheel files.
* Annotated AST follows PEP8 coding style when converted to string.
* Fix a bug where defining a class using type() could cause a DuplicateBasesError.
* Dropped support for Python 3.4.
* Numpy brain support is improved.
  Numpy's fundamental type ``numpy.ndarray`` has its own brain : ``brain_numpy_ndarray`` and
  each numpy module that necessitates brain action has now its own numpy brain :
    - ``numpy.core.numeric``
    - ``numpy.core.function_base``
    - ``numpy.core.multiarray``
    - ``numpy.core.numeric``
    - ``numpy.core.numerictypes``
    - ``numpy.core.umath``
    - ``numpy.random.mtrand``
* ``assert`` only functions are properly inferred as returning ``None``
* Add support for Python 3.8's `NamedExpr` nodes, which is part of assignment expressions.
* Added support for inferring `IfExp` nodes.
* Instances of exceptions are inferred as such when inferring in non-exception context
  This allows special inference support for exception attributes such as `.args`.
* Drop a superfluous and wrong callcontext when inferring the result of a context manager
* ``igetattr`` raises ``InferenceError`` on re-inference of the same object
  This prevents ``StopIteration`` from leaking when we encounter the same
  object in the current context, which could result in various ``RuntimeErrors``
  leaking in other parts of the inference.
  Until we get a global context per inference, the solution is sort of a hack,
  as with the suggested global context improvement, we could theoretically
  reuse the same inference object.
* Variable annotations can no longer be retrieved with `ClassDef.getattr`
  Unless they have an attached value, class variable annotations can no longer
  be retrieved with `ClassDef.getattr.`
* Improved builtin inference for ``tuple``, ``set``, ``frozenset``, ``list`` and ``dict``
  We were properly inferring these callables *only* if they had consts as
  values, but that is not the case most of the time. Instead we try to infer
  the values that their arguments can be and use them instead of assuming
  Const nodes all the time.
* The last except handler wins when inferring variables bound in an except handler.
* ``threading.Lock.locked()`` is properly recognized as a member of ``threading.Lock``
* Fix recursion error involving ``len`` and self referential attributes
* Can access per argument type comments through new ``Arguments.type_comment_args`` attribute.
* Fix being unable to access class attributes on a NamedTuple.
* Fixed being unable to find distutils submodules by name when in a virtualenv.

diffstat:

 devel/py-astroid/DESCR    |  13 +++++++++----
 devel/py-astroid/Makefile |   4 ++--
 devel/py-astroid/PLIST    |  38 ++++++++++++++++++++++++++++++++++----
 devel/py-astroid/distinfo |  10 +++++-----
 4 files changed, 50 insertions(+), 15 deletions(-)

diffs (106 lines):

diff -r 9154e4a6da59 -r 926eab5cc150 devel/py-astroid/DESCR
--- a/devel/py-astroid/DESCR    Tue Oct 01 11:11:35 2019 +0000
+++ b/devel/py-astroid/DESCR    Tue Oct 01 11:34:55 2019 +0000
@@ -1,4 +1,9 @@
-The aim of this module is to provide a common base representation of
-python source code for projects such as pychecker, pyreverse,
-pylint... Well, actually the development of this library is essentially
-governed by pylint's needs. It used to be called logilab-astng
+The aim of this module is to provide a common base representation of Python
+source code. It is currently the library powering pylint's capabilities.
+
+It provides a compatible representation which comes from the _ast module. It
+rebuilds the tree generated by the builtin _ast module by recursively walking
+down the AST and building an extended ast. The new node classes have additional
+methods and attributes for different usages. They include some support for
+static inference and local name scopes. Furthermore, astroid can also build
+partial trees by inspecting living objects.
diff -r 9154e4a6da59 -r 926eab5cc150 devel/py-astroid/Makefile
--- a/devel/py-astroid/Makefile Tue Oct 01 11:11:35 2019 +0000
+++ b/devel/py-astroid/Makefile Tue Oct 01 11:34:55 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.29 2019/05/02 09:16:47 adam Exp $
+# $NetBSD: Makefile,v 1.30 2019/10/01 11:34:55 adam Exp $
 
-DISTNAME=      astroid-2.2.5
+DISTNAME=      astroid-2.3.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=a/astroid/}
diff -r 9154e4a6da59 -r 926eab5cc150 devel/py-astroid/PLIST
--- a/devel/py-astroid/PLIST    Tue Oct 01 11:11:35 2019 +0000
+++ b/devel/py-astroid/PLIST    Tue Oct 01 11:34:55 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.9 2019/02/28 09:17:41 adam Exp $
+@comment $NetBSD: PLIST,v 1.10 2019/10/01 11:34:55 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -34,9 +34,15 @@
 ${PYSITELIB}/astroid/brain/brain_collections.py
 ${PYSITELIB}/astroid/brain/brain_collections.pyc
 ${PYSITELIB}/astroid/brain/brain_collections.pyo
+${PYSITELIB}/astroid/brain/brain_crypt.py
+${PYSITELIB}/astroid/brain/brain_crypt.pyc
+${PYSITELIB}/astroid/brain/brain_crypt.pyo
 ${PYSITELIB}/astroid/brain/brain_curses.py
 ${PYSITELIB}/astroid/brain/brain_curses.pyc
 ${PYSITELIB}/astroid/brain/brain_curses.pyo
+${PYSITELIB}/astroid/brain/brain_dataclasses.py
+${PYSITELIB}/astroid/brain/brain_dataclasses.pyc
+${PYSITELIB}/astroid/brain/brain_dataclasses.pyo
 ${PYSITELIB}/astroid/brain/brain_dateutil.py
 ${PYSITELIB}/astroid/brain/brain_dateutil.pyc
 ${PYSITELIB}/astroid/brain/brain_dateutil.pyo
@@ -70,9 +76,33 @@
 ${PYSITELIB}/astroid/brain/brain_nose.py
 ${PYSITELIB}/astroid/brain/brain_nose.pyc
 ${PYSITELIB}/astroid/brain/brain_nose.pyo
-${PYSITELIB}/astroid/brain/brain_numpy.py
-${PYSITELIB}/astroid/brain/brain_numpy.pyc
-${PYSITELIB}/astroid/brain/brain_numpy.pyo
+${PYSITELIB}/astroid/brain/brain_numpy_core_fromnumeric.py
+${PYSITELIB}/astroid/brain/brain_numpy_core_fromnumeric.pyc
+${PYSITELIB}/astroid/brain/brain_numpy_core_fromnumeric.pyo
+${PYSITELIB}/astroid/brain/brain_numpy_core_function_base.py
+${PYSITELIB}/astroid/brain/brain_numpy_core_function_base.pyc
+${PYSITELIB}/astroid/brain/brain_numpy_core_function_base.pyo
+${PYSITELIB}/astroid/brain/brain_numpy_core_multiarray.py
+${PYSITELIB}/astroid/brain/brain_numpy_core_multiarray.pyc
+${PYSITELIB}/astroid/brain/brain_numpy_core_multiarray.pyo
+${PYSITELIB}/astroid/brain/brain_numpy_core_numeric.py
+${PYSITELIB}/astroid/brain/brain_numpy_core_numeric.pyc
+${PYSITELIB}/astroid/brain/brain_numpy_core_numeric.pyo
+${PYSITELIB}/astroid/brain/brain_numpy_core_numerictypes.py
+${PYSITELIB}/astroid/brain/brain_numpy_core_numerictypes.pyc
+${PYSITELIB}/astroid/brain/brain_numpy_core_numerictypes.pyo
+${PYSITELIB}/astroid/brain/brain_numpy_core_umath.py
+${PYSITELIB}/astroid/brain/brain_numpy_core_umath.pyc
+${PYSITELIB}/astroid/brain/brain_numpy_core_umath.pyo
+${PYSITELIB}/astroid/brain/brain_numpy_ndarray.py
+${PYSITELIB}/astroid/brain/brain_numpy_ndarray.pyc
+${PYSITELIB}/astroid/brain/brain_numpy_ndarray.pyo
+${PYSITELIB}/astroid/brain/brain_numpy_random_mtrand.py
+${PYSITELIB}/astroid/brain/brain_numpy_random_mtrand.pyc
+${PYSITELIB}/astroid/brain/brain_numpy_random_mtrand.pyo
+${PYSITELIB}/astroid/brain/brain_numpy_utils.py
+${PYSITELIB}/astroid/brain/brain_numpy_utils.pyc
+${PYSITELIB}/astroid/brain/brain_numpy_utils.pyo
 ${PYSITELIB}/astroid/brain/brain_pkg_resources.py
 ${PYSITELIB}/astroid/brain/brain_pkg_resources.pyc
 ${PYSITELIB}/astroid/brain/brain_pkg_resources.pyo
diff -r 9154e4a6da59 -r 926eab5cc150 devel/py-astroid/distinfo
--- a/devel/py-astroid/distinfo Tue Oct 01 11:11:35 2019 +0000
+++ b/devel/py-astroid/distinfo Tue Oct 01 11:34:55 2019 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.21 2019/03/13 19:19:27 adam Exp $
+$NetBSD: distinfo,v 1.22 2019/10/01 11:34:55 adam Exp $
 
-SHA1 (astroid-2.2.5.tar.gz) = 80a145dcac4dbe998db43f6e315785c027b327cf
-RMD160 (astroid-2.2.5.tar.gz) = c5a4e3ef953ac6852d0751473c62631b103940f5
-SHA512 (astroid-2.2.5.tar.gz) = 71c8c26314f666e2b9519a83dd9476fbfe0ad7d72f5308f6a94b83c5442dc695bc3e51155df45586ff2ff0eec522a02286d00ac566d542f0b82e5e0d0d7d9c65
-Size (astroid-2.2.5.tar.gz) = 281829 bytes
+SHA1 (astroid-2.3.1.tar.gz) = 901f0b8a8c769043b3e37492030951d6ed4184b7
+RMD160 (astroid-2.3.1.tar.gz) = 8139cf081419769e66347ccc15f7ab8c669f27cc
+SHA512 (astroid-2.3.1.tar.gz) = 771c68013c791a2e55a40f4463148a6e317583d55397b8bb57d74cb27869f5a188b2a54258010ee441567a461aaa6d62f0ef0266543b64bb4104bbe15e0951f8
+Size (astroid-2.3.1.tar.gz) = 297020 bytes



Home | Main Index | Thread Index | Old Index