-
Notifications
You must be signed in to change notification settings - Fork 21
/
pyproject.toml
142 lines (124 loc) · 4.26 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
[tool.poetry]
name = "aiohttp-client-cache"
version="0.12.4"
description = "Persistent cache for aiohttp requests"
authors = ["Jordan Cook"]
license = "MIT License"
readme = "README.md"
homepage = "https://github.com/requests-cache/aiohttp-client-cache"
repository = "https://github.com/requests-cache/aiohttp-client-cache"
keywords = ["aiohttp", "async", "asyncio", "cache", "cache-backends", "client", "http",
"persistence", "requests", "sqlite", "redis", "mongodb", "dynamodb", "dragonflydb"]
include = [
{ path = "*.md", format = "sdist" },
{ path = "*.yml", format = "sdist" },
{ path = "aiohttp_client_cache/py.typed" },
{ path = "docs", format = "sdist" },
{ path = "examples", format = "sdist" },
{ path = "test", format = "sdist" }
]
classifiers = [
"Development Status :: 4 - Beta",
'Framework :: AsyncIO',
'Framework :: aiohttp',
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
[tool.poetry.urls]
"Documentation" = "https://aiohttp-client-cache.readthedocs.io"
[tool.poetry.dependencies]
python = "^3.8"
aiohttp = "^3.8"
attrs = ">=21.2"
itsdangerous = ">=2.0"
url-normalize = "^1.4"
# Optional backend dependencies
aioboto3 = {optional=true, version=">=9.0"}
aiobotocore = {optional=true, version=">=2.0"}
aiofiles = {optional=true, version=">=0.6.0"}
aiosqlite = {optional=true, version=">=0.20"}
motor = {optional=true, version=">=3.1"}
redis = {optional=true, version=">=4.2"}
[tool.poetry.extras]
all = ["aioboto3", "aiobotocore", "aiofiles", "aiosqlite", "motor", "redis"]
dynamodb = ["aioboto3", "aiobotocore"]
filesystem = ["aiofiles", "aiosqlite"]
mongodb = ["motor"]
redis = ["redis"]
sqlite = ["aiosqlite"]
[tool.poetry.group.dev.dependencies]
# For unit + integration tests
async-timeout = ">=4.0"
brotli = ">=1.0"
faker = ">=30.0"
pytest = ">=6.2"
pytest-aiohttp = "^0.3"
pytest-asyncio = "^0.14"
pytest-clarity = ">=1.0"
pytest-cov = "^2.11"
pytest-xdist = "^3.6"
# For convenience in local development; additional tools are managed by pre-commit
nox = ">=2022.11"
nox-poetry = ">=1.0"
pre-commit = ">=2.12"
types-aiofiles = ">=0.1.7"
# Documentation dependencies needed for Readthedocs builds
[tool.poetry.group.docs.dependencies]
furo = {python=">=3.10", version="^2024.8"}
linkify-it-py = {python=">=3.10", version=">=2.0"}
markdown-it-py = {python=">=3.10", version=">=2.2"}
myst-parser = {python=">=3.10", version=">=3.0"}
python-forge = {python=">=3.10", version="^18.6"}
sphinx = {python=">=3.10", version="8.0.2"}
sphinx-automodapi = {python=">=3.10", version="^0.18.0"}
sphinx-autodoc-typehints = {python=">=3.10", version="^2.4"}
sphinx-copybutton = {python=">=3.10", version="^0.5"}
sphinx-inline-tabs = {python=">=3.10", version=">=2023.4"}
sphinxcontrib-apidoc = {python=">=3.10", version=">=0.3"}
[tool.poetry.group.test-server.dependencies]
flask = ">=2.0"
gunicorn = ">=21.2"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.coverage.html]
directory = 'test-reports'
[tool.coverage.run]
branch = true
source = ['aiohttp_client_cache']
omit = [
'aiohttp_client_cache/__init__.py',
'aiohttp_client_cache/backends/__init__.py',
'aiohttp_client_cache/signatures.py',
]
[tool.coverage.report]
exclude_lines = [
'pragma: no cover',
'if TYPE_CHECKING:',
]
[tool.mypy]
python_version = 3.8
ignore_missing_imports = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unreachable = true
show_error_codes = true
show_column_numbers = true
check_untyped_defs=true
pretty = true
exclude = "dist|build"
[tool.ruff]
line-length = 100
output-format = 'grouped'
target-version = 'py38'
[tool.ruff.format]
quote-style = 'single'
[tool.ruff.lint]
select = ['B', 'C4', 'C90', 'E', 'F', 'UP']
ignore = ['B023', 'B027']
[tool.ruff.lint.isort]
known-first-party = ['test']
# Wrap lines to 100 chars, but don't error on unwrappable lines until 120 chars
[tool.ruff.lint.pycodestyle]
max-line-length = 120