Looks like we only use orjson to speed up (de)serialization, so maybe it could be an optional-dependency, which is required in non-pypy environment?
Suggestion:
Setting a markers = "platform_python_implementation != 'PyPy'" in pyproject.toml and use another JSON parser to de(serialize) JSON (for example, pydantic-core's JSON parser or the std's one) if orjson is not installed.
Issue you'd like to raise.
Looks like we only use
orjson
to speed up (de)serialization, so maybe it could be an optional-dependency, which is required in non-pypy environment?Suggestion:
Setting a
markers = "platform_python_implementation != 'PyPy'"
inpyproject.toml
and use another JSON parser to de(serialize) JSON (for example, pydantic-core's JSON parser or the std's one) iforjson
is not installed.