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.5
details: https://anonhg.NetBSD.org/pkgsrc/rev/881eda785561
branches: trunk
changeset: 447573:881eda785561
user: adam <adam%pkgsrc.org@localhost>
date: Mon Feb 22 09:22:05 2021 +0000
description:
py-astroid: updated to 2.5
What's New in astroid 2.5?
* Adds `attr_fset` in the `PropertyModel` class.
* Remove support for Python 3.5.
* Remove the runtime dependency on ``six``. The ``six`` brain remains in
astroid.
* Enrich the ``brain_collection`` module so that ``__class_getitem__`` method is added to `deque` for
``python`` version above 3.9.
* The ``context.path`` is now a ``dict`` and the ``context.push`` method
returns ``True`` if the node has been visited a certain amount of times.
* Adds a brain for type object so that it is possible to write `type[int]` in annotation.
* Add ``__class_getitem__`` method to ``subprocess.Popen`` brain under Python 3.9 so that it is seen as subscriptable by pylint.
* Adds `degrees`, `radians`, which are `numpy ufunc` functions, in the `numpy` brain. Adds `random` function in the `numpy.random` brain.
* Fix deprecated importlib methods
* Fix a crash in inference caused by `Uninferable` container elements
* Add `python 3.9` support.
* The flat attribute of ``numpy.ndarray`` is now inferred as an ``numpy.ndarray`` itself.
It should be a ``numpy.flatiter`` instance, but this class is not yet available in the numpy brain.
* Fix a bug for dunder methods inference of function objects
* Fixes a bug in the signature of the ``ndarray.__or__`` method,
in the ``brain_numpy_ndarray.py`` module.
* Fixes a to-list cast bug in ``starred_assigned_stmts`` method,
in the ``protocols.py` module.
* Added a brain for ``hypothesis.strategies.composite``
* The transpose of a ``numpy.ndarray`` is also a ``numpy.ndarray``
* Added a brain for ``sqlalchemy.orm.session``
* Separate string and bytes classes patching
* Prevent recursion error for self referential length calls
* Added missing methods to the brain for ``mechanize``, to fix pylint false positives
* Added more supported parameters to ``subprocess.check_output``
* Fix recursion errors with pandas
* Added exception inference for `UnicodeDecodeError`
* `FunctionDef.is_generator` properly handles `yield` nodes in `If` tests
* Fixed exception-chaining error messages.
* Fix failure to infer base class type with multiple inheritance and qualified names
* Fix interpretation of ``six.with_metaclass`` class definitions.
* Reduce memory usage of astroid's module cache.
* Remove dependency on `imp`.
* Do not crash when encountering starred assignments in enums.
* Fix a crash in functools.partial inference when the arguments cannot be determined
* Fix a crash caused by a lookup of a monkey-patched method
* ``is_generator`` correctly considers `Yield` nodes in `AugAssign` nodes
This fixes a false positive with the `assignment-from-no-return` pylint check.
* Corrected the parent of function type comment nodes.
These nodes used to be parented to their original ast.FunctionDef parent
but are now correctly parented to their astroid.FunctionDef parent.
diffstat:
devel/py-astroid/Makefile | 9 ++++-----
devel/py-astroid/PLIST | 11 ++++++++++-
devel/py-astroid/distinfo | 11 +++++------
devel/py-astroid/patches/patch-astroid_____pkginfo____.py | 15 ---------------
4 files changed, 19 insertions(+), 27 deletions(-)
diffs (98 lines):
diff -r 2b3768b76e22 -r 881eda785561 devel/py-astroid/Makefile
--- a/devel/py-astroid/Makefile Mon Feb 22 08:25:12 2021 +0000
+++ b/devel/py-astroid/Makefile Mon Feb 22 09:22:05 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.36 2020/06/08 16:08:01 adam Exp $
+# $NetBSD: Makefile,v 1.37 2021/02/22 09:22:05 adam Exp $
-DISTNAME= astroid-2.4.2
+DISTNAME= astroid-2.5
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=a/astroid/}
@@ -11,9 +11,8 @@
LICENSE= gnu-lgpl-v3
DEPENDS+= ${PYPKGPREFIX}-lazy-object-proxy>=1.4.0:../../devel/py-lazy-object-proxy
-DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
-DEPENDS+= ${PYPKGPREFIX}-typed-ast-[0-9]*:../../devel/py-typed-ast
-DEPENDS+= ${PYPKGPREFIX}-wrapt-[0-9]*:../../devel/py-wrapt
+DEPENDS+= ${PYPKGPREFIX}-typed-ast>=1.4.0:../../devel/py-typed-ast
+DEPENDS+= ${PYPKGPREFIX}-wrapt>=1.11:../../devel/py-wrapt
BUILD_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
diff -r 2b3768b76e22 -r 881eda785561 devel/py-astroid/PLIST
--- a/devel/py-astroid/PLIST Mon Feb 22 08:25:12 2021 +0000
+++ b/devel/py-astroid/PLIST Mon Feb 22 09:22:05 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.11 2020/05/05 18:18:55 adam Exp $
+@comment $NetBSD: PLIST,v 1.12 2021/02/22 09:22:05 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -64,6 +64,9 @@
${PYSITELIB}/astroid/brain/brain_http.py
${PYSITELIB}/astroid/brain/brain_http.pyc
${PYSITELIB}/astroid/brain/brain_http.pyo
+${PYSITELIB}/astroid/brain/brain_hypothesis.py
+${PYSITELIB}/astroid/brain/brain_hypothesis.pyc
+${PYSITELIB}/astroid/brain/brain_hypothesis.pyo
${PYSITELIB}/astroid/brain/brain_io.py
${PYSITELIB}/astroid/brain/brain_io.pyc
${PYSITELIB}/astroid/brain/brain_io.pyo
@@ -130,6 +133,9 @@
${PYSITELIB}/astroid/brain/brain_six.py
${PYSITELIB}/astroid/brain/brain_six.pyc
${PYSITELIB}/astroid/brain/brain_six.pyo
+${PYSITELIB}/astroid/brain/brain_sqlalchemy.py
+${PYSITELIB}/astroid/brain/brain_sqlalchemy.pyc
+${PYSITELIB}/astroid/brain/brain_sqlalchemy.pyo
${PYSITELIB}/astroid/brain/brain_ssl.py
${PYSITELIB}/astroid/brain/brain_ssl.pyc
${PYSITELIB}/astroid/brain/brain_ssl.pyo
@@ -139,6 +145,9 @@
${PYSITELIB}/astroid/brain/brain_threading.py
${PYSITELIB}/astroid/brain/brain_threading.pyc
${PYSITELIB}/astroid/brain/brain_threading.pyo
+${PYSITELIB}/astroid/brain/brain_type.py
+${PYSITELIB}/astroid/brain/brain_type.pyc
+${PYSITELIB}/astroid/brain/brain_type.pyo
${PYSITELIB}/astroid/brain/brain_typing.py
${PYSITELIB}/astroid/brain/brain_typing.pyc
${PYSITELIB}/astroid/brain/brain_typing.pyo
diff -r 2b3768b76e22 -r 881eda785561 devel/py-astroid/distinfo
--- a/devel/py-astroid/distinfo Mon Feb 22 08:25:12 2021 +0000
+++ b/devel/py-astroid/distinfo Mon Feb 22 09:22:05 2021 +0000
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.29 2020/07/15 09:19:05 adam Exp $
+$NetBSD: distinfo,v 1.30 2021/02/22 09:22:05 adam Exp $
-SHA1 (astroid-2.4.2.tar.gz) = 488a4ff893effa9fa8e72a38b968895a31c6b46d
-RMD160 (astroid-2.4.2.tar.gz) = 0ea44ae5243e5e8abad79672d53b71c1521613f7
-SHA512 (astroid-2.4.2.tar.gz) = f5d759c07a13e06d3d071faacff2dc775924566aaef8bdb6e526c4ebf723b6b561f5824b711b33e33a2a69df0a2ff4cbf0f4302c9a0d55610e031e81c4a4be91
-Size (astroid-2.4.2.tar.gz) = 310972 bytes
-SHA1 (patch-astroid_____pkginfo____.py) = 2f76a7a12e845ce36aeee4688b6eb8bb550a8f75
+SHA1 (astroid-2.5.tar.gz) = b8a5adbcda56ede1d1827fb5b4e7c9e475efbaaf
+RMD160 (astroid-2.5.tar.gz) = 65094b603f4a92a2154b443a1d4fa9a7b26a2189
+SHA512 (astroid-2.5.tar.gz) = eba7e757a12f89a74bff579731a157fda3c8d8dd1b5a4369791d47f7f6e321b23e167260d0988d389428222c8c98929e66ad26f379ff937e274dcd1abdb3b3d2
+Size (astroid-2.5.tar.gz) = 304788 bytes
diff -r 2b3768b76e22 -r 881eda785561 devel/py-astroid/patches/patch-astroid_____pkginfo____.py
--- a/devel/py-astroid/patches/patch-astroid_____pkginfo____.py Mon Feb 22 08:25:12 2021 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-astroid_____pkginfo____.py,v 1.5 2020/07/15 09:19:05 adam Exp $
-
-Allow newer lazy_object_proxy.
-
---- astroid/__pkginfo__.py.orig 2020-07-15 09:05:17.000000000 +0000
-+++ astroid/__pkginfo__.py
-@@ -26,7 +26,7 @@ numversion = tuple(int(elem) for elem in
-
- extras_require = {}
- install_requires = [
-- "lazy_object_proxy==1.4.*",
-+ "lazy_object_proxy>=1.4.0",
- "six~=1.12",
- "wrapt~=1.11",
- 'typed-ast>=1.4.0,<1.5;implementation_name== "cpython" and python_version<"3.8"',
Home |
Main Index |
Thread Index |
Old Index