-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
160 lines (139 loc) · 3.86 KB
/
Copy pathpyproject.toml
File metadata and controls
160 lines (139 loc) · 3.86 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
155
156
157
158
159
160
[project]
name = "zodb-backup"
dynamic = ["version"]
description = "Container-native backup and restore for ZODB FileStorage and blobstorage"
readme = "README.md"
license = "GPL-2.0-only"
license-files = ["LICENSE"]
authors = [
{ name = "Simples Consultoria", email = "contato@simplesconsultoria.com.br" }
]
requires-python = ">=3.14"
keywords = ["zodb", "zeo", "plone", "zope", "backup", "repozo", "docker", "devops"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: System Administrators",
"Operating System :: POSIX",
"Framework :: Plone",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.14",
"Topic :: Database",
"Topic :: System :: Archiving :: Backup",
]
dependencies = [
"ZODB>=6.0",
"typer>=0.15",
]
[project.urls]
Homepage = "https://github.com/simplesconsultoria/zodb-backup"
Documentation = "https://github.com/simplesconsultoria/zodb-backup#readme"
Source = "https://github.com/simplesconsultoria/zodb-backup"
Issues = "https://github.com/simplesconsultoria/zodb-backup/issues"
Changelog = "https://github.com/simplesconsultoria/zodb-backup/blob/main/CHANGES.md"
[project.scripts]
zodb-backup = "zodb_backup.cli:main"
[build-system]
requires = ["hatchling>=1.31.0"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "src/zodb_backup/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/zodb_backup"]
[tool.hatch.build.targets.sdist]
include = [
"src",
"tests",
"docs",
"news",
"AGENTS.md",
"CHANGES.md",
"CONTRIBUTING.md",
"README.md",
"SECURITY.md",
"LICENSE",
"Makefile",
]
# .claude/ holds local editor state, including symlinks outside the repository
# that hatchling refuses to package; vendor-reference/ is a read-only study clone.
exclude = [".claude", "vendor-reference"]
[dependency-groups]
dev = [
"mypy>=1.14",
"pytest>=8.3",
"pytest-cov>=6.0",
"ruff>=0.9",
"zest-releaser[recommended]>=9.9.1",
"zestreleaser-towncrier>=1.3.0",
"towncrier>=24.8",
]
[tool.ruff]
line-length = 88
target-version = "py314"
src = ["src", "tests"]
extend-exclude = ["vendor-reference"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"RUF", # ruff-specific
"PTH", # flake8-use-pathlib
"SIM", # flake8-simplify
]
[tool.ruff.lint.isort]
case-sensitive = false
no-sections = true
force-single-line = true
from-first = true
lines-after-imports = 2
lines-between-types = 1
[tool.mypy]
python_version = "3.14"
files = ["src"]
strict = true
exclude = ["vendor-reference"]
[[tool.mypy.overrides]]
# ZODB ships no type information; ignores stay isolated to the modules that
# actually touch it.
module = ["ZODB.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra --strict-markers"
markers = [
"integration: opt-in tests requiring a docker compose stack",
]
[tool.coverage.run]
source = ["src/zodb_backup"]
[tool.towncrier]
package = "zodb_backup"
package_dir = "src"
directory = "news"
filename = "CHANGES.md"
start_string = "<!-- towncrier release notes start -->\n"
title_format = "## {version} ({project_date})"
issue_format = "[#{issue}](https://github.com/simplesconsultoria/zodb-backup/issues/{issue})"
[[tool.towncrier.type]]
directory = "breaking"
name = "Breaking changes"
showcontent = true
[[tool.towncrier.type]]
directory = "feature"
name = "New features"
showcontent = true
[[tool.towncrier.type]]
directory = "bugfix"
name = "Bug fixes"
showcontent = true
[[tool.towncrier.type]]
directory = "internal"
name = "Internal"
showcontent = true
[tool.zest-releaser]
upload-pypi = false # Build and upload with uv
python-file-with-version = "src/zodb_backup/__init__.py"