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

Exclude orjson from dependencies in PyPy environments #11720

Closed
wants to merge 3 commits into from

Conversation

rkrell
Copy link

@rkrell rkrell commented Jun 14, 2024

fastapi 0.111.0 could not be built in a PyPy venv due to a officially defined incompatibility of orjson to PyPy. This changes makes fastapi usable again in PyPy.

Resolves discussion #11659.

fastapi 0.111.0 could not be built in a PyPy venv due to a officially defined incompatibility of orjson to PyPy. This changes makes fastapi usable again in PyPy.
@tiangolo
Copy link
Owner

📝 Docs preview for commit 8252dc9 at: https://3880f3c4.fastapitiangolo.pages.dev

@tiangolo
Copy link
Owner

📝 Docs preview for commit 9426427 at: https://d55701a9.fastapitiangolo.pages.dev

@tiangolo
Copy link
Owner

Thank you! ☕

Given this and another report, I decided to remove orjson and ujson from the default dependencies. They are still included with pip install "fastapi[all]" but not with pip install fastapi. (#11842)

That change is now available in FastAPI 0.111.1. 🚀

Thanks for letting me know and for the fix PR! 🍰

@tiangolo tiangolo closed this Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants