-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
138 lines (120 loc) · 3.59 KB
/
Copy pathpyproject.toml
File metadata and controls
138 lines (120 loc) · 3.59 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
[build-system]
requires = ['hatchling']
build-backend = "hatchling.build"
[tool.hatch.build]
include = [
"src/dar_backup/**",
"README.md",
"Changelog.md",
"LICENSE",
"verify-signature.sh",
"doc/**",
"src/dar_backup/README.md",
"src/dar_backup/Changelog.md",
"src/dar_backup/data/dashboard.html",
"src/dar_backup/data/discord_report.j2"
]
[tool.hatch.build.targets.wheel]
packages = ["src/dar_backup"]
sources = ["src"]
artifacts = ["src/dar_backup/doc/*.md", "src/dar_backup/README.md", "src/dar_backup/Changelog.md"]
[tool.hatch.version]
path = "src/dar_backup/__about__.py"
[tool.dar-backup]
gpg_key_id = "B54F5682F28DBA3622D78E0458DBFADBBBAC1BB1"
gpg_fingerprint = "B54F 5682 F28D BA36 22D7 8E04 58DB FADB BBAC 1BB1"
gpg_key_url = "https://keys.openpgp.org/vks/v1/by-fingerprint/4592D7396DBAEFFD084502B85CCEC7E16814A36E"
[tool.ruff]
line-length = 150
target-version = "py311"
src = ["src"]
[tool.ruff.lint]
select = ["E", "F", "W", "UP", "B"]
ignore = [
# Type-hint modernisation (List→list, Optional→X|None, etc.) — deferred large-scale refactor
"UP006",
"UP007",
"UP035",
"UP045",
# yield-from inside try/finally — subtle generator semantics change, skip
"UP028",
]
[project.scripts]
dar-backup = "dar_backup.dar_backup:main"
cleanup = "dar_backup.cleanup:main"
clean-log = "dar_backup.clean_log:main"
manager = "dar_backup.manager:main"
demo = "dar_backup.demo:main"
installer = "dar_backup.installer:main"
dar-backup-systemd = "dar_backup.dar_backup_systemd:main"
dar-backup-dashboard = "dar_backup.dashboard:main"
[project]
name = "dar-backup"
dynamic = [
"version",
]
authors = [
{ name="dar-backup", email="dar-backup@pm.me" },
]
description = """A script to do full, differential and incremental backups using dar.
Some files are restored from the backups during verification, after which par2 redundancy files are created.
The script also has a cleanup feature to remove old backups and par2 files."""
readme = "README.md"
readme-content-type = "text/markdown"
license = { file="LICENSE", name="GPL-3.0-or-later" }
requires-python = ">=3.11"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: End Users/Desktop",
'Programming Language :: Python :: 3.11',
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: POSIX :: Linux",
"Topic :: System :: Archiving :: Backup",
]
dependencies = [
"dateparser>=1.2.0",
"inputimeout>=1.0.4",
"rich>=13.0.0",
"argcomplete>=3.6.2",
"Jinja2>=3.1.6",
]
[project.optional-dependencies]
dashboard = [
"datasette>=0.65.2",
]
dev = [
"pytest>=9.0.3",
"pytest-cov>=7.1.0",
"pytest-mock",
"pytest-timeout>=2.4.0",
"pytest-json-report",
"ruff",
"mypy",
"wheel>=0.45.1",
"requests>=2.34.2",
"coverage>=7.13.5",
"psutil>=7.0.0",
"httpcore>=0.17.3",
"h11>=0.16.0",
"zipp>=4.1.0",
"anyio>=4.13.0",
"pandas>=3.0.2",
"matplotlib>=3.11.0",
]
packaging = [
"build>=1.2.2",
"hatchling>=1.27.0",
"hatch>=1.17.0",
"twine>=6.1.0",
]
[tool.coverage.run]
data_file = "/tmp/.coverage"
# parallel=true so each subprocess gets its own .coverage.<pid> file;
# concurrent subprocesses (e.g. test_concurrent_backup.py) do not contend
# for the same file. pytest_report.sh already runs `coverage combine`.
parallel = true
[project.urls]
"GPG Public Key" = "https://keys.openpgp.org/search?q=dar-backup@pm.me"
Homepage = "https://github.com/per2jensen/dar-backup/tree/main/v2"
Changelog = "https://github.com/per2jensen/dar-backup/blob/main/v2/Changelog.md"
Issues = "https://github.com/per2jensen"