-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathpyproject.toml
More file actions
151 lines (132 loc) · 4.24 KB
/
pyproject.toml
File metadata and controls
151 lines (132 loc) · 4.24 KB
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
143
144
145
146
147
148
149
150
151
[project]
name = "aiohttp-client-cache"
version = "0.14.3"
description = "Persistent cache for aiohttp requests"
authors = [{name = "Jordan Cook"}, {name = "Alessio Locatelli"}]
license = {text = "MIT License"}
readme = "README.md"
keywords = ["aiohttp", "async", "asyncio", "cache", "cache-backends", "client", "http",
"persistence", "requests", "sqlite", "redis", "mongodb", "dynamodb", "dragonflydb"]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: AsyncIO",
"Framework :: aiohttp",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
requires-python = ">=3.9"
dependencies = [
"aiohttp >=3.8",
"attrs >=21.2",
"itsdangerous >=2.0",
"url-normalize >=2.2",
"typing-extensions >=4 ; python_version<='3.10'", # For Self type addition
]
[project.optional-dependencies]
# Optional backend dependencies
all = ["aioboto3>=9.0", "aiobotocore>=2.0", "aiofiles>=0.6.0", "aiosqlite>=0.20", "motor>=3.1", "redis>=4.2"]
dynamodb = ["aioboto3>=9.0", "aiobotocore>=2.0"]
filesystem = ["aiofiles>=0.6.0", "aiosqlite>=0.20"]
mongodb = ["motor>=3.1"]
redis = ["redis>=4.2"]
sqlite = ["aiosqlite>=0.20"]
[dependency-groups]
# Development dependencies
dev = [
# For unit + integration tests
"async-timeout >=4.0",
"brotli >=1.0",
"faker >=30.0",
"pytest >=8.4",
"pytest-aiohttp >=1.1",
"pytest-asyncio >=1.2",
"pytest-clarity >=1.0",
"pytest-cov >=6.2",
"pytest-xdist >=3.6",
# For convenience in local development; additional tools are managed by pre-commit
"nox >=2022.11",
"pre-commit >=4.2",
"types-aiofiles >=0.1.7",
]
# Documentation dependencies needed for Readthedocs builds
docs = [
"furo >=2025.9; python_version>='3.11'",
"linkify-it-py >=2.0; python_version>='3.11'",
"markdown-it-py >=2.2; python_version>='3.11'",
"myst-parser >=5.0; python_version>='3.11'",
"python-forge >=18.6; python_version>='3.11'",
"sphinx ~=8.2; python_version>='3.11'",
"sphinx-automodapi >=0.18,<0.21; python_version>='3.11'",
"sphinx-autodoc-typehints >=2.4; python_version>='3.11'",
"sphinx-copybutton >=0.5; python_version>='3.11'",
"sphinx-inline-tabs >=2023.4; python_version>='3.11'",
"sphinxcontrib-apidoc >=0.3; python_version>='3.11'",
]
# Test server dependencies
test-server = [
"flask>=2.0",
"gunicorn>=21.2",
]
[project.urls]
Homepage = "https://github.com/requests-cache/aiohttp-client-cache"
Repository = "https://github.com/requests-cache/aiohttp-client-cache"
Documentation = "https://aiohttp-client-cache.readthedocs.io"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["aiohttp_client_cache"]
[tool.hatch.build.targets.sdist]
include = [
"*.md",
"*.yml",
"aiohttp_client_cache/",
"docs/",
"examples/",
"test/",
]
[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.9"
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
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.ruff]
line-length = 100
output-format = 'grouped'
target-version = 'py39'
[tool.ruff.format]
quote-style = 'single'
[tool.ruff.lint]
select = ['B', 'C4', 'C90', 'E', 'F', 'I', '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
[tool.typos]
files.extend-exclude = ["CONTRIBUTORS.md"]