diff --git a/poetry.lock b/poetry.lock index bf7b9ba..00173e3 100644 --- a/poetry.lock +++ b/poetry.lock @@ -26,7 +26,7 @@ name = "aiohttp" version = "3.8.4" description = "Async http client/server framework (asyncio)" category = "main" -optional = false +optional = true python-versions = ">=3.6" files = [ {file = "aiohttp-3.8.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:5ce45967538fb747370308d3145aa68a074bdecb4f3a300869590f725ced69c1"}, @@ -121,10 +121,12 @@ files = [ [package.dependencies] aiosignal = ">=1.1.2" async-timeout = ">=4.0.0a3,<5.0" +asynctest = {version = "0.13.0", markers = "python_version < \"3.8\""} attrs = ">=17.3.0" charset-normalizer = ">=2.0,<4.0" frozenlist = ">=1.1.1" multidict = ">=4.5,<7.0" +typing-extensions = {version = ">=3.7.4", markers = "python_version < \"3.8\""} yarl = ">=1.0,<2.0" [package.extras] @@ -165,7 +167,7 @@ name = "aiosignal" version = "1.3.1" description = "aiosignal: a list of registered asynchronous callbacks" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "aiosignal-1.3.1-py3-none-any.whl", hash = "sha256:f8376fb07dd1e86a584e4fcdec80b36b7f81aac666ebc724e2c090300dd83b17"}, @@ -202,7 +204,7 @@ name = "async-timeout" version = "4.0.2" description = "Timeout context manager for asyncio programs" category = "main" -optional = false +optional = true python-versions = ">=3.6" files = [ {file = "async-timeout-4.0.2.tar.gz", hash = "sha256:2163e1640ddb52b7a8c80d0a67a08587e5d245cc9c553a74a847056bc2976b15"}, @@ -212,18 +214,33 @@ files = [ [package.dependencies] typing-extensions = {version = ">=3.6.5", markers = "python_version < \"3.8\""} +[[package]] +name = "asynctest" +version = "0.13.0" +description = "Enhance the standard unittest package with features for testing asyncio libraries" +category = "main" +optional = true +python-versions = ">=3.5" +files = [ + {file = "asynctest-0.13.0-py3-none-any.whl", hash = "sha256:5da6118a7e6d6b54d83a8f7197769d046922a44d2a99c21382f0a6e4fadae676"}, + {file = "asynctest-0.13.0.tar.gz", hash = "sha256:c27862842d15d83e6a34eb0b2866c323880eb3a75e4485b079ea11748fd77fac"}, +] + [[package]] name = "attrs" version = "23.1.0" description = "Classes Without Boilerplate" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "attrs-23.1.0-py3-none-any.whl", hash = "sha256:1f28b4522cdc2fb4256ac1a020c78acf9cba2c6b461ccd2c126f3aa8e8335d04"}, {file = "attrs-23.1.0.tar.gz", hash = "sha256:6279836d581513a26f1bf235f9acd333bc9115683f14f7e8fae46c98fc50e015"}, ] +[package.dependencies] +importlib-metadata = {version = "*", markers = "python_version < \"3.8\""} + [package.extras] cov = ["attrs[tests]", "coverage[toml] (>=5.3)"] dev = ["attrs[docs,tests]", "pre-commit"] @@ -667,7 +684,7 @@ name = "frozenlist" version = "1.3.3" description = "A list-like structure which implements collections.abc.MutableSequence" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "frozenlist-1.3.3-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:ff8bf625fe85e119553b5383ba0fb6aa3d0ec2ae980295aaefa552374926b3f4"}, @@ -869,7 +886,7 @@ name = "multidict" version = "6.0.4" description = "multidict implementation" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "multidict-6.0.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:0b1a97283e0c85772d613878028fec909f003993e1007eafa715b24b377cb9b8"}, @@ -2014,7 +2031,7 @@ name = "yarl" version = "1.9.2" description = "Yet another URL library" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "yarl-1.9.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:8c2ad583743d16ddbdf6bb14b5cd76bf43b0d0006e918809d5d4ddf7bde8dd82"}, @@ -2096,6 +2113,7 @@ files = [ [package.dependencies] idna = ">=2.0" multidict = ">=4.0" +typing-extensions = {version = ">=3.7.4", markers = "python_version < \"3.8\""} [[package]] name = "zipp" @@ -2122,4 +2140,4 @@ redis = ["redis"] [metadata] lock-version = "2.0" python-versions = "^3.7" -content-hash = "2bc8487caa2aa1bffd3e97013826ba5c137de0b4d26902026b77c7e78374ece1" +content-hash = "13ef57fe1e443a25b6d1bbd7157e78e57c937d880a92cf3c48ca6216058a5748" diff --git a/pyproject.toml b/pyproject.toml index 5f41d1c..543ee55 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,17 +23,16 @@ aiomcache = { version = "*", optional = true } pendulum = "*" aiobotocore = { version = "^1.4.1", optional = true } typing-extensions = { version = ">=4.1.0" } -aiohttp = { version = ">=3.8.3", markers = "python_version >= \"3.11\"" } [tool.poetry.group.linting] optional = true [tool.poetry.group.linting.dependencies] -mypy = { version = "^1.2.0", markers = "python_version >= \"3.10\"" } -pyright = { version = "^1.1.306", markers="python_version >= \"3.10\"" } -types-aiobotocore = { extras = ["dynamodb"], version = "^2.5.0.post2", markers = "python_version >= \"3.10\"" } -types-redis = { version = "^4.5.4.2", markers = "python_version >= \"3.10\"" } -ruff = { version = "^0.0.267", markers = "python_version >= \"3.10\"" } +mypy = { version = "^1.2.0", python = "^3.10" } +pyright = { version = "^1.1.306", python = "^3.10" } +types-aiobotocore = { extras = ["dynamodb"], version = "^2.5.0.post2", python = "^3.10" } +types-redis = { version = "^4.5.4.2", python = "^3.10" } +ruff = { version = "^0.0.267", python = "^3.10" } [tool.poetry.group.dev.dependencies] pytest = "*" @@ -49,7 +48,7 @@ dynamodb = ["aiobotocore"] all = ["redis", "aiomcache", "aiobotocore"] [tool.mypy] -files = ["fastapi_cache", "examples", "tests"] +files = ["."] python_version = "3.7" # equivalent of --strict warn_unused_configs = true @@ -72,11 +71,10 @@ module = "examples.*.main" ignore_errors = true [tool.pyright] -include = ["fastapi_cache", "tests", "examples"] strict = ["fastapi_cache", "tests"] pythonVersion = "3.7" -[tool.pytest] +[tool.pytest.ini_options] addopts = "-p no:warnings" [tool.ruff]