pydantic / pydantic

Data validation using Python type hints
https://docs.pydantic.dev
MIT License
19.53k stars 1.76k forks source link

Support Python 3.13 #9668

Closed musicinmybrain closed 2 days ago

musicinmybrain commented 1 week ago

Initial Checks

Description

Please consider supporting Python 3.13 soon – or at least commenting on a timeline for doing so.


In Fedora, we’ve managed to rebuild the python-pydantic-core package with Python 3.13, and all of its tests pass.

However:

It’s currently possible to test Pydantic in a Python 3.13 virtualenv with:

$ gh repo clone pydantic/pydantic
$ cd pydantic
$ python3.13 -m venv _e
$ . _e/bin/activate
(_e) $ UNSAFE_PYO3_SKIP_VERSION_CHECK=1 pip install -e .
(_e) $ pip install cloudpickle coverage[toml] dirty-equals eval-type-backport pytest pytest-mock pytest-pretty pytest-examples faker pytest-benchmark pytest-codspeed packaging
(_e) $ python -m pytest

Affected Components

sydney-runkle commented 1 week ago

@musicinmybrain,

Thanks for opening this feature request. Support for 3.13 is definitely something we want to do explicitly soon. I'll chat with the team re timeline and update here afterwards.

sydney-runkle commented 1 week ago

Definitely something we're prioritizing.

I'll pull this in once we get the new version of pyo3 into pydantic-core with 3.13 support. Hoping to have this included in v2.8 around the end of the month assuming we don't hit any major blockers.