-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
94 lines (84 loc) · 2.61 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
[project]
name = "methodic-cache"
version = "0.3.1"
description = "functools.cache() for methods, done correctly"
authors = [{ name = "Alessio Bogon", email = "[email protected]" }]
license = { text= "MIT" }
readme = "README.md"
requires-python = ">=3.9"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS :: MacOS X",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
"Typing :: Typed",
"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 :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
# TODO: Try to support a lower version of cachetools
"cachetools>=5.0.0",
'typing-extensions>=4.5.0; python_version < "3.10"',
]
[project.urls]
Homepage = "https://github.com/youtux/methodic_cache"
Repository = "https://github.com/youtux/methodic_cache.git"
[dependency-groups]
dev = [
"pytest>=7.2.1",
"mypy>=1.0.1",
"types-cachetools>=5.3.0.0",
"pytest-repeat>=0.9.1",
"coverage [toml] >=7.1.0",
"tox>=4.4.5",
]
[tool.black]
target-version = ["py39", "py310", "py311", "py312", "py313"]
[tool.isort]
profile = "black"
multi_line_output = 3
[build-system]
requires = ["setuptools>=75.8.0"]
build-backend = "setuptools.build_meta"
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"if typing\\.TYPE_CHECKING:",
]
[tool.coverage.html]
show_contexts = true
[tool.coverage.run]
branch = true
# `parallel` will cause each tox env to put data into a different file, so that we can combine them later
parallel = true
source = ["methodic_cache", "tests"]
dynamic_context = "test_function"
[tool.coverage.paths]
# treat these directories as the same when combining
# the first item is going to be the canonical dir
source = [
"src/methodic_cache",
".tox/*/lib/python*/site-packages/methodic_cache",
]
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
files = "src/**/*.py"
[tool.pytest.ini_options]
filterwarnings = ["error"]