-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
154 lines (140 loc) · 3.63 KB
/
pyproject.toml
File metadata and controls
154 lines (140 loc) · 3.63 KB
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
[project]
name = "abxpkg"
version = "1.10.6"
description = "System package manager interfaces with Python type hints"
authors = [{name = "Nick Sweeting"}, {name = "ArchiveBox"}]
requires-python = ">=3.11"
license = {text = "MIT"}
readme = "README.md"
keywords = [
"pydantic",
"packagemanager",
"apt",
"brew",
"pip",
"nix",
"cargo",
"gem",
"docker",
"pyinfra",
"ansible",
"devops",
"system",
"dependencies",
]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Framework :: Django",
"Framework :: Django :: 4.0",
"Framework :: Django :: 5.0",
"Framework :: Django :: 6.0",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Natural Language :: English",
]
dependencies = [
"pip>=26.0.1",
"typing-extensions>=4.15.0",
"platformdirs>=4.9.2",
"pydantic>=2.12.5",
"rich-click>=1.9.7",
]
[project.scripts]
abxpkg = "abxpkg.cli:main"
abx = "abxpkg.cli:abx_main"
[project.optional-dependencies]
rich = [
"rich>=14.0.0",
]
pyinfra = [
'pyinfra>=3.6.1',
]
ansible = [
'ansible>=12.3.0',
'ansible-core>=2.0.0',
'ansible-runner>=2.4.2',
]
all = [
"abxpkg[rich,pyinfra,ansible]",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["abxpkg"]
[tool.hatch.build.targets.sdist]
include = [
"abxpkg/**",
"abxpkg/js/base/config.json",
"abxpkg/js/base/utils.js",
"abxpkg/js/chrome/config.json",
"abxpkg/js/chrome/chrome_utils.js",
"README.md",
"LICENSE",
"pyproject.toml",
]
[dependency-groups]
dev = [
"mypy>=1.19.1",
"pyright",
"django>=4.0",
"django-stubs>=5.0.0",
"django-admin-data-views>=0.3.1",
"django-pydantic-field>=0.3.9",
"django-jsonform>=2.22.0",
"pytest>=9.0.2",
"rich>=14.0.0",
"prek>=0.3.6",
"ruff>=0.15.7",
"ty>=0.0.24",
"pytest-asyncio>=1.3.0",
]
[tool.uv]
# Pin lockfile resolution to a recent upstream cutoff so CI/test runs stay
# reproducible. ``uv`` (as of 0.8.x) requires a literal RFC 3339 date/time
# here, not a relative duration like ``"5 days"`` — passing an invalid value
# silently disables the cutoff and regenerates the lockfile on every invoke.
exclude-newer = "2026-04-04T00:00:00Z"
[tool.mypy]
mypy_path = "abxpkg"
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
plugins = [
"mypy_django_plugin.main",
]
[tool.pyright]
include = ["abxpkg", "tests", "django_example_project/project"]
exclude = [
"**/node_modules",
"**/__pycache__",
"**/migrations",
]
reportMissingImports = true
reportMissingTypeStubs = false
pythonVersion = "3.11"
pythonPlatform = "Linux"
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"root_required: tests that require root privileges and run in the privileged live-integration job",
"docker_required: tests that require a working Docker daemon and run in the Linux live-integration job",
]
[tool.ty.src]
exclude = [
"**/migrations/**",
"docs/**",
]
[project.urls]
Homepage = "https://github.com/ArchiveBox/abxpkg"
Source = "https://github.com/ArchiveBox/abxpkg"
Documentation = "https://github.com/ArchiveBox/abxpkg"
"Bug Tracker" = "https://github.com/ArchiveBox/abxpkg/issues"
Changelog = "https://github.com/ArchiveBox/abxpkg/releases"
Donate = "https://github.com/ArchiveBox/ArchiveBox/wiki/Donations"