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

Upgrade astroid to 3.0.0a6 #8822

Merged
merged 4 commits into from
Jul 8, 2023
Merged

Upgrade astroid to 3.0.0a6 #8822

merged 4 commits into from
Jul 8, 2023

Conversation

jacobtylerwalls
Copy link
Member

Type of Changes

Type
✨ New feature

Description

Prerequisite for adding Python 3.12 compatibility. 3.12 CI jobs will be added later in #8718.

Skipping news because we have several pre-releases to go before announcing the astroid version to be used for 3.0 final.

@jacobtylerwalls jacobtylerwalls added Astroid Related to astroid Skip news 🔇 This change does not require a changelog entry labels Jul 4, 2023
@jacobtylerwalls jacobtylerwalls added this to the 3.0.0a7 milestone Jul 4, 2023
pyproject.toml Outdated Show resolved Hide resolved
requirements_test_min.txt Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jul 4, 2023

Codecov Report

Merging #8822 (17cc899) into main (f815e9f) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #8822   +/-   ##
=======================================
  Coverage   95.89%   95.90%           
=======================================
  Files         173      173           
  Lines       18511    18515    +4     
=======================================
+ Hits        17752    17756    +4     
  Misses        759      759           
Impacted Files Coverage Δ
pylint/checkers/base/basic_checker.py 97.88% <100.00%> (ø)
pylint/checkers/base/basic_error_checker.py 95.51% <100.00%> (ø)
pylint/checkers/base/docstring_checker.py 97.67% <100.00%> (ø)
pylint/checkers/base/name_checker/checker.py 98.59% <100.00%> (ø)
pylint/checkers/classes/class_checker.py 93.38% <100.00%> (+0.02%) ⬆️
pylint/checkers/format.py 96.46% <100.00%> (ø)
pylint/checkers/imports.py 94.21% <100.00%> (ø)
pylint/checkers/newstyle.py 96.15% <100.00%> (ø)
pylint/checkers/refactoring/not_checker.py 97.22% <100.00%> (ø)
pylint/checkers/refactoring/refactoring_checker.py 98.23% <100.00%> (ø)
... and 9 more

@jacobtylerwalls
Copy link
Member Author

jacobtylerwalls commented Jul 4, 2023

Working on patch for the stdlib primer issue (regression in pylint-dev/astroid#2231) 👀

EDIT: see pylint-dev/astroid#2235

@jacobtylerwalls jacobtylerwalls mentioned this pull request Jul 4, 2023
@jacobtylerwalls jacobtylerwalls marked this pull request as ready for review July 4, 2023 20:16
@jacobtylerwalls jacobtylerwalls requested a review from DudeNr33 as a code owner July 4, 2023 20:16
@jacobtylerwalls jacobtylerwalls added the Needs astroid update Needs an astroid update (probably a release too) before being mergable label Jul 4, 2023
@jacobtylerwalls
Copy link
Member Author

Blocked by pylint-dev/astroid#2237.

@github-actions

This comment has been minimized.

@jacobtylerwalls
Copy link
Member Author

jacobtylerwalls commented Jul 6, 2023

Primer result isn't helpful (same result on #8824). I ran it locally. No change. Something's up on CI. I reopened #8790.

I'll remove the commit that pins to my fix branch. Then I suggest merging this in the next few days. main will fail until we get astroid 3.0.0a7 with pylint-dev/astroid#2235, but then the question is whether we do a release for a single hotfix only OR do we just roll in the try node from pylint-dev/astroid#1867 also and publish 3.0.0a7 with that. Slight preference for the latter. The primer being down for a couple days is fine. Then we can work on compatibility with the new try node in a separate PR from this one (#7767).

@Pierre-Sassoulas your thoughts? 🙏

@Pierre-Sassoulas
Copy link
Member

Main would fail until we release astroid 3.0.0a7 ?

@jacobtylerwalls
Copy link
Member Author

Yeah, if we merge this then main will fail until we upgrade to the next astroid alpha. If that's not okay, then we can do an astroid alpha just for the regression fix. I just didn't want to create extra work.

Or we can hold this PR and merge it into #7767, but I wanted to avoid that because they're two large PRs.

@Pierre-Sassoulas
Copy link
Member

Let's release a new astroid, this is less work than telling all contributors that the primer also fail on main (it's not that much work, two tbump and a tag). Should I release asap ?

@jacobtylerwalls
Copy link
Member Author

Sure! Thanks.

@jacobtylerwalls
Copy link
Member Author

@Pierre-Sassoulas the pin didn't work. The error message from pip is difficult to make sense of. I'll go see if there's an open issue against pip. In any case, should I just rebase #7767 on top of these first three commits and just do a single PR anyway?

@Pierre-Sassoulas
Copy link
Member

Let's go with a single PR it seems to be the simpler option ? If not do whatever you find more conveniant :D I'm on mobile I can't release astroid 3.0.0a7 right now, I expect to be able to before tommorow

@jacobtylerwalls jacobtylerwalls removed the Needs astroid update Needs an astroid update (probably a release too) before being mergable label Jul 8, 2023
@jacobtylerwalls
Copy link
Member Author

Never mind! One file said "astroid" and the other said "astroid.git", and standardizing them fixed the pip resolver.

This should be good to merge.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2023

🤖 According to the primer, this change has no effect on the checked open source code. 🤖🎉

This comment was generated for commit 17cc899

@jacobtylerwalls jacobtylerwalls merged commit 816bea7 into main Jul 8, 2023
@jacobtylerwalls jacobtylerwalls deleted the upgrade-astroid branch July 8, 2023 13:46
@jacobtylerwalls jacobtylerwalls removed the request for review from DudeNr33 July 8, 2023 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Astroid Related to astroid Skip news 🔇 This change does not require a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants