-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
pyproject.toml
107 lines (95 loc) · 2.6 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
[build-system]
requires = ["setuptools >= 40.8.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
pdfmerge = ["py.typed"]
[project.scripts]
pdfmerge = "pdfmerge.__main__:main"
[tool.setuptools.dynamic]
version = { attr = "pdfmerge.__version__" }
[project.urls]
Homepage = "https://github.com/metaist/pdfmerge"
Documentation = "https://metaist.github.io/pdfmerge/"
Repository = "https://github.com/metaist/pdfmerge.git"
Changelog = "https://github.com/metaist/pdfmerge/blob/main/CHANGELOG.md"
[project]
name = "pdfmerge"
description = "CLI for merging, splicing, and rotating PDFs."
keywords = ["pdf", "merge", "split", "cli"]
dynamic = ["version"]
requires-python = ">=3.8"
dependencies = [
# app => pinned
"attrbox==0.1.5",
"pypdf==3.17.4",
]
optional-dependencies = { dev = [
# dev => latest
"black",
"coverage",
"mypy",
"pdm",
"pdoc3",
"pyright",
"pytest-cov",
"pytest",
"ruff",
] }
readme = "README.md"
license = { text = "MIT" }
authors = [{ name = "Metaist LLC", email = "[email protected]" }]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Utilities",
"Typing :: Typed",
]
[tool.pdm.scripts]
black = { shell = "black ." }
ruff = { shell = "ruff ." }
cspell = { shell = "cspell --gitignore '**/*.{py,txt,md,markdown}'" }
pyright = { shell = "pyright src test" }
mypy = { shell = """\
mypy \
--strict \
--install-types \
--non-interactive \
src test
""" }
test = { shell = """\
PYTHONPATH=src \
coverage run --branch --source=src -m \
pytest \
--doctest-modules \
--doctest-ignore-import-errors \
src test; \
coverage report -m
""" }
docs = { shell = """\
rm -rf docs; \
pdoc \
--html \
--output-dir docs \
--config sort_identifiers=False \
--config show_inherited_members=True \
--force src/$(basename $(pwd));
mv docs/**/* docs/;
touch docs/.nojekyll
""" }
lint = { composite = ["black", "ruff", "cspell", "pyright", "mypy"] }
dev = { composite = ["lint", "test"] }
all = { composite = ["lint", "test", "docs"] }