rcpch / digital-growth-charts-server

RCPCH's open source Digital Growth Chart API
https://growth.rcpch.ac.uk/
GNU Affero General Public License v3.0
16 stars 11 forks source link

Pin pydantic to v1 #204

Closed mbarton closed 8 months ago

mbarton commented 8 months ago

Fixes an error at start up as the previously unpinned dependency was pulling in v2 which has several breaking changes.

pydantic.errors.PydanticImportError: BaseSettings has been moved to the pydantic-settings package. See https://docs.pydantic.dev/2.6/migration/#basesettings-has-moved-to-pydantic-settings for more details.

There's already a PR to upgrade https://github.com/rcpch/digital-growth-charts-server/pull/197 but this just gets the live branch running locally again.

mbarton commented 8 months ago

Cool thanks! I'm broadly in favour of pinning as specific version as possible so pip freeze sounds good