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
Browse files Browse the repository at this point in the history
Signed-off-by: Paarth Shah <[email protected]>
  • Loading branch information
PaarthShah committed Jul 2, 2023
1 parent 13fc891 commit 1c07f85
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 39 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 <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"

# 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 1c07f85

Please sign in to comment.