-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
126 lines (109 loc) · 3.2 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
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "tno.mpc.protocols.kaplan_meier"
description = "Kaplan Meier using Paillier homomorphic encryption and a helper party"
readme = "README.md"
authors = [{ name = "TNO PET Lab", email = "[email protected]" }]
maintainers = [{ name = "TNO PET Lab", email = "[email protected]" }]
keywords = [
"TNO",
"MPC",
"multi-party computation",
"protocols",
"kaplan meier",
"survival analysis",
]
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 :: Healthcare Industry",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Typing :: Typed",
"Topic :: Security :: Cryptography",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
]
urls = { Homepage = "https://pet.tno.nl/", Documentation = "https://docs.pet.tno.nl/mpc/protocols/kaplan_meier/1.0.4", Source = "https://github.com/TNO-MPC/protocols.kaplan_meier" }
dynamic = ["version"]
requires-python = ">=3.8"
dependencies = [
"lifelines~=0.27",
"mpyc~=0.7",
"numpy>=1.24,<2",
"pandas",
"scipy",
"tno.mpc.communication~=4.0,!=4.4.2",
"tno.mpc.encryption_schemes.paillier~=3.0",
"tno.mpc.encryption_schemes.utils~=0.6",
"tno.mpc.mpyc.matrix_inverse~=0.4",
]
[project.optional-dependencies]
gmpy = [
"tno.mpc.encryption_schemes.paillier[gmpy]",
"tno.mpc.encryption_schemes.utils[gmpy]",
"tno.mpc.mpyc.matrix_inverse[gmpy]",
]
scripts = [
"lifelines",
]
tests = [
"pytest>=8.1",
"pytest-asyncio",
"tno.mpc.mpyc.stubs~=2.0",
]
[tool.setuptools]
platforms = ["any"]
[tool.setuptools.dynamic]
version = {attr = "tno.mpc.protocols.kaplan_meier.__version__"}
[tool.setuptools.package-data]
"*" = ["py.typed"]
[tool.coverage.run]
branch = true
omit = ["*/test/*"]
[tool.coverage.report]
precision = 2
show_missing = true
[tool.isort]
profile = "black"
known_tno = "tno"
known_first_party = "tno.mpc.protocols.kaplan_meier"
sections = "FUTURE,STDLIB,THIRDPARTY,TNO,FIRSTPARTY,LOCALFOLDER"
no_lines_before = "LOCALFOLDER"
[tool.mypy]
mypy_path = "stubs"
plugins = "numpy.typing.mypy_plugin"
[tool.pytest.ini_options]
filterwarnings = [
"error:.*ciphertext:UserWarning",
"error:.*randomness:UserWarning",
]
mypy_path = "src,stubs"
strict = true
show_error_context = true
namespace_packages = true
explicit_package_bases = true
[tool.tbump.version]
current = "1.0.4"
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/kaplan_meier/__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}'