-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathpyproject.toml
156 lines (136 loc) · 4.36 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
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
[tool.poetry]
# Docs: https://python-poetry.org/docs/pyproject/
name = "mail-deduplicate"
version = "7.4.0"
description = "📧 CLI to deduplicate mails from mail boxes."
license = 'GPL-2.0-or-later'
authors = ["Kevin Deldycke <[email protected]>"]
readme = "readme.md"
homepage = 'https://github.com/kdeldycke/mail-deduplicate'
repository = 'https://github.com/kdeldycke/mail-deduplicate'
documentation = 'https://kdeldycke.github.io/mail-deduplicate'
keywords = [
'CLI',
'mail',
'email',
'maildir',
'mbox',
'deduplication',
'dedupe',
'cleanup',
'mailbox',
'Babyl',
'MH',
'mbox',
'MMDF',
]
classifiers = [
# See: https://pypi.org/pypi?%3Aaction=list_classifiers
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Communications :: Email',
'Topic :: Utilities',
'Typing :: Typed',
]
[tool.poetry.urls]
"Funding" = "https://github.com/sponsors/kdeldycke"
"Issues" = "https://github.com/kdeldycke/mail-deduplicate/issues"
"Changelog" = "https://kdeldycke.github.io/mail-deduplicate/changelog.html"
[tool.poetry.dependencies]
# Python versions and their status: https://devguide.python.org/versions/
python = "^3.8"
arrow = "^1.2.3"
boltons = "^24.0.0"
click-extra = "^4.8.3"
tabulate = { version = "^0.9.0", extras = ["widechars"] }
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
click-extra = { version = "^4.8.3", extras = ["pytest"] }
coverage = { version = "^7.2", extras = ["toml"] }
pytest = "^8.0.2"
# More pytest plugins at: https://docs.pytest.org/en/latest/reference/plugin_list.html
pytest-cov = "^5.0.0"
pytest-github-actions-annotate-failures = "^0.2.0"
pytest-randomly = "^3.12.0"
[tool.poetry.group.typing]
optional = true
[tool.poetry.group.typing.dependencies]
types-tabulate = "^0.9.0"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
click-extra = { version = "^4.8.3", extras = ["sphinx"] }
furo = "^2024.1.29"
myst-parser = "^3.0.0"
# Sphinx 6 is the first version to drop Python 3.7.
sphinx = ">=6"
sphinx-autodoc-typehints = "^2.0.0"
sphinx-click = "^6.0.0"
sphinx-copybutton = "^0.5.2"
# sphinx-design 0.5.0 is the first to allow Sphinx 7.
sphinx-design = "^0.5.0"
sphinx-issues = "^4.0.0"
sphinxcontrib-mermaid = "^0.9.2"
sphinxext-opengraph = "^0.9.0"
tomli = { version = "^2.0.1", python = "< 3.11" }
[tool.poetry.scripts]
mdedup = 'mail_deduplicate.__main__:main'
[tool.mypy]
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unreachable = true
pretty = true
[[tool.mypy.overrides]]
ignore_missing_imports = true
module = ["boltons.*"]
[tool.pytest.ini_options]
# https://docs.pytest.org/en/latest/customize.html#pyproject-toml
testpaths = ["tests/"]
addopts = ["--durations=10", "--cov-report=term", "--cov-report=xml"]
# Make sure tests that are expected to fail do not resurect and start working all of a sudden.
xfail_strict = true
# https://coverage.readthedocs.io/en/latest/config.html
[tool.coverage.run]
branch = true
[tool.coverage.report]
precision = 2
[tool.bumpversion]
current_version = "7.4.0"
allow_dirty = true
[[tool.bumpversion.files]]
# Update Python package version in any __init__.py file.
glob = "./**/__init__.py"
ignore_missing_version = true
[[tool.bumpversion.files]]
# Update version in Poetry section.
filename = "./pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
[[tool.bumpversion.files]]
# Update the version in standard Markdown changelog.
filename = "./changelog.md"
search = "## [{current_version} (unreleased)]("
replace = "## [{new_version} (unreleased)]("
[[tool.bumpversion.files]]
# Update the version in the citation file.
filename = "./citation.cff"
search = "version: {current_version}"
replace = "version: {new_version}"
[[tool.bumpversion.files]]
# Update the release date in the citation file.
filename = "./citation.cff"
regex = true
search = "date-released: \\d{{4}}-\\d{{2}}-\\d{{2}}"
replace = "date-released: {utcnow:%Y-%m-%d}"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"