-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
84 lines (77 loc) · 2.43 KB
/
pyproject.toml
File metadata and controls
84 lines (77 loc) · 2.43 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
[build-system]
requires = ["hatchling>=1.29.0"]
build-backend = "hatchling.build"
[project]
name = "advanced-caching"
version = "1.0.0"
description = "Production-ready composable caching with TTL, SWR, and background refresh patterns for Python."
readme = "README.md"
requires-python = ">=3.10"
license = { text = "MIT" }
maintainers = [
{ name = "ahmed", email = "ahmed99kamal@gmail.com" },
]
keywords = ["cache", "ttl", "redis", "scheduler", "apscheduler", "python", "swr", "stale-while-revalidate"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries",
"Topic :: System :: Distributed Computing",
"Typing :: Typed",
]
dependencies = [
"apscheduler>=3.11.2",
"orjson>=3.11.7",
]
[project.optional-dependencies]
redis = ["redis>=7.3.0"]
dev = [
"pytest>=9.0.2",
"pytest-cov>=7.0.0",
]
tests = ["pytest>=9.0.2", "pytest-asyncio>=1.3.0", "pytest-cov>=7.0.0"]
tests-s3 = ["moto>=5.1.22"]
tests-gcs = ["google-cloud-storage>=3.9.0"]
# Metrics exporters (optional)
metrics = [] # Metapackage for core metrics (in-memory collector, no external dependencies)
opentelemetry = [
"opentelemetry-api>=1.40.0",
"opentelemetry-sdk>=1.40.0",
]
gcp-monitoring = ["google-cloud-monitoring>=2.29.1"]
# Convenience extra for all supported exporters
all-metrics = [
"opentelemetry-api>=1.40.0",
"opentelemetry-sdk>=1.40.0",
"google-cloud-monitoring>=2.29.1",
]
[project.urls]
Homepage = "https://github.com/agkloop/advanced_caching"
Repository = "https://github.com/agkloop/advanced_caching"
Documentation = "https://github.com/agkloop/advanced_caching#readme"
Issues = "https://github.com/agkloop/advanced_caching/issues"
[dependency-groups]
dev = [
"pytest>=9.0.2",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.0.0",
"ruff>=0.15.5",
"scalene>=2.1.4",
"testcontainers[redis]>=4.14.1",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "-v"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
markers = [
"integration: marks tests that require external emulators/services"
]