2020-08-26 18:04:57 +08:00
|
|
|
[tool.poetry]
|
|
|
|
|
name = "fastapi-cache2"
|
2023-02-15 10:43:01 +08:00
|
|
|
version = "0.2.1"
|
2020-08-26 18:04:57 +08:00
|
|
|
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]
|
2020-10-08 15:10:34 +08:00
|
|
|
python = "^3.7"
|
2021-03-20 14:42:29 +08:00
|
|
|
fastapi = "*"
|
|
|
|
|
uvicorn = "*"
|
2022-08-07 21:11:47 +08:00
|
|
|
redis = { version = "^4.2.0rc1", optional = true }
|
|
|
|
|
aiomcache = { version = "*", optional = true }
|
2021-09-17 10:19:56 +08:00
|
|
|
pendulum = "*"
|
2023-05-16 13:17:50 +00:00
|
|
|
aiobotocore = { version = ">=1.4.1,<3.0.0", optional = true }
|
2023-05-09 15:30:46 +01:00
|
|
|
typing-extensions = { version = ">=4.1.0" }
|
2023-05-17 18:09:52 +01:00
|
|
|
importlib-metadata = {version = "^6.6.0", python = "<3.8"}
|
2020-08-26 18:04:57 +08:00
|
|
|
|
2023-05-15 17:09:24 +01:00
|
|
|
[tool.poetry.group.linting]
|
|
|
|
|
optional = true
|
|
|
|
|
|
|
|
|
|
[tool.poetry.group.linting.dependencies]
|
2023-05-16 12:40:25 +01:00
|
|
|
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" }
|
2023-10-20 08:26:14 +00:00
|
|
|
ruff = { version = ">=0.0.267,<0.1.2", python = "^3.10" }
|
2023-05-15 17:09:24 +01:00
|
|
|
|
2023-02-15 10:49:35 +08:00
|
|
|
[tool.poetry.group.dev.dependencies]
|
2020-08-26 18:04:57 +08:00
|
|
|
pytest = "*"
|
2022-09-11 12:33:10 +08:00
|
|
|
requests = "*"
|
2023-05-16 13:46:35 +00:00
|
|
|
coverage = ">=6.5,<8.0"
|
2023-02-15 10:49:35 +08:00
|
|
|
httpx = "*"
|
2023-05-15 15:20:53 +01:00
|
|
|
tox = "^4.5.1"
|
2023-05-17 17:24:00 +01:00
|
|
|
towncrier = "^22.12.0"
|
2020-08-26 18:04:57 +08:00
|
|
|
|
2023-05-16 17:54:16 +01:00
|
|
|
[tool.poetry.group.distributing]
|
|
|
|
|
optional = true
|
|
|
|
|
|
|
|
|
|
[tool.poetry.group.distributing.dependencies]
|
|
|
|
|
twine = { version = "^4.0.2", python = "^3.10" }
|
|
|
|
|
|
2020-08-26 18:04:57 +08:00
|
|
|
[tool.poetry.extras]
|
2022-08-07 21:11:47 +08:00
|
|
|
redis = ["redis"]
|
2020-08-26 18:04:57 +08:00
|
|
|
memcache = ["aiomcache"]
|
2023-05-09 17:33:07 +01:00
|
|
|
dynamodb = ["aiobotocore"]
|
|
|
|
|
all = ["redis", "aiomcache", "aiobotocore"]
|
2021-10-19 11:56:51 +08:00
|
|
|
|
2023-05-09 17:08:32 +01:00
|
|
|
[tool.mypy]
|
2023-05-16 12:40:25 +01:00
|
|
|
files = ["."]
|
2023-05-09 17:30:58 +01:00
|
|
|
python_version = "3.7"
|
2023-05-09 17:08:32 +01:00
|
|
|
# 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
|
2023-05-09 17:33:07 +01:00
|
|
|
|
2023-05-17 17:24:00 +01:00
|
|
|
[tool.towncrier]
|
|
|
|
|
directory = "changelog.d"
|
|
|
|
|
filename = "CHANGELOG.md"
|
|
|
|
|
package = "fastapi_cache"
|
|
|
|
|
start_string = "<!-- towncrier release notes start -->\n"
|
|
|
|
|
underlines = ["", "", ""]
|
|
|
|
|
template = "changelog.d/changelog_template.jinja"
|
|
|
|
|
title_format = "## [{version}](https://github.com/long2ice/fastapi-cache/tree/{version}) - {project_date}"
|
|
|
|
|
issue_format = "[#{issue}](https://github.com/long2ice/fastapi-cache/issues/{issue})"
|
|
|
|
|
|
2023-05-09 17:33:07 +01:00
|
|
|
[tool.pyright]
|
|
|
|
|
strict = ["fastapi_cache", "tests"]
|
|
|
|
|
pythonVersion = "3.7"
|
2023-05-16 11:03:53 +01:00
|
|
|
|
2023-05-16 12:40:25 +01:00
|
|
|
[tool.pytest.ini_options]
|
2023-05-16 12:09:50 +01:00
|
|
|
addopts = "-p no:warnings"
|
|
|
|
|
|
|
|
|
|
[tool.ruff]
|
|
|
|
|
ignore = ["E501"]
|
|
|
|
|
line-length = 80
|
|
|
|
|
select = [
|
2023-05-16 13:18:53 +01:00
|
|
|
"B", # flake8-bugbear
|
|
|
|
|
"C4", # flake8-comprehensions
|
|
|
|
|
"E", # pycodestyle errors
|
|
|
|
|
"F", # pyflakes
|
|
|
|
|
"I", # isort
|
|
|
|
|
"S", # flake8-bandit
|
|
|
|
|
"W", # pycodestyle warnings
|
2023-05-16 12:46:20 +01:00
|
|
|
"UP", # pyupgrade
|
2023-05-16 12:09:50 +01:00
|
|
|
]
|
|
|
|
|
target-version = "py37"
|
|
|
|
|
|
2023-05-16 11:03:53 +01:00
|
|
|
[build-system]
|
|
|
|
|
requires = ["poetry-core"]
|
|
|
|
|
build-backend = "poetry.core.masonry.api"
|