mirror of
https://github.com/long2ice/fastapi-cache.git
synced 2026-03-25 04:57:54 +00:00
82 lines
2.1 KiB
TOML
82 lines
2.1 KiB
TOML
[tool.poetry]
|
|
name = "fastapi-cache2"
|
|
version = "0.2.1"
|
|
description = "Cache for FastAPI"
|
|
authors = ["long2ice <long2ice@gmail.com>"]
|
|
license = "Apache-2.0"
|
|
readme = "README.md"
|
|
homepage = "https://github.com/long2ice/fastapi-cache"
|
|
repository = "https://github.com/long2ice/fastapi-cache.git"
|
|
documentation = "https://github.com/long2ice/fastapi-cache"
|
|
keywords = ["fastapi", "cache", "caching"]
|
|
packages = [
|
|
{ include = "fastapi_cache" }
|
|
]
|
|
include = ["LICENSE", "README.md"]
|
|
|
|
[tool.poetry.dependencies]
|
|
python = "^3.7"
|
|
fastapi = "*"
|
|
uvicorn = "*"
|
|
redis = { version = "^4.2.0rc1", optional = true }
|
|
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.dev.dependencies]
|
|
flake8 = "*"
|
|
isort = "*"
|
|
black = "*"
|
|
pytest = "*"
|
|
requests = "*"
|
|
coverage = "^6.5.0"
|
|
httpx = "*"
|
|
mypy = "^1.2.0"
|
|
types-redis = "^4.5.4.2"
|
|
pyright = "^1.1.306"
|
|
types-aiobotocore = { extras = ["dynamodb"], version = "^2.5.0.post2" }
|
|
|
|
[build-system]
|
|
requires = ["poetry>=0.12"]
|
|
build-backend = "poetry.masonry.api"
|
|
|
|
[tool.poetry.extras]
|
|
redis = ["redis"]
|
|
memcache = ["aiomcache"]
|
|
dynamodb = ["aiobotocore"]
|
|
all = ["redis", "aiomcache", "aiobotocore"]
|
|
|
|
[tool.black]
|
|
line-length = 100
|
|
target-version = ['py36', 'py37', 'py38', 'py39']
|
|
|
|
[tool.mypy]
|
|
files = ["fastapi_cache", "examples", "tests"]
|
|
python_version = "3.7"
|
|
# equivalent of --strict
|
|
warn_unused_configs = true
|
|
disallow_any_generics = true
|
|
disallow_subclassing_any = true
|
|
disallow_untyped_calls = true
|
|
disallow_untyped_defs = true
|
|
disallow_incomplete_defs = true
|
|
check_untyped_defs = true
|
|
disallow_untyped_decorators = true
|
|
warn_redundant_casts = true
|
|
warn_unused_ignores = true
|
|
warn_return_any = true
|
|
no_implicit_reexport = true
|
|
strict_equality = true
|
|
strict_concatenate = true
|
|
|
|
[[tool.mypy.overrides]]
|
|
module = "examples.*.main"
|
|
ignore_errors = true
|
|
|
|
[tool.pyright]
|
|
include = ["fastapi_cache", "tests", "examples"]
|
|
strict = ["fastapi_cache", "tests"]
|
|
pythonVersion = "3.7"
|