diff --git a/poetry.lock b/poetry.lock index 8ff7d02..7459b66 100644 --- a/poetry.lock +++ b/poetry.lock @@ -673,7 +673,9 @@ files = [ ] [package.dependencies] -greenlet = {version = "!=0.4.17", markers = "python_version >= \"3\" and platform_machine == \"aarch64\" or python_version >= \"3\" and platform_machine == \"ppc64le\" or python_version >= \"3\" and platform_machine == \"x86_64\" or python_version >= \"3\" and platform_machine == \"amd64\" or python_version >= \"3\" and platform_machine == \"AMD64\" or python_version >= \"3\" and platform_machine == \"win32\" or python_version >= \"3\" and platform_machine == \"WIN32\""} +aiosqlite = {version = "*", optional = true, markers = "python_version >= \"3\" and extra == \"aiosqlite\""} +greenlet = {version = "!=0.4.17", optional = true, markers = "python_version >= \"3\" and platform_machine == \"aarch64\" or python_version >= \"3\" and platform_machine == \"ppc64le\" or python_version >= \"3\" and platform_machine == \"x86_64\" or python_version >= \"3\" and platform_machine == \"amd64\" or python_version >= \"3\" and platform_machine == \"AMD64\" or python_version >= \"3\" and platform_machine == \"win32\" or python_version >= \"3\" and platform_machine == \"WIN32\" or python_version >= \"3\" and extra == \"aiosqlite\""} +typing-extensions = {version = "!=3.10.0.1", optional = true, markers = "extra == \"aiosqlite\""} [package.extras] aiomysql = ["aiomysql", "greenlet (!=0.4.17)"] @@ -714,6 +716,18 @@ anyio = ">=3.4.0,<5" [package.extras] full = ["httpx (>=0.22.0)", "itsdangerous", "jinja2", "python-multipart", "pyyaml"] +[[package]] +name = "typing-extensions" +version = "4.5.0" +description = "Backported and Experimental Type Hints for Python 3.7+" +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "typing_extensions-4.5.0-py3-none-any.whl", hash = "sha256:fb33085c39dd998ac16d1431ebc293a8b3eedd00fd4a32de0ff79002c19511b4"}, + {file = "typing_extensions-4.5.0.tar.gz", hash = "sha256:5cb5f4a79139d699607b3ef622a1dedafa84e115ab0024e0d9c044a9479ca7cb"}, +] + [[package]] name = "ulid-py" version = "1.1.0" @@ -760,4 +774,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = "^3.11" -content-hash = "a43dcab0548fc3be276e10ff19fe108211e5bdc42a8a161c744eeb4d20b14294" +content-hash = "e5420c03a1175d193f337682c451c648a1c41c6535a7ad7172a418f6c6b72e33" diff --git a/pyproject.toml b/pyproject.toml index 08c45e9..f044a77 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,6 +14,7 @@ ulid-py = "^1.1.0" databases = {extras = ["sqlite"], version = "^0.7.0"} uvicorn = "^0.21" httpx = "^0.23.3" +sqlalchemy = {version = "^1.4", extras = ["aiosqlite"]} [tool.poetry.group.dev] optional = true diff --git a/scripts/tests b/scripts/tests index df8b5a0..e16acd9 100755 --- a/scripts/tests +++ b/scripts/tests @@ -10,6 +10,6 @@ trap 'rm "$dbfile"' EXIT TERM INT QUIT [ -z "${DEBUG:-}" ] || set -x -SQLALCHEMY_WARN_20=1 \ +export SQLALCHEMY_WARN_20=1 # XXX remove when we switched to SQLAlchemy 2.0 UNWIND_STORAGE="$dbfile" \ python -m pytest "$@"