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

Avoid ast deprecation warnings on Python 3.12 #10981

Closed
wants to merge 1 commit into from

Conversation

bluetech
Copy link
Member

Fix #10977.

Marking as draft until we can verify the fix on next py312 alpha/beta release.

Copy link
Member

@Zac-HD Zac-HD 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 to me!

Alternatively, we might just wait for the Python 3.7 end of life in June, and then refactor to use the new nodes only since we'll presumably want to do that eventually.

@RonnyPfannschmidt
Copy link
Member

Wondering if early drop of 3.7 makes sense

We could probably anhilate quite some support code

@nicoddemus
Copy link
Member

nicoddemus commented May 16, 2023

Wondering if early drop of 3.7 makes sense

I would rather not having to "justify" that decision to the community... whenever we drop a version we get some flak for it, I think we would get even more flak by just dropping a Python version which is still supported.

I think we can wait until it is officially dropped before going forward with pytest itself dropping it.

@Zac-HD
Copy link
Member

Zac-HD commented May 16, 2023

It's also against policy, per https://docs.pytest.org/en/stable/backwards-compatibility.html#python-version-support

(though it might be nice to link from that page to https://devguide.python.org/versions/ ...)

@A5rocks
Copy link

A5rocks commented May 22, 2023

Hi, the Python 3.12 beta is now out! https://blog.python.org/2023/05/python-3120-beta-1-released.html

@bluetech bluetech force-pushed the py312-ast-deprecations branch from 9fb0fce to bdb453d Compare May 23, 2023 11:53
@bluetech
Copy link
Member Author

Tried it but still not available in github actions. Seems like we need to wait until it shows up here: https://github.com/actions/python-versions/releases

@bluetech
Copy link
Member Author

I'm going to fold this PR into #10894 to make things easier to test and backport later.

@bluetech bluetech closed this May 23, 2023
@bluetech bluetech mentioned this pull request May 23, 2023
@bluetech bluetech deleted the py312-ast-deprecations branch September 11, 2023 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Python 3.12] Assertion rewriting triggers DeprecationWarning
5 participants