pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-astroid



Module Name:    pkgsrc
Committed By:   adam
Date:           Tue May  5 18:18:55 UTC 2020

Modified Files:
        pkgsrc/devel/py-astroid: Makefile PLIST distinfo
Removed Files:
        pkgsrc/devel/py-astroid/patches: patch-astroid_____pkginfo____.py

Log Message:
py-astroid: updated to 2.4.1

What's New in astroid 2.4.1?
* Handle the case where the raw builder fails to retrieve the ``__all__`` attribute
* Restructure the AST parsing heuristic to always pick the same module
* Changed setup.py to work with [distlib](https://pypi.org/project/distlib)
* Do not crash with SyntaxError when parsing namedtuples with invalid label
* Protect against ``infer_call_result`` failing with `InferenceError` in `Super.getattr()`

What's New in astroid 2.4.0?
* Expose a ast_from_string method in AstroidManager, which will accept
  source code as a string and return the corresponding astroid object
* ``BoundMethod.implicit_parameters`` returns a proper value for ``__new__``
* Allow slots added dynamically to a class to still be inferred
* Allow `FunctionDef.getattr` to look into both instance attrs and special attributes
* Infer qualified ``classmethod`` as a classmethod.
* Prevent a recursion error to happen when inferring the declared metaclass of a class
* Raise ``AttributeInferenceError`` when ``getattr()`` receives an empty name
* Prevent a recursion error for self reference variables and `type()` calls.
* Do not infer the first argument of a staticmethod in a metaclass as the class itself
* ``NodeNG.bool_value()`` gained an optional ``context`` parameter
  We need to pass an inference context downstream when inferring the boolean
  value of a node in order to prevent recursion errors and double inference.
  This fix prevents a recursion error with dask library.
* Pass a context argument to ``astroid.Arguments`` to prevent recursion errors
* Better inference of class and static methods decorated with custom methods
* Reverse the order of decorators for `infer_subscript`
  `path_wrapper` needs to come first, followed by `raise_if_nothing_inferred`,
  otherwise we won't handle `StopIteration` correctly.
* Prevent a recursion error when inferring self-referential variables without definition
* Numpy `datetime64.astype` return value is inferred as a `ndarray`.
* Skip non ``Assign`` and ``AnnAssign`` nodes from enum reinterpretation
* Numpy ``ndarray`` attributes ``imag`` and ``real`` are now inferred as ``ndarray``.
* Added a call to ``register_transform`` for all functions of the ``brain_numpy_core_multiarray``
  module in case the current node is an instance of ``astroid.Name``
* Use the parent of the node when inferring aug assign nodes instead of the statement
* Added some functions to the ``brain_numpy_core_umath`` module
* Added some functions of the ``numpy.core.multiarray`` module
* All the ``numpy ufunc`` functions derived now from a common class that
  implements the specific ``reduce``, ``accumulate``, ``reduceat``,
        ``outer`` and ``at`` methods.
* ``nodes.Const.itered`` returns a list of ``Const`` nodes, not strings
* The ``shape`` attribute of a ``numpy ndarray`` is now a ``ndarray``
* Don't ignore special methods when inspecting gi classes
* Added transform for ``scipy.gaussian``
* Add suport for inferring properties.
* Added a brain for ``responses``
* Allow inferring positional only arguments.
* Retry parsing a module that has invalid type comments
  It is possible for a module to use comments that might be interpreted
  as type comments by the `ast` library. We do not want to completely crash on those
  invalid type comments.
* Scope the inference to the current bound node when inferring instances of classes
  When inferring instances of classes from arguments, such as ``self``
  in a bound method, we could use as a hint the context's ``boundnode``,
  which indicates the instance from which the inference originated.
  As an example, a subclass that uses a parent's method which returns
  ``self``, will override the ``self`` to point to it instead of pointing
  to the parent class.
* Add support for inferring exception instances in all contexts
  We were able to infer exception instances as ``ExceptionInstance``
  only for a handful of cases, but not all. ``ExceptionInstance`` has
  support for better inference of `.args` and other exception related
  attributes that normal instances do not have.
  This additional support should remove certain false positives related
  to ``.args`` and other exception attributes in ``pylint``.
* Add more supported parameters to ``subprocess.check_output``
* Infer args unpacking of ``self``
  Certain stdlib modules use ``*args`` to encapsulate
  the ``self`` parameter, which results in uninferable
  instances given we rely on the presence of the ``self``
  argument to figure out the instance where we should be
  setting attributes.
* Clean up setup.py
  Make pytest-runner a requirement only if running tests, similar to what was
  done with McCabe.
  Clean up the setup.py file, resolving a handful of minor warnings with it.
* Handle StopIteration error in infer_int.
* Can access per argument type comments for positional only and keyword only arguments.
  The comments are accessed through through the new
  ``Arguments.type_comment_posonlyargs`` and
  ``Arguments.type_comment_kwonlyargs`` attributes respectively.
* Relax upper bound on `wrapt`
* Properly analyze CFFI compiled extensions.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 pkgsrc/devel/py-astroid/Makefile
cvs rdiff -u -r1.10 -r1.11 pkgsrc/devel/py-astroid/PLIST
cvs rdiff -u -r1.26 -r1.27 pkgsrc/devel/py-astroid/distinfo
cvs rdiff -u -r1.3 -r0 \
    pkgsrc/devel/py-astroid/patches/patch-astroid_____pkginfo____.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-astroid/Makefile
diff -u pkgsrc/devel/py-astroid/Makefile:1.34 pkgsrc/devel/py-astroid/Makefile:1.35
--- pkgsrc/devel/py-astroid/Makefile:1.34       Thu Nov  7 10:56:42 2019
+++ pkgsrc/devel/py-astroid/Makefile    Tue May  5 18:18:55 2020
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.34 2019/11/07 10:56:42 adam Exp $
+# $NetBSD: Makefile,v 1.35 2020/05/05 18:18:55 adam Exp $
 
-DISTNAME=      astroid-2.3.3
+DISTNAME=      astroid-2.4.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=a/astroid/}
@@ -17,9 +17,9 @@ DEPENDS+=     ${PYPKGPREFIX}-wrapt-[0-9]*:..
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 
-PYTHON_VERSIONS_INCOMPATIBLE=  27
-
 USE_LANGUAGES= # none
 
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/devel/py-astroid/PLIST
diff -u pkgsrc/devel/py-astroid/PLIST:1.10 pkgsrc/devel/py-astroid/PLIST:1.11
--- pkgsrc/devel/py-astroid/PLIST:1.10  Tue Oct  1 11:34:55 2019
+++ pkgsrc/devel/py-astroid/PLIST       Tue May  5 18:18:55 2020
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.10 2019/10/01 11:34:55 adam Exp $
+@comment $NetBSD: PLIST,v 1.11 2020/05/05 18:18:55 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -28,6 +28,9 @@ ${PYSITELIB}/astroid/brain/brain_argpars
 ${PYSITELIB}/astroid/brain/brain_attrs.py
 ${PYSITELIB}/astroid/brain/brain_attrs.pyc
 ${PYSITELIB}/astroid/brain/brain_attrs.pyo
