-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
116 lines (100 loc) · 3.07 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
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "tno.mpc.protocols.risk_propagation"
description = "Secure risk propagation using distributed Paillier"
readme = "README.md"
authors = [{ name = "TNO PET Lab", email = "petlab@tno.nl" }]
maintainers = [{ name = "TNO PET Lab", email = "petlab@tno.nl" }]
keywords = [
"TNO",
"MPC",
"multi-party computation",
"protocols",
"risk propagation",
]
license = { text = "Apache License, Version 2.0" }
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Typing :: Typed",
"Topic :: Security :: Cryptography",
]
urls = { Homepage = "https://pet.tno.nl/", Documentation = "https://docs.pet.tno.nl/mpc/protocols/risk_propagation/2.2.3", Source = "https://github.com/TNO-Mpc/protocols.risk_propagation" }
dynamic = ["version"]
requires-python = ">=3.8"
dependencies = [
"numpy>=1.24,<3",
"tno.mpc.communication~=4.8,>=4.8.1",
"tno.mpc.encryption_schemes.paillier", # version is constrainted by tno.mpc.protocols.distributed_keygen
"tno.mpc.protocols.distributed_keygen~=4.0",
]
[project.optional-dependencies]
gmpy = [
"tno.mpc.encryption_schemes.paillier[gmpy]",
"tno.mpc.protocols.distributed_keygen[gmpy]",
]
tests = [
"numpy>=1.21",
"pandas",
"pandas-stubs",
"pytest>=8.1",
"pytest-asyncio",
]
[tool.setuptools]
platforms = ["any"]
[tool.setuptools.dynamic]
version = {attr = "tno.mpc.protocols.risk_propagation.__version__"}
[tool.setuptools.package-data]
"*" = ["py.typed"]
"tno.mpc.protocols.risk_propagation" = ["test/test_data/*.csv"]
[tool.coverage.run]
branch = true
omit = ["*/test/*"]
[tool.coverage.report]
precision = 2
show_missing = true
[tool.pytest.ini_options]
addopts = "--fixture-pool-scope module"
filterwarnings = [
"error:.*ciphertext:UserWarning",
"error:.*randomness:UserWarning",
]
[tool.isort]
profile = "black"
known_tno = "tno"
known_first_party = "tno.mpc.protocols.risk_propagation"
sections = "FUTURE,STDLIB,THIRDPARTY,TNO,FIRSTPARTY,LOCALFOLDER"
no_lines_before = "LOCALFOLDER"
[tool.mypy]
plugins = "numpy.typing.mypy_plugin"
mypy_path = "src,stubs"
strict = true
show_error_context = true
namespace_packages = true
explicit_package_bases = true
[tool.tbump.version]
current = "2.2.3"
regex = '''
\d+\.\d+\.\d+(-(.*))?
'''
[tool.tbump.git]
message_template = "Bump to {new_version}"
tag_template = "v{new_version}"
[[tool.tbump.file]]
src = "pyproject.toml"
search = "current = \"{current_version}\""
[[tool.tbump.file]]
src = "src/tno/mpc/protocols/risk_propagation/__init__.py"
search = "__version__ = \"{current_version}\""
[[tool.tbump.file]]
src = "CITATION.cff"
search = "version: {current_version}"
[[tool.tbump.file]]
src = "README.md"
search = '\[here\]\(https:\/\/docs.pet.tno.nl/[^\.]*\/{current_version}'