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

Prevent use on Python 3.12.5 #4447

Merged
merged 10 commits into from
Sep 7, 2024
Merged

Prevent use on Python 3.12.5 #4447

merged 10 commits into from
Sep 7, 2024

Conversation

hauntsaninja
Copy link
Collaborator

Fixes #4446
See python/cpython#123821

It's possible this is too strict? We could instead do this anytime the AST safety check fails, but feels weird to have that happen non-deterministically

Fixes psf#4446
See python/cpython#123821

It's possible this is too strict? We could instead do this anytime the
AST safety check fails, but feels weird to have that happen
non-deterministically
@JelleZijlstra
Copy link
Collaborator

I think this is probably worth it, otherwise we may get a trickle of hard-to-debug bug reports for the next few years.

We could also consider setting Requires-Python to something like >=3.8,!=3.12.5, though I don't know whether packaging tools will be happy with that.

Also, great work figuring this out!

@graingert
Copy link
Contributor

Setting Requires-Python won't do what you want. pip will just download an older version of black without the Requires-Python constraint

@JelleZijlstra
Copy link
Collaborator

Setting Requires-Python won't do what you want. pip will just download an older version of black without the Requires-Python constraint

Yeah I was worried about that.

@hauntsaninja hauntsaninja merged commit 9e13708 into psf:main Sep 7, 2024
51 checks passed
@hauntsaninja hauntsaninja deleted the 3-12-5 branch September 7, 2024 23:41
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.

On Apple M1, Black often drops the ":9]=" out of f"{...[:9]=}", as Internal Error
3 participants