-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
70 lines (60 loc) · 1.98 KB
/
pyproject.toml
File metadata and controls
70 lines (60 loc) · 1.98 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
[build-system]
requires = ["maturin>=1.0,<2.0"]
build-backend = "maturin"
[project]
name = "warp_cache"
dynamic = ["version"]
description = "Thread-safe Python caching decorator powered by a Rust extension. Implements SIEVE eviction for scan-resistant, near-optimal hit rates with zero-cost locking under the GIL — entire cache lookup in a single Rust __call__, no Python wrapper overhead. 16–23M ops/s single-threaded, 25× faster than cachetools, with cross-process shared memory support."
readme = "README.md"
license = "MIT"
requires-python = ">=3.9"
keywords = ["cache", "lru", "ttl", "thread-safe", "rust"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Rust",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"typing_extensions>=4.0; python_version < '3.10'",
]
[dependency-groups]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.24",
"ruff>=0.4",
"maturin>=1.0",
"matplotlib>=3.8",
"cachetools>=6.2.6",
"cachebox>=4.0",
"moka-py>=0.3",
"zoocache>=0.1; python_version >= '3.10'",
"ty>=0.0.17",
]
[project.urls]
Repository = "https://github.com/toloco/warp_cache"
[tool.maturin]
features = ["pyo3/extension-module"]
module-name = "warp_cache._warp_cache_rs"
[tool.ruff]
target-version = "py39"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "SIM"]
[tool.ruff.lint.per-file-ignores]
"benchmarks/*" = ["B023"]
"tests/*" = ["B023"]
[tool.ty.src]
include = ["warp_cache"]
[tool.ty.environment]
python-version = "3.9"
[tool.pytest.ini_options]
testpaths = ["tests"]