polyfactory icon indicating copy to clipboard operation
polyfactory copied to clipboard

Enhancement: support 3.14

Open adhtruong opened this issue 2 months ago • 4 comments

Summary

  • Update CI to test against 3.14
  • Resolve any bugs

Basic Example

No response

Drawbacks and Impact

No response

Unresolved questions

No response

adhtruong avatar Oct 18 '25 14:10 adhtruong

From my tests, it works well, but the biggest problem here is the lack of compatibility of Pydantic V1 with Python 3.14 and newer... Thus running tests using polyfactory on Python 3.14 triggers this warning, see also #759 :

.venv/lib/python3.14/site-packages/polyfactory/factories/pydantic_factory.py:85
  /foobar/.venv/lib/python3.14/site-packages/polyfactory/factories/pydantic_factory.py:85: UserWarning: Core Pydantic V1 functionality isn't compatible with Python 3.14 or greater.
    import pydantic.v1 as pydantic_v1  # type: ignore[no-redef]

MRigal avatar Oct 27 '25 16:10 MRigal

Running tests against main and seeing issues with

  1. https://github.com/jcrist/msgspec/issues/926 f
  2. And pydantic v1 issues and warnings

adhtruong avatar Nov 15 '25 11:11 adhtruong

This is a great thing! It is necessary!

v01d-gh avatar Nov 18 '25 08:11 v01d-gh

msgspec support for 3.14 has landed https://github.com/jcrist/msgspec/releases/tag/0.20.0

ofek avatar Nov 24 '25 04:11 ofek