From a935ddcffc8f6aa18bba4c8e7f41ac3937f80a4b Mon Sep 17 00:00:00 2001 From: Benjamin A. Beasley Date: Jan 07 2023 22:53:55 +0000 Subject: Commit patch for upstream PR#5799 --- diff --git a/5799.patch b/5799.patch new file mode 100644 index 0000000..81cd987 --- /dev/null +++ b/5799.patch @@ -0,0 +1,29 @@ +From bd2295f1a26b0be28f58444c53008b72a54797d2 Mon Sep 17 00:00:00 2001 +From: "Benjamin A. Beasley" +Date: Sun, 18 Dec 2022 11:19:34 -0500 +Subject: [PATCH] Upgrade databases and SQLAlchemy + +Incompatibilities with recent SQLAlchemy versions are fixed in databases +0.7.0. +--- + pyproject.toml | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index b29549f5c86..b89c3d5bd92 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -58,11 +58,9 @@ test = [ + "isort >=5.0.6,<6.0.0", + "httpx >=0.23.0,<0.24.0", + "email_validator >=1.1.1,<2.0.0", +- # TODO: once removing databases from tutorial, upgrade SQLAlchemy +- # probably when including SQLModel +- "sqlalchemy >=1.3.18,<1.4.43", ++ "sqlalchemy >=1.4.42,<1.5", + "peewee >=3.13.3,<4.0.0", +- "databases[sqlite] >=0.3.2,<0.7.0", ++ "databases[sqlite] >=0.7.0,<0.8.0", + "orjson >=3.2.1,<4.0.0", + "ujson >=4.0.1,!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0,<6.0.0", + "python-multipart >=0.0.5,<0.0.6",