forked from py-pdf/fpdf2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
119 lines (104 loc) · 3.02 KB
/
pyproject.toml
File metadata and controls
119 lines (104 loc) · 3.02 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
[build-system]
requires = ["setuptools>=61.0", "wheel", "fonttools"]
build-backend = "setuptools.build_meta"
[project]
name = "fpdf2"
dynamic = ["version"]
description = "Simple & fast PDF generation for Python"
readme = "README.md"
requires-python = ">=3.10"
license = "LGPL-3.0-only"
license-files = ["LICENSE"]
authors = [
{ name = "Olivier PLATHEY" },
{ name = "Max" },
{ name = "Lucas Cimon (@Lucas-C)" },
{ name = " Anderson Herzogenrath da Costa (@andersonhc)" }
]
keywords = ["pdf", "unicode", "png", "jpg", "ttf", "barcode", "library", "markdown"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: OS Independent",
"Topic :: Printing",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Markup",
"Topic :: Multimedia :: Graphics",
"Topic :: Multimedia :: Graphics :: Presentation"
]
dependencies = [
"defusedxml",
"Pillow>=8.3.2,!=9.2.*", # minimum version tested in .github/workflows/continuous-integration-workflow.yml
# Version 9.2.0 is excluded due to DoS vulnerability with TIFF images: https://github.com/py-pdf/fpdf2/issues/628
# Version exclusion explained here: https://devpress.csdn.net/python/630462c0c67703293080c302.html
"fonttools>=4.34.0"
]
[project.optional-dependencies]
dev = [
"bandit",
"black",
"pre-commit",
"pylint",
"semgrep",
"zizmor",
]
docs = [
"lxml",
"mkdocs",
"mkdocs-git-revision-date-localized-plugin",
"mkdocs-include-markdown-plugin",
"mkdocs-macros-plugin",
"mkdocs-material",
"mkdocs-minify-plugin",
"mkdocs-redirects",
"mkdocs-with-pdf",
"mknotebooks",
"pdoc3",
]
test = [
"camelot-py[base]",
"endesive[full]",
"pytest",
"pytest-cov",
"qrcode",
"tabula-py",
"uharfbuzz"
]
[project.urls]
Homepage = "https://py-pdf.github.io/fpdf2/"
Documentation = "https://py-pdf.github.io/fpdf2/"
Code = "https://github.com/py-pdf/fpdf2"
"Issue tracker" = "https://github.com/py-pdf/fpdf2/issues"
[tool.setuptools]
packages = ["fpdf", "fpdf.data", "fpdf.data.color_profiles"]
[tool.setuptools.package-data]
fpdf = [
"data/color_profiles/*.icc",
"data/color_profiles/*.LICENSE"
]
[tool.setuptools.dynamic]
version = { attr = "fpdf.FPDF_VERSION" }
[project.entry-points."mkdocs.plugins"]
check_toc = "docs.plugins.check_toc:CheckTocPlugin"
[tool.pytest.ini_options]
addopts = "--cov=fpdf --cov-report=xml"
log_cli = true
log_cli_level = "WARN"
[tool.flake8]
ignore = ["E203", "E221", "E241", "E251", "E701", "E731", "W503"]
[tool.black]
line-length = 88
skip-string-normalization = false
include = '\.pyi?$'
[tool.isort]
profile = "black"
line_length = 88
combine_as_imports = true
include_trailing_comma = true
multi_line_output = 3