This commit is contained in:
long2ice
2024-07-24 22:24:30 +08:00
parent 701d83fec3
commit 5f985a8506
8 changed files with 2279 additions and 1520 deletions

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "fastapi-cache2"
version = "0.2.1"
version = "0.2.2"
description = "Cache for FastAPI"
authors = ["long2ice <long2ice@gmail.com>"]
license = "Apache-2.0"
@@ -15,22 +15,22 @@ packages = [
include = ["LICENSE", "README.md"]
[tool.poetry.dependencies]
python = "^3.7"
python = "^3.8"
fastapi = "*"
uvicorn = "*"
redis = { version = "^4.2.0rc1", optional = true }
aiomcache = { version = "*", optional = true }
pendulum = "*"
aiobotocore = { version = ">=1.4.1,<3.0.0", optional = true }
typing-extensions = { version = ">=4.1.0" }
importlib-metadata = {version = "^6.6.0", python = "<3.8"}
importlib-metadata = { version = "^6.6.0", python = "<3.8" }
pendulum = "^3.0.0"
aiomcache = { version = "^0.8.2", optional = true }
aiobotocore = {version = "^2.13.1", optional = true}
[tool.poetry.group.linting]
optional = true
[tool.poetry.group.linting.dependencies]
mypy = { version = "^1.2.0", python = "^3.10" }
pyright = { version = "^1.1.306", python = "^3.10" }
pyright = { version = "^1.1.373", 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,<0.1.2", python = "^3.10" }
@@ -57,7 +57,7 @@ all = ["redis", "aiomcache", "aiobotocore"]
[tool.mypy]
files = ["."]
python_version = "3.7"
python_version = "3.8"
# equivalent of --strict
warn_unused_configs = true
disallow_any_generics = true
@@ -72,7 +72,7 @@ warn_unused_ignores = true
warn_return_any = true
no_implicit_reexport = true
strict_equality = true
strict_concatenate = true
extra_checks = true
[[tool.mypy.overrides]]
module = "examples.*.main"
@@ -90,7 +90,7 @@ issue_format = "[#{issue}](https://github.com/long2ice/fastapi-cache/issues/{iss
[tool.pyright]
strict = ["fastapi_cache", "tests"]
pythonVersion = "3.7"
pythonVersion = "3.8"
[tool.pytest.ini_options]
addopts = "-p no:warnings"
@@ -99,16 +99,16 @@ addopts = "-p no:warnings"
ignore = ["E501"]
line-length = 80
select = [
"B", # flake8-bugbear
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"S", # flake8-bandit
"W", # pycodestyle warnings
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"S", # flake8-bandit
"W", # pycodestyle warnings
"UP", # pyupgrade
]
target-version = "py37"
target-version = "py38"
[build-system]
requires = ["poetry-core"]