forked from adap/flower
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
138 lines (126 loc) · 3.54 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
[build-system]
requires = [
"poetry==1.1.13",
]
build-backend = "poetry.masonry.api"
[tool.poetry]
name = "flwr"
version = "1.0.0"
description = "Flower - A Friendly Federated Learning Framework"
license = "Apache-2.0"
authors = ["The Flower Authors <[email protected]>"]
readme = "README.md"
homepage = "https://flower.dev"
repository = "https://github.com/adap/flower"
documentation = "https://flower.dev"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
packages = [
{ include = "flwr", from = "src/py" },
]
exclude = [
"src/py/**/*_test.py",
]
[tool.poetry.dependencies]
python = "^3.7"
# Mandatory dependencies
numpy = [
{ version = ">=1.19.0,<1.21.0", python = "<3.10"},
{ version = "^1.21", python = "^3.10"},
]
grpcio = "^1.41.0"
protobuf = "^3.19.0"
importlib-metadata = { version = "^4.0.0", markers = "python_version < '3.8'" }
iterators = "^0.0.2"
# Optional dependencies
ray = { extras = ["default"], version = ">=1.9.2,<1.12.0", optional = true }
[tool.poetry.extras]
simulation = ["ray"]
[tool.poetry.dev-dependencies]
types-protobuf = "==3.19.18"
types-setuptools = "==57.4.14"
types-dataclasses = "==0.6.5"
isort = "==5.10.1"
black = "==22.3.0"
docformatter = "==1.4"
mypy = "==0.950"
pylint = "==2.13.8"
flake8 = "==3.9.2"
pytest = "==7.1.2"
pytest-cov = "==3.0.0"
pytest-watch = "==4.2.0"
grpcio-tools = "==1.41.0"
mypy-protobuf = "==3.2.0"
jupyterlab = "==3.3.2"
rope = "==0.19.0"
semver = "==2.13.0"
sphinx = "==5.0.2"
myst-parser = "==0.18.0"
sphinx-design = "==0.2.0"
sphinx-copybutton = "==0.5.0"
sphinxcontrib-mermaid = "==0.7.1"
furo = "==2022.6.21"
sphinx-reredirects = "==0.1.1"
[tool.isort]
line_length = 88
indent = " "
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
known_first_party = ["flwr", "flwr_experimental", "flwr_tool"]
[tool.black]
line-length = 88
target-version = ["py37", "py38", "py39", "py310"]
[tool.pylint."MESSAGES CONTROL"]
disable = "bad-continuation,duplicate-code,too-few-public-methods,useless-import-alias"
[tool.pytest.ini_options]
minversion = "6.2"
addopts = "-qq"
testpaths = [
"src/py/flwr",
"src/py/flwr_tool",
]
[tool.mypy]
ignore_missing_imports = true
strict = true
[[tool.mypy.overrides]]
module = [
"flwr_example.*",
"flwr_experimental.*",
]
ignore_errors = true
[[tool.mypy.overrides]]
module = [
"importlib.metadata.*",
"importlib_metadata.*",
]
follow_imports = "skip"
follow_imports_for_stubs = true
disallow_untyped_calls = false
[[tool.mypy.overrides]]
module = "torch.*"
follow_imports = "skip"
follow_imports_for_stubs = true