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

Commit

Permalink
Pin pydantic to <2.0.0 (#15862)
Browse files Browse the repository at this point in the history
Signed-off-by: Paarth Shah <[email protected]>
  • Loading branch information
PaarthShah authored and reivilibre committed Jul 4, 2023
1 parent 13fc891 commit 6498486
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 38 deletions.
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 ^=1.7.4 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.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ packaging = ">=16.1"
# 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"
# We are currently incompatible with >=2.0.0: (https://github.com/matrix-org/synapse/issues/15858)
pydantic = "^1.7.4"

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

0 comments on commit 6498486

Please sign in to comment.