Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Pin pydantic to <2.0.0 #15862

Merged
merged 3 commits into from
Jul 4, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelog.d/15862.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Pin `pydantic` to <2.0.0 to avoid backwards-incompatible API changes from the 2.0.0 release.
Resolves https://github.com/matrix-org/synapse/issues/15858.
Contributed by @PaarthShah.
74 changes: 37 additions & 37 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,9 @@ packaging = ">=16.1"
# At the time of writing, we only use functions from the version `importlib.metadata`
# which shipped in Python 3.8. This corresponds to version 1.4 of the backport.
importlib_metadata = { version = ">=1.4", python = "<3.8" }
# This is the most recent version of Pydantic with available on common distros.
pydantic = ">=1.7.4"
# This is the most recent version of Pydantic with available on common distros
# We are currently incompatible with >=2.0.0: https://github.com/matrix-org/synapse/issues/15858
pydantic = "<2.0.0"
PaarthShah marked this conversation as resolved.
Show resolved Hide resolved

# This is for building the rust components during "poetry install", which
# currently ignores the `build-system.requires` directive (c.f.
Expand Down
Loading