-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Make black[d] install + test run with 3.12 #4035
Conversation
mypy pre-commit mirror uses aiohttp and fails in 3.12:
Haven't looked for an issue etc. yet - Will check again once a real 3.9.0 comes out ... was helping test the beta for aiohttp. |
- With aiohttp >= 3.9.0 we can now install all dependencies with 3.12 - Add actions to run 3.12 - Lint still needs to be 3.11 Test: - `python3.12 -m venv /tmp/tb --upgrade-deps` - `/tmp/tb/bin/pip install tox` - `/tmp/tb/bin/pip install .[d]` - `/tmp/tb/bin/tox -e py312` ``` py312: OK (37.61=setup[3.98]+cmd[3.83,0.36,19.54,6.46,3.00,0.44] seconds) congratulations :) (37.63 seconds) ```
See #4050 for the PyPy Windows failure. |
Hah - was just researching this ... Should we run newer pypy's now too? Wonder if GitHub as support for pypy3.9 + 3.10 https://www.pypy.org/download.html |
I feel like one PyPy is enough CI to deal with :) It tends to be one of the slowest steps. |
Agree - so what if we move to only the latest pypy? That is pypy3.10 today ... Am I reading correctly we could use |
It's generally good to use the earliest still-supported version because it has the most chance of oddities. I don't know what PyPy version people generally use, though. |
According to https://foss.heptapod.net/pypy/pypy/-/issues/3958, only PyPy 3.9+ is considered supported by the PyPy project |
See, I feel the opposite here. If you're using PyPy, you're generally already making a bespoke / custom environment to live in a PyPy world. Due to this upgrading to a later version happens more frequently and is generally easier for these environments to do so. With this behavior, I don't see the advantage of us trying to support years old PyPy. I do get tho that if it runs on the oldest supported version, it will probably (not as optimally cause we keep more tech debt around) run on the latest PyPy. But I'll go with the consensus here ... I'm just sad at how long we've claimed 3.12 support but do not run any tests ... I think I'll look at making dedicated blackd CI after this so we reduce the footprint our aiohttp dependency has on our CI running. |
WIll wait for aio-libs/aiohttp#7848 - But I doubt it will be a quick fix + release ... |
I'd be OK with running PyPy 3.10 if you think that's enough. I don't have a great sense of what people who use PyPy to run Black would actually want. If we break PyPy 3.9 and people complain, we can always change it back. |
Anyone else understand the diff-shades preview fail? |
It's been failing randomly for some time. Unfortunately we don't have any clear leads. It could be excessive resource usage of some kind. |
Yeah, looks like that with being unable to cleanup:
Wonder if we can request a larger runner for diff-shades ... Like I want to do for docker build too ... |
Test:
python3.12 -m venv /tmp/tb --upgrade-deps
/tmp/tb/bin/pip install tox
/tmp/tb/bin/pip install .[d]
/tmp/tb/bin/tox -e py312