-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
108 lines (91 loc) · 3.51 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
103
104
105
106
107
# ┌───────────────────────────────────────────────────────────────┐
# │ Contents of pyproject.toml │
# ├───────────────────────────────────────────────────────────────┘
# │
# ├── Build system
# ├── Project
# ├──┐Tools
# │ └── Git-Cliff
# │
# └───────────────────────────────────────────────────────────────
# ################################################################ Build system
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["rusticlone", "rusticlone.helpers", "rusticlone.processing"]
# ################################################################ Project
[project]
name = "rusticlone"
version = "1.4.0"
authors = [
{ name="AlphaJack" },
]
description = "3-2-1 backups using Rustic and RClone"
readme = "README.md"
requires-python = ">=3.11"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: End Users/Desktop",
"Topic :: System :: Archiving :: Backup",
"Environment :: Console",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3"
]
dependencies = [
"importlib_metadata",
"ConfigArgParse"
]
[project.optional-dependencies]
dev = ["mypy", "ruff", "git-cliff", "coverage", "genbadge[coverage]", "tableofcontents"]
full = ["apprise"]
[project.scripts]
rusticlone = "rusticlone.cli:main"
[project.urls]
Homepage = "https://github.com/AlphaJack/rusticlone"
Issues = "https://github.com/AlphaJack/rusticlone/issues"
Repository = "https://github.com/AlphaJack/rusticlone"
Changelog = "https://github.com/AlphaJack/rusticlone/blob/master/CHANGELOG.md"
# ################################################################ Tools
# ################################ Git-Cliff
[tool.git-cliff.git]
conventional_commits = false
filter_unconventional = false
protect_breaking_commits = true
filter_commits = false
split_commits = true
tag_pattern = "v[0-9].*"
skip_tags = "beta|alpha"
ignore_tags = "rc"
sort_commits = "newest"
commit_parsers = [
{ message = "^(feat|[Aa]dd)", group = "Added" },
{ message = "^perf", group = "Performance" },
{ message = "^change", group = "Changed" },
{ message = "^[Dd]oc", group = "Documentation" },
{ message = "^deprecat", group = "Deprecated" },
{ message = "^fix", group = "Fixed" },
{ message = "^remove", group = "Removed" },
{ body = ".*security", group = "Security" },
{ message = "^test", group = "Tests" },
{ message = "^(auto|ci|chore|minor|skip)", skip = true },
{ body = ".*", group = "Various" },
]
[tool.git-cliff.changelog]
trim = true
header = """# Changelog - toc
"""
body = """
{% if version %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}\
{% else %}\
## Work in progress\
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits %}\
- {{ commit.message | split(pat=':') | last | trim | upper_first }}
{% endfor %}\
{% endfor %}\n
"""