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

Require Python 3.7.2 #1542

Merged
merged 5 commits into from
May 10, 2022
Merged

Conversation

jacobtylerwalls
Copy link
Member

Description

Require Python 3.7.2 to run astroid. Partner to pylint-dev/pylint#5921.

One benefit of dropping 3.6 is to reduce risk from proposed performance-enhancing changes in #1536, where according to the complicated history of python/cpython#5481 and its (initial?) reversion on 3.6, it is possible that the behavior might vary there.

Type of Changes

Type
🔨 Refactoring

@jacobtylerwalls jacobtylerwalls added the Maintenance Discussion or action around maintaining astroid or the dev workflow label May 4, 2022
@jacobtylerwalls jacobtylerwalls added this to the 2.12.0 milestone May 4, 2022
@coveralls
Copy link

coveralls commented May 4, 2022

Pull Request Test Coverage Report for Build 2301412160

  • 19 of 19 (100.0%) changed or added relevant lines in 7 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.002%) to 91.648%

Totals Coverage Status
Change from base Build 2293907385: 0.002%
Covered Lines: 9130
Relevant Lines: 9962

💛 - Coveralls

@DanielNoord
Copy link
Collaborator

I think we should block this until pylint 2.14 has been released. We might need to do a patch release for 2.13 still.

@Pierre-Sassoulas Pierre-Sassoulas added the Blocked 🚧 A PR or issue blocked by another PR or issue label May 4, 2022
Copy link
Collaborator

@DanielNoord DanielNoord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I spotted one if sys.version_info >= (3, 6, 2): in astroid/nodes/scoped_nodes/scoped_nodes.py.

There is also a match for 36 in the tox.ini file which can be removed.

Grepping for minver="3.7 will also show a couple @test_utils.require_version( decorators in tests that can be removed. Note that there also minver="3.7.2" matches.

Rest LGTM 😄

@DanielNoord DanielNoord removed the Blocked 🚧 A PR or issue blocked by another PR or issue label May 10, 2022
Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Pierre-Sassoulas
Copy link
Member

The issue with python 3.11 come from main. I think it would be reasonable to temporarily skip this test for python 3.11, because the alternative seems to be making astroid understand the 3.11 code.

Copy link
Member

@cdce8p cdce8p left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Regarding the 3.11 test failure: Tbh I'm not really sure what the issue is. I believe it appeared just recently (maybe with 3.11.0b1) but when testing that version locally, everything works fine. Maybe it's a linux and / or Github actions specific thing. (Only tested MacOS.)

@jacobtylerwalls jacobtylerwalls merged commit 301b559 into pylint-dev:main May 10, 2022
@jacobtylerwalls jacobtylerwalls deleted the require-py-37 branch May 10, 2022 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance Discussion or action around maintaining astroid or the dev workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants