forked from psf/cachecontrol
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
132 lines (117 loc) · 2.78 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[project]
name = "CacheYou"
version = "23.3"
description = "httplib2 caching for requests"
keywords = ["requests", "http", "caching", "web"]
readme = "README.md"
authors = [
{name = "Frost Ming", email = "me@frostming.com"},
{name = "Eric Larson", email = "eric@ionrock.org"},
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Topic :: Internet :: WWW/HTTP",
"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",
]
requires-python = ">=3.7"
dependencies = [
"msgpack>=0.5.2",
"requests",
]
[project.urls]
Homepage = "https://github.com/frostming/cacheyou"
Documentation = "https://cacheyou.readthedocs.io"
"Release Notes" = "https://cacheyou.readthedocs.io/en/latest/release_notes.html"
[project.optional-dependencies]
filecache = [
"filelock>=3.8.0",
]
redis = [
"redis>=2.10.5",
]
[project.scripts]
doesitcache = "cacheyou._cmd:main"
[tool.pdm]
plugins = ["pdm-autoexport"]
[tool.pdm.build]
source-includes = ["docs/", "tox.ini", "tests/"]
[tool.pdm.scripts]
test = "pytest"
release = "bumpver update"
docs = [
"sphinx-autobuild",
"docs/",
"build/docs",
# Rebuild all files when rebuilding
"-a",
# Trigger rebuilds on code changes (for autodoc)
"--watch",
"cacheyou",
# Use a not-common high-numbered port
"--port",
"8765",
]
[tool.pdm.dev-dependencies]
dev = [
"tox",
"bumpver>=2023.1124",
"pytest>=7.3.1",
]
docs = [
"sphinx",
"sphinx-autobuild",
"sphinx-rtd-theme>=1.2.0",
]
[[tool.pdm.autoexport]]
filename = "docs/requirements.txt"
groups = ["docs"]
without-hashes = true
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.black]
line-length = 100
target-version = ["py37", "py38", "py39", "py310"]
[tool.ruff]
line-length = 100
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"E", # pycodestyle
"F", # pyflakes
"PGH", # pygrep-hooks
"RUF", # ruff
"W", # pycodestyle
"YTT", # flake8-2020
]
extend-ignore = ["B018", "B019"]
src = ["src"]
target-version = "py37"
[tool.ruff.mccabe]
max-complexity = 10
[tool.ruff.isort]
known-first-party = ["cacheyou"]
[tool.bumpver]
current_version = "23.3"
version_pattern = "YY.INC0[PYTAGNUM]"
commit_message = "bump version {old_version} -> {new_version}"
commit = true
tag = true
push = true
[tool.bumpver.file_patterns]
"pyproject.toml" = [
'version = "{version}"',
]
"cacheyou/__init__.py" = [
'__version__ = "{pep440_version}"',
]
"docs/conf.py" = [
'release = "{pep440_version}"',
]