-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (93 loc) · 2.65 KB
/
Copy pathpyproject.toml
File metadata and controls
104 lines (93 loc) · 2.65 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
[project]
name = "typed-diskcache"
dynamic = ["version"]
description = "Disk and file backed persistent cache."
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE"]
authors = [{ name = "phi", email = "phi.friday@gmail.com" }]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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 :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Free Threading :: 1 - Unstable",
"Framework :: AsyncIO",
]
requires-python = ">=3.10"
dependencies = [
"cloudpickle>=3.1.0",
"pydantic>=2",
"sqlalchemy-utils",
"sqlalchemy>=2.0.13",
"typing-extensions>=4.10.0",
"tomli; python_version < '3.11'",
]
[project.optional-dependencies]
asyncio = ["anyio>=4", "aiosqlite", "sqlalchemy[asyncio]>=2"]
[dependency-groups]
test = [
"pytest>=8.4.2",
"pytest-cov>=7.0.0",
"pytest-env>=1.2.0",
"pytest-xdist>=3.8.0",
"typed-diskcache[asyncio]",
]
dev = [
{ include-group = "test" },
"ruff==0.14.0",
"ipykernel>=7.0.0",
"pre-commit>=4.3.0",
"poethepoet>=0.37.0",
]
docs = [
"mkdocs>=1.6.1",
"mkdocs-material>=9.6.21",
"mkdocstrings[python]>=0.30.1",
"black>=25.9.0",
"griffe-pydantic>=1.1.8",
"griffe-inherited-docstrings>=1.1.2",
"griffe-warnings-deprecated>=1.1.0",
]
[tool.uv]
managed = true
default-groups = ["dev"]
[tool.poe.tasks]
lint = ["_lint:check", "_lint:format"]
check = "pre-commit run --all-files --show-diff-on-failure"
"_lint:check" = "ruff check src --fix"
"_lint:format" = "ruff format src"
[project.urls]
Documentation = "https://typed-diskcache.readthedocs.io/"
Repository = "https://github.com/phi-friday/typed-diskcache"
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.targets.wheel]
packages = ["src/typed_diskcache"]
[tool.hatch.build.targets.sdist]
include = ["src/typed_diskcache", "src/licenses"]
[tool.pytest.ini_options]
addopts = "-n 4 -W error::UserWarning"
testpaths = ["src/tests"]
markers = ["only"]
[tool.coverage.run]
omit = [
"./src/tests/**/*",
"./src/typed_diskcache/database/revision/*",
"./src/typed_diskcache/utils/deque.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]