+${PYSITELIB}/astroid/brain/brain_boto3.py
+${PYSITELIB}/astroid/brain/brain_boto3.pyc
+${PYSITELIB}/astroid/brain/brain_boto3.pyo
 ${PYSITELIB}/astroid/brain/brain_builtin_inference.py
 ${PYSITELIB}/astroid/brain/brain_builtin_inference.pyc
 ${PYSITELIB}/astroid/brain/brain_builtin_inference.pyo
@@ -118,6 +121,12 @@ ${PYSITELIB}/astroid/brain/brain_random.
 ${PYSITELIB}/astroid/brain/brain_re.py
 ${PYSITELIB}/astroid/brain/brain_re.pyc
 ${PYSITELIB}/astroid/brain/brain_re.pyo
+${PYSITELIB}/astroid/brain/brain_responses.py
+${PYSITELIB}/astroid/brain/brain_responses.pyc
+${PYSITELIB}/astroid/brain/brain_responses.pyo
+${PYSITELIB}/astroid/brain/brain_scipy_signal.py
+${PYSITELIB}/astroid/brain/brain_scipy_signal.pyc
+${PYSITELIB}/astroid/brain/brain_scipy_signal.pyo
 ${PYSITELIB}/astroid/brain/brain_six.py
 ${PYSITELIB}/astroid/brain/brain_six.pyc
 ${PYSITELIB}/astroid/brain/brain_six.pyo

Index: pkgsrc/devel/py-astroid/distinfo
diff -u pkgsrc/devel/py-astroid/distinfo:1.26 pkgsrc/devel/py-astroid/distinfo:1.27
--- pkgsrc/devel/py-astroid/distinfo:1.26       Thu Apr 23 08:44:26 2020
+++ pkgsrc/devel/py-astroid/distinfo    Tue May  5 18:18:55 2020
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.26 2020/04/23 08:44:26 adam Exp $
+$NetBSD: distinfo,v 1.27 2020/05/05 18:18:55 adam Exp $
 
-SHA1 (astroid-2.3.3.tar.gz) = d53a00c984beb22679a7f10bc02310a1ce24a9f9
-RMD160 (astroid-2.3.3.tar.gz) = 180dfda90675ead4026b7cd2f47f2ba2ecb7aee9
-SHA512 (astroid-2.3.3.tar.gz) = 72011f3eb312ea7ce7dd55f7615972f6bfc152d8f16f9052b405f44fe17e594d5da22e0502b4c3034881b9783be9e808509d4ded3d679182ddf6d34eb90748f1
-Size (astroid-2.3.3.tar.gz) = 297350 bytes
-SHA1 (patch-astroid_____pkginfo____.py) = a173438f76081d66dd4c65cf42740dbd97f59854
+SHA1 (astroid-2.4.1.tar.gz) = 9e3d8cf8ed0635f706aa19175c25ecd2f5ca5af0
+RMD160 (astroid-2.4.1.tar.gz) = 205defcbfb3458568344f7b62a445ab0b5040559
+SHA512 (astroid-2.4.1.tar.gz) = 10723236306c8a181d536acc047a18436851c7c8b9c532303f39ca1eae9ca9eba3e3e0c135aea7596642528d39e0115b38ad705bef9140cd0f5fa8b170569738
+Size (astroid-2.4.1.tar.gz) = 310789 bytes



Home | Main Index | Thread Index | Old Index