-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
99 lines (88 loc) · 2.33 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
[project]
name = "dns-manager"
dynamic = ["version"]
description = "Manage your DNS records with ease."
authors = [{ name = "Zhan Rongrui", email = "[email protected]" }]
dependencies = [
"loguru>=0.7.2",
"rich>=13.7.0",
"pyparsing>=3.1.1",
"typer>=0.12.0",
"cachetools>=5.3.2",
"pydantic>=2.5.3",
"pyyaml>=6.0.1",
"rtoml>=0.11.0",
"httpx>=0.26.0",
"dns-lexicon>=3.17.0",
"scapy>=2.5.0",
# deprecated
"tencentcloud-sdk-python-dnspod",
]
requires-python = ">=3.9"
readme = "README.md"
license = { text = "MIT" }
classifiers = [
"Environment :: Console",
"Operating System :: OS Independent",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Typing :: Typed",
"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 :: Implementation :: CPython",
]
[project.optional-dependencies]
watch = ["watchfiles"]
all = ["dns-manager[watch]"]
[project.urls]
Homepage = "https://github.com/zrr1999/dns-manager.git"
Repository = "https://github.com/zrr1999/dns-manager.git"
[project.scripts]
dns-manager = "dns_manager.__main__:app"
dnsm = "dns_manager.__main__:app"
[tool.pdm.version]
source = "scm"
write_to = "dns_manager/__version__.py"
write_template = "__version__ = '{}'"
[tool.pdm.build]
includes = ["dns_manager"]
source-includes = ["tests", "README.md"]
[tool.uv]
dev-dependencies = [
"ruff",
"xdoctest",
"pytest",
"pytest-cov",
"pytest-codspeed",
"pytest-asyncio",
]
[tool.ruff]
line-length = 100
src = ["dns_manager", "tests"]
target-version = "py311"
[tool.ruff.lint]
select = [
"F",
"SIM",
"UP",
"FA", # flake8-annotations
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"PGH", # pygrep-hooks
"RUF", # ruff
"E", # pycodestyle
"W", # pycodestyle
"YTT", # flake8-2020
]
[tool.ruff.lint.isort]
known-first-party = ["dns_manager"]
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "I002"]
[build-system]
requires = ["pdm-backend", "pdm-pyfuture"]
build-backend = "pdm.backend"