-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
pyproject.toml
102 lines (88 loc) · 2.12 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
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project]
name = "unearth"
description = "A utility to fetch and download python packages"
authors = [
{name = "Frost Ming", email = "[email protected]"}
]
license = {text = "MIT"}
readme = "README.md"
requires-python = ">=3.8"
dependencies = [
"packaging>=20",
"httpx>=0.27.0,<1",
]
dynamic = ["version"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
]
[project.urls]
Homepage = "https://github.com/frostming/unearth"
Documentation = "https://unearth.readthedocs.io"
Changelog = "https://github.com/frostming/unearth/releases"
[project.optional-dependencies]
keyring = [
"keyring",
]
legacy = [
"requests>=2.25",
]
[project.scripts]
unearth = "unearth.__main__:cli"
[tool.pdm.version]
source = "scm"
[tool.pdm.build]
package-dir = "src"
[tool.pdm.dev-dependencies]
test = [
"pytest>=6.1",
"pytest-httpserver>=1.0.4",
"flask>=2.1.2",
"requests-wsgi-adapter>=0.4.1",
"trustme>=0.9.0; python_version < \"3.13\"",
"pytest-mock>=3.12.0",
]
doc = [
"furo",
"sphinx",
"myst-parser",
"sphinx-copybutton",
"sphinx-argparse",
]
[tool.pdm.scripts]
test = "pytest tests/"
lint = "pre-commit run --all-files"
doc = "sphinx-build -b html docs {args:docs/_build}"
[tool.ruff]
line-length = 88
target-version = "py38"
[tool.ruff.lint]
extend-select = [
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"PGH", # pygrep-hooks
"RUF", # ruff
"W", # pycodestyle
"YTT", # flake8-2020
]
extend-ignore = ["B018", "B019"]
exclude = ["tests/fixtures"]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.isort]
known-first-party = ["unearth"]
[tool.pytest.ini_options]
filterwarnings = [
"ignore::DeprecationWarning"
]