-
-
Notifications
You must be signed in to change notification settings - Fork 75
/
pyproject.toml
155 lines (142 loc) · 3.95 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
[build-system]
requires = [
"setuptools>=67.4",
"wheel"
]
build-backend = "setuptools.build_meta"
[project]
name = "pyHanko"
description = "Tools for stamping and signing PDF files"
authors = [{name = "Matthias Valvekens", email = "dev@mvalvekens.be"}]
maintainers = [{name = "Matthias Valvekens", email = "dev@mvalvekens.be"}]
license = {text = "MIT"}
keywords = [
"signature",
"pdf",
"pades",
"digital-signature",
"pkcs11",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3.13",
"Topic :: Security :: Cryptography",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.8"
dependencies = [
"asn1crypto>=1.5.1",
"qrcode>=7.3.1",
"tzlocal>=4.3",
"pyhanko-certvalidator>=0.26.5,<0.27",
"click>=8.1.3",
"requests>=2.31.0",
"pyyaml>=6.0",
"cryptography>=43.0.3",
]
dynamic = ["version"]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
Homepage = "https://github.com/MatthiasValvekens/pyHanko"
Documentation = "https://pyhanko.readthedocs.io/"
Changes = "https://pyhanko.readthedocs.io/en/latest/changelog.html"
"Source Code" = "https://github.com/MatthiasValvekens/pyHanko"
"Issue Tracker" = "https://github.com/MatthiasValvekens/pyHanko/issues"
[project.optional-dependencies]
extra-pubkey-algs = ["oscrypto>=1.2.1"]
xmp = ["defusedxml~=0.7.1"]
opentype = [
"fonttools>=4.33.3",
# uharfbuzz sometimes includes breaking changes, so
# we set an explicit range
"uharfbuzz>=0.25.0,<0.44.0",
]
image-support = [
# Only tested systematically on 8.x,
# but we allow 7.2.x to support system PIL on Ubuntu
"Pillow>=7.2.0",
"python-barcode==0.15.1"
]
pkcs11 = ["python-pkcs11~=0.7.0"]
async-http = ["aiohttp>=3.9,<3.12"]
etsi = ["xsdata>=24.4,<25.0"]
testing-basic = [
"pytest>=6.1.1",
"requests-mock>=1.8.0",
"freezegun>=1.1.0",
"pytest-asyncio==0.24.0",
"certomancer>=0.12.3,<0.13",
"pytest-cov>=4.0,<6.1",
"backports.zoneinfo[tzdata];python_version<\"3.9\"",
]
testing = [
"pyHanko[testing-basic,pkcs11,xmp,opentype,image-support,async-http,extra-pubkey-algs]",
"pyHanko[etsi]",
"pytest-aiohttp~=1.0.4",
"certomancer-csc-dummy==0.3.0",
]
live-test = [
"pyHanko[testing-basic,xmp,async-http,extra-pubkey-algs]",
"pytest-aiohttp~=1.0.4",
"certomancer-csc-dummy==0.3.0",
"certomancer[web-api]>=0.12.3,<0.13",
"pytest-cov>=4.0,<6.1",
]
mypy = [
"pyHanko[pkcs11,xmp,opentype,image-support,async-http,extra-pubkey-algs,etsi]",
"types-requests",
"types-python-dateutil",
"types-PyYAML",
"types-tzlocal",
]
docs = [
"sphinx",
"sphinx-rtd-theme"
]
[project.scripts]
pyhanko = "pyhanko.__main__:launch"
[tool.setuptools]
include-package-data = false
license-files = ["LICENSE", "pyhanko/pdf_utils/LICENSE.PyPDF2"]
[tool.setuptools.dynamic]
version = {attr = "pyhanko.version.__version__"}
[tool.setuptools.packages.find]
include = ["pyhanko", "pyhanko.*"]
exclude = ["pyhanko_tests*"]
[tool.setuptools.package-data]
pyhanko = ["py.typed"]
[tool.mypy]
files = "pyhanko"
[[tool.mypy.overrides]]
module = [
"asn1crypto.*",
"pkcs11.*",
"oscrypto.*",
"uritools.*",
"barcode.*",
"PIL.*",
"uharfbuzz.*",
"fontTools.*",
"qrcode.*",
"defusedxml.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
log_format = "%(asctime)s %(levelname)s %(message)s"
log_date_format = "%Y-%m-%d %H:%M:%S"
log_cli = true
log_cli_level = "INFO"
norecursedirs = "testdata"
testpaths = "pyhanko_tests"
asyncio_mode = "strict"