-
Notifications
You must be signed in to change notification settings - Fork 15
/
pyproject.toml
110 lines (98 loc) · 2.48 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
101
102
103
104
105
106
107
108
109
110
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "fcache"
dynamic = ["version"]
description = "a dictionary-like, file-based cache module for Python"
readme = "README.rst"
license = "MIT"
authors = [
{ name = "Thomas Roten", email = "[email protected]" },
]
requires-python = ">=3.7"
keywords = [
"cache",
"file",
"serialize",
]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"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",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Filesystems",
]
dependencies = [
"platformdirs ~= 3.0",
]
[project.urls]
Documentation = "https://tsroten.github.io/fcache"
Changes = "https://tsroten.github.io/fcache/history.html"
"Issue Tracker" = "https://github.com/tsroten/fcache/issues"
"Source Code" = "https://github.com/tsroten/fcache"
[tool.hatch.version]
path = "src/fcache/__init__.py"
[tool.hatch.build.targets.sdist]
include = [
"/src",
]
[tool.hatch.envs.default.scripts]
test = "hatch run test:run"
format = "hatch run style:format"
lint = "hatch run style:check"
docs = "hatch run docs:html"
[tool.hatch.envs.docs]
dependencies = [
"Sphinx",
"releases"
]
[tool.hatch.envs.docs.scripts]
clean = "cd docs && make clean"
generate = "cd docs && make html"
view = "open docs/_build/html/index.html"
check = "cd docs && make linkcheck"
html = [
"clean",
"generate",
"check",
"view"
]
[tool.hatch.envs.test.scripts]
clean = "find . -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete"
test = "python3 -Wdefault -m unittest -v"
run = [
"clean",
"test"
]
[[tool.hatch.envs.test.matrix]]
python = ["3.7", "3.8", "3.9", "3.10", "3.11"]
[tool.hatch.envs.style]
detached = true
dependencies = [
"black",
"flake8",
"pep8-naming",
"flake8-blind-except",
"flake8-builtins",
"flake8-pep3101",
"flake8-string-format"
]
[tool.hatch.envs.style.scripts]
check = [
"black -q --check --diff src tests",
"flake8 src tests"
]
format = [
"black -q src tests"
]
[tool.black]
extend-exclude = 'posixemulation.py'