This repository has been archived by the owner on Oct 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
100 lines (89 loc) · 2.58 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "httpx-cache"
version = "0.13.0"
description = "Simple caching transport for httpx."
readme = "README.md"
requires-python = ">=3.8"
license-files = { paths = ["LICENSE"] }
authors = [{ name = "Ouail Bendidi", email = "[email protected]" }]
repository = "https://github.com/obendidi/httpx-cache"
homepage = "https://github.com/obendidi/httpx-cache"
keywords = ["httpx", "cache", "cache-control"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Topic :: Internet :: WWW/HTTP",
"Framework :: AsyncIO",
"Typing :: Typed",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
]
dependencies = [
"httpx>=0.23,<1",
"anyio~=3.0",
"msgpack~=1.0",
"fasteners>=0.16.3,<0.18.0",
"attrs>=21.4,<24.0",
"aiorwlock~=1.2",
]
[project.optional-dependencies]
redis = ["redis~=4.5"]
[project.urls]
Homepage = "https://github.com/obendidi/httpx-cache"
Documentation = "https://obendidi.github.io/httpx-cache/"
[tool.hatch.envs.dev]
extra-dependencies = [
"httpx-cache[redis]",
# Test dependencies
"pytest~=7.2",
"coverage[toml]~=6.5",
"pytest-cov~=3.0",
"chardet~=5.0",
"types-chardet~=5.0",
"pytest-cases~=3.6.8",
"respx~=0.19",
"mock~=4.0",
"types-mock~=4.0",
# Linting
"ruff~=0.0.260",
"black~=23.3.0",
"mypy~=1.1.1",
"pre-commit",
# Doc dependencies
"mkdocs~=1.4",
"mkautodoc~=0.1",
"mkdocs-material~=8.1",
]
[tool.hatch.envs.dev.scripts]
fmt = ["ruff --fix .", "black ."]
lint = ["ruff .", "black --check --diff ."]
typing = "mypy --install-types --non-interactive httpx_cache"
test = "pytest -ra -q -vv --cov=httpx_cache --cov-report=term-missing --cov-report=xml --cov-config=pyproject.toml"
docs-build = "mkdocs build --clean --strict"
docs-serve = "mkdocs serve --dev-addr localhost:8000"
docs-deploy = "mkdocs gh-deploy"
[tool.ruff.isort]
known-first-party = ["httpx_cache"]
known-third-party = ["httpx", "attrs", "msgpack", "anyio"]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
[tool.mypy]
strict = true
ignore_missing_imports = true
[tool.coverage.run]
branch = true
[tool.coverage.report]
show_missing = true
omit = ["**/tests/test_*.py"]
fail_under = 90