Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update astroid to version 2.12.1 #25

Closed
wants to merge 2 commits into from
Closed

Conversation

varlackc
Copy link

astroid version 2.12.1

    • Check the pinnings

requires-python = ">=3.7.2"
https://github.com/PyCQA/astroid/blob/v2.12.1/pyproject.toml#L33

wrapt>=1.11,<2
https://github.com/PyCQA/astroid/blob/v2.12.1/pyproject.toml#L36

"lazy_object_proxy>=1.4.0"
https://github.com/PyCQA/astroid/blob/v2.12.1/pyproject.toml#L35

typed-ast>=1.4.0,<2.0
https://github.com/PyCQA/astroid/blob/v2.12.1/pyproject.toml#L37

typing-extensions>=3.10
https://github.com/PyCQA/astroid/blob/v2.12.1/pyproject.toml#L38

"setuptools~=62.6"
"wheel~=0.37.1"
https://github.com/PyCQA/astroid/blob/v2.12.1/pyproject.toml#L2

    • Check the changelogs

    https://github.com/PyCQA/astroid/blob/v2.12.1/ChangeLog

    What's New in astroid 2.12.1?
    =============================
    Release date: 2022-07-10

  • Fix a crash when inferring old-style string formatting (%) using tuples.

  • Fix a crash when None (or a value inferred as None) participates in a
    ** expression.

  • Fix a crash involving properties within if blocks.

What's New in astroid 2.12.0?

Release date: 2022-07-09

What's New in astroid 2.11.7?

Release date: 2022-07-09

What's New in astroid 2.11.6?

Release date: 2022-06-13

What's New in astroid 2.11.5?

Release date: 2022-05-09

What's New in astroid 2.11.4?

Release date: 2022-05-02

What's New in astroid 2.11.3?

Release date: 2022-04-19

What's New in astroid 2.11.2?

Release date: 2022-03-26

What's New in astroid 2.11.1?

Release date: 2022-03-22

  • Promoted getattr() from astroid.scoped_nodes.FunctionDef to its parent
    astroid.scoped_nodes.Lambda.

  • Fixed crash on direct inference via nodes.FunctionDef._infer.

    Closes #817

IndexError in FunctionDef._infer()
pylint-dev/astroid#817

What's New in astroid 2.11.0?

Release date: 2022-03-12

  • 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+.

    Closes #1410

    Replace cachedproperty with functools.cached_property (>= 3.8)
    Replace cachedproperty with functools.cached_property (>= 3.8) pylint-dev/astroid#1410

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

    Closes numpy.zeros_like false positive when using shape kwarg pylint-dev/pylint#5871

  • Only pin wrapt on the major version.

What's New in astroid 2.10.0?

Release date: 2022-02-27

What's New in astroid 2.9.3?

Release date: 2022-01-09

What's New in astroid 2.9.2?

Release date: 2022-01-04

  • Fixed regression in astroid.scoped_nodes where _is_metaclass
    was not accessible anymore.

Closes #1325

Fix import astroid.scoped_nodes
pylint-dev/astroid#1325

What's New in astroid 2.9.1?

Release date: 2021-12-31

What's New in astroid 2.9.0?

Release date: 2021-11-21

  1. There are currently no open issues mentioned at the time of the review.

    • Verify the doc_url

    There seems to be a redirect to the following location

    https://pylint.pycqa.org/projects/astroid/en/latest/?badge=latest

    • License is spdx compliant
      LGPL-2.1-or-later
    • License family is present
      LGPL
    • Verify that the build_number is correct
    • Verify if the package needs setuptools
      setuptools
      setuptools
    • Verify if the package needs wheel
      wheel
    • pip in the test section
      python
    • Veriy the test section
    • Verify if the package is architecture specific or Noarch
    • Private variables are not mentioned on the recipe For example: (_private_variable)

Results:

Based on the research findings and the results we can conclude
that it is safe to update astroid to version 2.12.1

@varlackc varlackc self-assigned this Jul 22, 2022
@varlackc varlackc marked this pull request as ready for review July 22, 2022 16:34
recipe/meta.yaml Outdated Show resolved Hide resolved
recipe/meta.yaml Show resolved Hide resolved
recipe/meta.yaml Outdated Show resolved Hide resolved
recipe/meta.yaml Show resolved Hide resolved
recipe/meta.yaml Outdated Show resolved Hide resolved
@skupr-anaconda
Copy link

skupr-anaconda commented Jul 25, 2022

I've just noticed that we need specific versions of astroid >=2.11.6,<=2.12.0-dev0 to build the latest version of pylint 2.14.5 https://github.com/PyCQA/pylint/blob/566ffca72a1a08c9e7ec14383c4710d64165c592/setup.cfg#L50
The versions 2.12.1 or 2.12.2 aren't suitable for pylint. Or pylint tests can fail.

@varlackc varlackc closed this Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment