conda-forge / conda-smithy

The tool for managing conda-forge feedstocks.
https://conda-forge.org/
BSD 3-Clause "New" or "Revised" License
146 stars 170 forks source link

Investigate `deprecated` Pydantic Field argument #1901

Open ytausch opened 3 months ago

ytausch commented 3 months ago

Comment:

We currently set deprecated as argument for Pydantic fields, which raises the following warning:

PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 'deprecated'). Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.6/migration/

Also, Pydantic adds a deprecated option (with the same name!) probably in 2.7: https://github.com/conda-forge/conda-smithy/pull/1756#issuecomment-2002129835

This should be investigated.