uvicorn-gunicorn-docker icon indicating copy to clipboard operation
uvicorn-gunicorn-docker copied to clipboard

✨ Add support for Python 3.10

Open tiangolo opened this issue 3 years ago • 9 comments

✨ Add support for Python 3.10

This will have to wait until Uvicorn requires httptools 0.3.0 with support for Python 3.10 https://github.com/MagicStack/httptools/releases/tag/v0.3.0

tiangolo avatar Oct 26 '21 17:10 tiangolo

#111 will allow this to build. Once installing gcc for python-slim image I can build all 3.10 images successfully.

hingston avatar Jan 15 '22 18:01 hingston

Is it an option to pin httptools version requirement ourselves to httptools>=0.3.0 ?

Uvicorn defines it in such boundaries where this should possible.

https://github.com/encode/uvicorn/blob/efdbe7a4a6c94f34c35d751fb63391136b4e90e4/setup.py#L54-L57

extra_requirements = [
    "websockets>=10.0",
    "httptools>=0.2.0,<0.4.0",
    "uvloop>=0.14.0,!=0.15.0,!=0.15.1; " + env_marker_cpython,

EDIT: Indeed! This is only possible since 8.11.2021, when uvicorn changed the version pinning for httptools: https://github.com/encode/uvicorn/pull/1243

skraus-dev avatar Feb 02 '22 18:02 skraus-dev

Hi @tiangolo , wanted to check if there is anything pending for this PR to be merged? I will try taking a shot at it, if anything else is required for this to complete. Thanks.

deshetti avatar Feb 10 '22 14:02 deshetti

Hey @tiangolo, any updates here? I'm planning to update my app to use python 3.10 and this release would help a lot

thiagosalvatore avatar Feb 22 '22 16:02 thiagosalvatore

uvicorn 0.17.6 now requires httptools 0.4.0, so this is not blocked anymore (or at least we're one step closer to being unblocked).

pmarcelll avatar Mar 29 '22 13:03 pmarcelll

This looks like it can be re-run, though an update to 0.17.6 as mentioned by dependabot would be needed! Looking forward to the performance increases on MacOS! ✨⚡️

SionAbes avatar Mar 31 '22 07:03 SionAbes

@tiangolo uvicorn bumped httptools in march to >=0.4.0. see: https://github.com/encode/uvicorn/pull/1400 could you please provide support for python 3.10?

padauer avatar May 06 '22 10:05 padauer

the project is still maintained ?

sylvainmouquet avatar May 24 '22 11:05 sylvainmouquet

Just bumping 🙌

AlTosterino avatar Jun 13 '22 11:06 AlTosterino

Bump as well

tienhm0202 avatar Oct 05 '22 02:10 tienhm0202

bump!

MarlieChiller avatar Oct 21 '22 12:10 MarlieChiller

bump!

bazylhorsey avatar Nov 01 '22 17:11 bazylhorsey

Hey @tiangolo, is there a timeline for this change?

karamfil avatar Nov 11 '22 09:11 karamfil

Looking forward to this change

agates4 avatar Nov 18 '22 13:11 agates4

Done! :rocket: :tada:

Thanks for the input everyone! :cake:

tiangolo avatar Nov 25 '22 12:11 tiangolo