forked from MatthiasValvekens/pyHanko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
130 lines (117 loc) · 2.93 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
[build-system]
requires = [
"setuptools>=67.4",
"wheel", "pytest-runner",
]
build-backend = "setuptools.build_meta"
[project]
name = "pyHanko"
dynamic = ['version']
authors = [{name = "Matthias Valvekens", email = "[email protected]"}]
license = {text = "MIT"}
description = "Tools for stamping and signing PDF files"
keywords = [
"signature",
"pdf",
"pades",
"digital-signature",
"pkcs11",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Security :: Cryptography",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"asn1crypto>=1.5.1",
"pytz>=2020.1",
"qrcode>=6.1",
"tzlocal>=2.1",
"pyhanko-certvalidator==0.20.*",
"click>=7.1.2",
"requests>=2.24.0",
"pyyaml>=5.3.1",
"cryptography>=3.3.1",
]
[tool.setuptools.dynamic]
version = {attr = "pyhanko.version.__version__"}
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
Homepage = "https://github.com/MatthiasValvekens/pyHanko"
[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.31.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.14.0"
]
pkcs11 = ["python-pkcs11~=0.7.0"]
async_http = ["aiohttp~=3.8.0"]
testing = [
"pytest>=6.1.1",
"requests-mock>=1.8.0",
"freezegun>=1.1.0",
"certomancer~=0.9.1",
"aiohttp~=3.8.0",
"pytest-aiohttp~=1.0.4",
"certomancer-csc-dummy==0.2.1",
"pytest-cov~=4.0.0",
]
mypy = [
"types-requests",
"types-python-dateutil",
"types-pytz",
"types-PyYAML",
"types-tzlocal",
]
[project.scripts]
pyhanko = "pyhanko.__main__:launch"
[tool.setuptools]
include-package-data = false
[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"