-
Notifications
You must be signed in to change notification settings - Fork 270
Expand file tree
/
Copy pathsetup.cfg
More file actions
207 lines (197 loc) · 5.14 KB
/
Copy pathsetup.cfg
File metadata and controls
207 lines (197 loc) · 5.14 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
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
[metadata]
url = https://github.com/NVIDIA/NVFlare
description = Federated Learning Application Runtime Environment
long_description = file:README.md
long_description_content_type = text/markdown; charset=UTF-8
license = Apache-2.0
license_files =
LICENSE
classifiers =
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
License :: OSI Approved :: Apache Software License
Operating System :: POSIX :: Linux
[options]
zip_safe = True
python_requires = >= 3.10
install_requires =
cryptography>=45.0.0
Flask==3.1.3
Flask-JWT-Extended==4.6.0
Flask-SQLAlchemy==3.1.1
grpcio>=1.62.1
gunicorn>=22.0.0
numpy
protobuf>=4.24.4
psutil>=5.9.1
PyYAML>=6.0
requests>=2.28.0
msgpack>=1.0.3
docker>=6.0
aiohttp
pyhocon
pydantic>=2.0
safetensors
[options.extras_require]
HE =
# tenseal currently has no Python 3.14 wheel, so HE extra is unavailable on 3.14.
tenseal==0.3.15; python_version < "3.13"
tenseal==0.3.16; python_version >= "3.13" and python_version < "3.14"
PSI =
openmined.psi==2.0.6; python_version < "3.14"
PT =
torch
torchvision
SKLEARN =
scikit-learn
pandas>=1.5.1
TRACKING =
mlflow
wandb
tensorboard
MONITORING =
datadog
CONFIG =
omegaconf
K8S =
kubernetes!=36.0.0
app_opt =
%(HE)s
%(PSI)s
%(PT)s
%(SKLEARN)s
%(TRACKING)s
%(MONITORING)s
%(K8S)s
packaging
pytorch_lightning
xgboost<3.4
bitsandbytes
app_opt_mac =
%(PT)s
%(SKLEARN)s
%(TRACKING)s
%(K8S)s
packaging
core_opt =
%(CONFIG)s
doc =
sphinx>=5
sphinx_rtd_theme
recommonmark
sphinx-llm>=0.4.1
sphinx-copybutton
sphinxcontrib-jquery
all =
%(core_opt)s
%(app_opt)s
all_mac =
%(core_opt)s
%(app_opt_mac)s
test_support =
isort==5.13.2
flake8==7.1.1
black==25.9.0
click==8.1.7; python_version < "3.14"
click==8.2.1; python_version >= "3.14"
pytest-xdist==3.6.1
pytest-cov==5.0.0
pandas>=1.5.1
nbformat
nbmake
kagglehub!=1.0.1
# kagglesdk 0.1.31 and 0.1.32 import a missing competitions.legacy package.
kagglesdk<0.1.31; python_version >= "3.11"
test =
%(all)s
%(test_support)s
fastdigest==0.4.0; python_version < "3.14"
test_mac =
%(all_mac)s
%(test_support)s
dev =
%(doc)s
%(test)s
# Python 3.12 and 3.13 are excluded because openmined.psi pins protobuf==6.30.2,
# while SkillSpector requires protobuf>=6.32.1.
skillspector @ git+https://github.com/NVIDIA/SkillSpector.git@fd25398d7aa99353d86237b9c260759351f0e644 ; python_version == "3.14"
dev_mac =
%(doc)s
%(test_mac)s
skillspector @ git+https://github.com/NVIDIA/SkillSpector.git@fd25398d7aa99353d86237b9c260759351f0e644 ; python_version == "3.14"
# CPU-only variant of `app_opt`: omits torch (install separately from
# https://download.pytorch.org/whl/cpu first) and bitsandbytes (GPU-only).
# torchvision is included so the extra is self-sufficient for tests; install
# the CPU torch (and a matching torchvision) from the CPU index beforehand to
# avoid pip pulling the GPU torchvision wheel from PyPI as a dependency.
app_opt_cpu =
%(HE)s
%(PSI)s
%(SKLEARN)s
%(TRACKING)s
%(MONITORING)s
%(K8S)s
packaging
pytorch_lightning
torchvision
xgboost<3.4
all_cpu =
%(core_opt)s
%(app_opt_cpu)s
test_cpu =
%(all_cpu)s
%(test_support)s
fastdigest==0.4.0; python_version < "3.14"
dev_cpu =
%(doc)s
%(test_cpu)s
skillspector @ git+https://github.com/NVIDIA/SkillSpector.git@fd25398d7aa99353d86237b9c260759351f0e644 ; python_version == "3.14"
# Deliberately NOT part of `dev`/`dev_mac`/`dev_cpu`: SkillEvaluator requires
# click>=8.3.3, while NVFlare pins click==8.1.7 below Python 3.14, so resolving it
# alongside the development extras is impossible. CI installs it into an isolated
# virtual environment and puts the CLI on PATH instead; this extra only records the
# pin for anyone who wants the same CLI locally, in its own environment.
skill_eval =
skillevaluator @ git+https://github.com/NVIDIA/SkillEvaluator.git@4975c97d49e3623eeab739248e52d83c4aa8f582 ; python_version >= "3.12" and python_version < "3.14"
[options.entry_points]
console_scripts =
nvflare=nvflare.cli:main
[flake8]
select = B,C,E,F,N,P,T4,W,B9
max_line_length = 120
# E501 is not flexible enough, we're using B950 instead
# N812 lowercase 'torch.nn.functional' imported as non lowercase 'F'
ignore =
E203,
E302,
E303,
E305,
E402,
E501,
E701,
E721,
E722,
E741,
F821,
F841,
F999,
N812,
W291,
W503,
W504
per_file_ignores = __init__.py: F401
exclude = *.pyi,.git,.eggs,nvflare/_version.py,versioneer.py,venv,.venv,_version.py,*grpc.py,*_pb2.py
[pydocstyle]
convention = google
add_ignore = D100,D101,D102,D103,D104,D105,D106
# match-dir=([^\.].*)|(.*(?!protos).*)
match-dir=((?!protos).)*
[versioneer]
VCS = git
style = pep440
versionfile_source = nvflare/_version.py
versionfile_build = nvflare/_version.py
tag_prefix =