Skip to content

Pydantic V2 Update

Change Proposal: https://fedoraproject.org/wiki/Changes/Update_To_Pydantic_Version_2

Tracking bugzilla: https://bugzilla.redhat.com/2157134

Copr: https://copr.fedorainfracloud.org/coprs/gotmax23/pydanticv2-testing/

Repository: https://git.sr.ht/~gotmax23/python-pydantic-core/tree/main/item/deps

Reviews

These packages are awaiting review.

(none)

Dependents

This tracks issues in pydantic’s dependents that need to be addressed.

  • 👍 = successful build in copr
  • ❗ = package update requires dropping support for pydantic v1
  • ✅ = patch applied

✅ dirty-equals

✅ matrix-synapse

Add pydantic v2 compatibility

👍❗ rstcheck-core

Requires pydantic v2.

✅ fastapi

New packages

(key: already imported)

  • python-pydantic-settings
    • python-pydantic v2
  • python-pydantic-extra-types
    • python-pydantic v2
  • python-pydantic v2

Lists

These source packages require pydantic:

$ fedrq wrsrc python-pydantic -F source -X
fedrq
input-remapper
matrix-synapse
psi4
python-aws-sam-translator
python-bsmschema
python-deepdiff
python-dirty-equals
python-fastapi
python-pytoolconfig
python-qcelemental
python-qcengine
python-rstcheck-core
python-versioningit

This is a more details breakdown of pydantic’s dependents:

$ fedrq wrsrc python-pydantic -F breakdown -X
Runtime:
fedrq
input-remapper
matrix-synapse
psi4
psi4
python3-aws-sam-translator
python3-bsmschema
python3-dirty-equals+pydantic
python3-fastapi
python3-pytoolconfig+validation
python3-qcelemental
python3-qcengine
python3-rstcheck-core
    13 total runtime dependencies

Buildtime:
fedrq
input-remapper
matrix-synapse
psi4
python-aws-sam-translator
python-bsmschema
python-deepdiff
python-dirty-equals
python-fastapi
python-pytoolconfig
python-qcelemental
python-qcengine
python-rstcheck-core
python-versioningit
    14 total buildtime dependencies

All SRPM names:
fedrq
input-remapper
matrix-synapse
psi4
python-aws-sam-translator
python-bsmschema
python-deepdiff
python-dirty-equals
python-fastapi
python-pytoolconfig
python-qcelemental
python-qcengine
python-rstcheck-core
python-versioningit
    14 total SRPMs

These packages pin pydantic v1:

$ fedrq pkgs -r @buildroot -Frequires \* | grep 'dist(pydantic) < 2' | grep -v 'dist(pydantic) > 2' | fedrq wr -r @buildroot -i --ee -F source
python-rstcheck-core