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: Mon Oct 9 17:38:30 UTC 2023
Modified Files:
pkgsrc/devel/py-astroid: Makefile PLIST distinfo
Log Message:
py-astroid: updated to 3.0.0
What's New in astroid 3.0.0?
=============================
* Add support for Python 3.12, including PEP 695 type parameter syntax.
* Remove support for Python 3.7.
* Use the global inference cache when inferring, even without an explicit
``InferenceContext``. This is a significant performance improvement given how
often methods default to ``None`` for the context argument. (Linting ``astroid``
itself now takes ~5% less time on Python 3.12; other projects requiring more
complex inference calculations will see greater speedups.)
* Following a deprecation period starting in astroid 2.7.0, the ``astroid.node_classes``
and ``astroid.scoped_nodes`` modules have been removed in favor of ``astroid.nodes.node_classes``
and ``astroid.nodes.scoped_nodes``.
* Following a deprecation period starting in astroid 2.12.0, the ``astroid.mixins`` module
has been removed in favor of ``astroid.nodes._base_nodes`` (private).
* Return all existing arguments when calling ``Arguments.arguments()``. This also means ``find_argname`` will now
use the whole list of arguments for its search.
* Exclude class attributes from the ``__members__`` container of an ``Enum`` class when they are
``nodes.AnnAssign`` nodes with no assigned value.
* Remove ``@cached`` and ``@cachedproperty`` decorator (just use ``@cached_property`` from the stdlib).
* Remove the ``inference`` module. Node inference methods are now in the module
defining the node, rather than being associated to the node afterward.
* Move ``LookupMixIn`` to ``astroid.nodes._base_nodes`` and make it private.
* Remove the shims for ``OperationError``, ``BinaryOperationError``, and ``UnaryOperationError``
in ``exceptions``. They were moved to ``util`` in astroid 1.5.0.
* Move ``safe_infer()`` from ``helpers`` to ``util``. This avoids some circular imports.
* Reduce file system access in ``ast_from_file()``.
* Reduce time to ``import astroid`` by delaying ``astroid_bootstrapping()`` until
the first instantiation of ``AstroidBuilder``.
* Make ``igetattr()`` idempotent. This addresses some reports of varying results
when running pylint with ``--jobs``.
* Fix incorrect cache keys for inference results, thereby correctly inferring types
for calls instantiating types dynamically.
* Fix interrupted ``InferenceContext`` call chains, thereby addressing performance
problems when linting ``sqlalchemy``.
* ``nodes.FunctionDef`` no longer inherits from ``nodes.Lambda``.
This is a breaking change but considered a bug fix as the nodes did not share the same
API and were not interchangeable.
We have tried to minimize the amount of breaking changes caused by this change
but some are unavoidable.
* ``infer_call_result`` now shares the same interface across all implementations. Namely:
```python
def infer_call_result(
self,
caller: SuccessfulInferenceResult | None,
context: InferenceContext | None = None,
) -> Iterator[InferenceResult]:
```
This is a breaking change for ``nodes.FunctionDef`` where previously ``caller`` had a default of
``None``. Passing ``None`` again will not create a behaviour change.
The breaking change allows us to better type and re-use the method within ``astroid``.
* Improved signature of the ``__init__`` and ``__postinit__`` methods of most nodes.
This includes making ``lineno``, ``col_offset``, ``end_lineno``, ``end_col_offset`` and ``parent``
required arguments for ``nodes.NodeNG`` and its subclasses.
For most other nodes, arguments of their ``__postinit__`` methods have been made required to better
represent how they would normally be constructed by the standard library ``ast`` module.
To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 pkgsrc/devel/py-astroid/Makefile
cvs rdiff -u -r1.22 -r1.23 pkgsrc/devel/py-astroid/PLIST
cvs rdiff -u -r1.71 -r1.72 pkgsrc/devel/py-astroid/distinfo
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.80 pkgsrc/devel/py-astroid/Makefile:1.81
--- pkgsrc/devel/py-astroid/Makefile:1.80 Thu Sep 28 15:55:46 2023
+++ pkgsrc/devel/py-astroid/Makefile Mon Oct 9 17:38:30 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.80 2023/09/28 15:55:46 adam Exp $
+# $NetBSD: Makefile,v 1.81 2023/10/09 17:38:30 adam Exp $
-DISTNAME= astroid-2.15.8
+DISTNAME= astroid-3.0.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=a/astroid/}
Index: pkgsrc/devel/py-astroid/PLIST
diff -u pkgsrc/devel/py-astroid/PLIST:1.22 pkgsrc/devel/py-astroid/PLIST:1.23
--- pkgsrc/devel/py-astroid/PLIST:1.22 Thu Mar 9 09:47:47 2023
+++ pkgsrc/devel/py-astroid/PLIST Mon Oct 9 17:38:30 2023
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.22 2023/03/09 09:47:47 adam Exp $
+@comment $NetBSD: PLIST,v 1.23 2023/10/09 17:38:30 adam Exp $
${PYSITELIB}/${WHEEL_INFODIR}/CONTRIBUTORS.txt
${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
@@ -16,8 +16,6 @@ ${PYSITELIB}/astroid/_ast.py
${PYSITELIB}/astroid/_ast.pyc
${PYSITELIB}/astroid/_backport_stdlib_names.py
${PYSITELIB}/astroid/_backport_stdlib_names.pyc
-${PYSITELIB}/astroid/_cache.py
-${PYSITELIB}/astroid/_cache.pyc
${PYSITELIB}/astroid/arguments.py
${PYSITELIB}/astroid/arguments.pyc
${PYSITELIB}/astroid/astroid_manager.py
@@ -44,6 +42,8 @@ ${PYSITELIB}/astroid/brain/brain_curses.
${PYSITELIB}/astroid/brain/brain_curses.pyc
${PYSITELIB}/astroid/brain/brain_dataclasses.py
${PYSITELIB}/astroid/brain/brain_dataclasses.pyc
+${PYSITELIB}/astroid/brain/brain_datetime.py
+${PYSITELIB}/astroid/brain/brain_datetime.pyc
${PYSITELIB}/astroid/brain/brain_dateutil.py
${PYSITELIB}/astroid/brain/brain_dateutil.pyc
${PYSITELIB}/astroid/brain/brain_fstrings.py
@@ -146,8 +146,6 @@ ${PYSITELIB}/astroid/filter_statements.p
${PYSITELIB}/astroid/filter_statements.pyc
${PYSITELIB}/astroid/helpers.py
${PYSITELIB}/astroid/helpers.pyc
-${PYSITELIB}/astroid/inference.py
-${PYSITELIB}/astroid/inference.pyc
${PYSITELIB}/astroid/inference_tip.py
${PYSITELIB}/astroid/inference_tip.pyc
${PYSITELIB}/astroid/interpreter/__init__.py
@@ -164,12 +162,8 @@ ${PYSITELIB}/astroid/interpreter/objectm
${PYSITELIB}/astroid/interpreter/objectmodel.pyc
${PYSITELIB}/astroid/manager.py
${PYSITELIB}/astroid/manager.pyc
-${PYSITELIB}/astroid/mixins.py
-${PYSITELIB}/astroid/mixins.pyc
${PYSITELIB}/astroid/modutils.py
${PYSITELIB}/astroid/modutils.pyc
-${PYSITELIB}/astroid/node_classes.py
-${PYSITELIB}/astroid/node_classes.pyc
${PYSITELIB}/astroid/nodes/__init__.py
${PYSITELIB}/astroid/nodes/__init__.pyc
${PYSITELIB}/astroid/nodes/_base_nodes.py
@@ -200,8 +194,6 @@ ${PYSITELIB}/astroid/raw_building.py
${PYSITELIB}/astroid/raw_building.pyc
${PYSITELIB}/astroid/rebuilder.py
${PYSITELIB}/astroid/rebuilder.pyc
-${PYSITELIB}/astroid/scoped_nodes.py
-${PYSITELIB}/astroid/scoped_nodes.pyc
${PYSITELIB}/astroid/test_utils.py
${PYSITELIB}/astroid/test_utils.pyc
${PYSITELIB}/astroid/transforms.py
Index: pkgsrc/devel/py-astroid/distinfo
diff -u pkgsrc/devel/py-astroid/distinfo:1.71 pkgsrc/devel/py-astroid/distinfo:1.72
--- pkgsrc/devel/py-astroid/distinfo:1.71 Thu Sep 28 15:55:46 2023
+++ pkgsrc/devel/py-astroid/distinfo Mon Oct 9 17:38:30 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.71 2023/09/28 15:55:46 adam Exp $
+$NetBSD: distinfo,v 1.72 2023/10/09 17:38:30 adam Exp $
-BLAKE2s (astroid-2.15.8.tar.gz) = 153bca76cfcbe271be02628b0927b92d02d117552ea1155ef044dbcea6271093
-SHA512 (astroid-2.15.8.tar.gz) = 8c3f946c8998bc2cd87a5fc60beb323ae40331164972d6b7ca459e1d63859d4e9c4f773832d3dc4d532eb9ee7fc791e307fad44babc8c75cdb89c7cb1720e72b
-Size (astroid-2.15.8.tar.gz) = 344362 bytes
+BLAKE2s (astroid-3.0.0.tar.gz) = a1ede1fb9363d5f4ac70e9638734ac9a31a38fb2941a4a4d7b072faebdfd1933
+SHA512 (astroid-3.0.0.tar.gz) = 5f49d0d2aebcfce94eef1c54e021deb9f5dc7fd07c713aedf0836d82d9564a7dd59cd75e743fc2ba2f4ee8da3499f0ab55d456565eea2599af3eab11493141a5
+Size (astroid-3.0.0.tar.gz) = 394715 bytes
Home |
Main Index |
Thread Index |
Old Index