-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
180 lines (163 loc) · 4.43 KB
/
Copy pathpyproject.toml
File metadata and controls
180 lines (163 loc) · 4.43 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
[build-system]
requires = ["setuptools>=64.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "syft-client"
dynamic = ["version"]
description = "A simple client library for setting up secure communication channels using Google Drive"
readme = "README.md"
authors = [
{name = "OpenMined", email = "info@openmined.org"}
]
license = {text = "Apache-2.0"}
requires-python = ">=3.10"
keywords = ["privacy", "federated-learning", "google-drive", "communication"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Security :: Cryptography",
"Topic :: Communications :: File Sharing"
]
dependencies = [
"google-api-python-client>=2.95.0",
"google-auth[pyjwt]>=2.22.0",
"google-auth-oauthlib>=1.0.0",
"rich>=13.0.0",
"pandas",
"pydantic-settings>=2.11.0",
"pyyaml>=6.0",
"jinja2>=3.1.0",
"click>=8.0.0",
"portalocker>=2.8.0",
"python-daemon>=3.0.0",
"syft-bg==0.3.11",
"syft-job==0.1.39", # TODO: move to optional-dependencies after adding lazy imports
"syft-dataset==0.1.20", # TODO: move to optional-dependencies after adding lazy imports
"syft-permissions==0.1.14",
"syft-perms==0.1.14",
"syft-crypto-python>=0.1.2b2",
]
[project.optional-dependencies]
datasets = [
"syft-dataset==0.1.20",
]
job = [
"syft-job==0.1.39",
]
all = [
"syft-client[datasets,job]",
]
[tool.uv]
default-groups = ["dev", "test"]
[tool.uv.workspace]
members = ["packages/*"]
[tool.uv.sources]
"syft-job" = { workspace = true }
"syft-notebook-ui" = { workspace = true }
"syft-dataset" = { workspace = true }
"syft-bg" = { workspace = true }
"syft-permissions" = { workspace = true }
"syft-perms" = { workspace = true }
"syft-enclave" = { workspace = true }
[project.urls]
Homepage = "https://github.com/OpenMined/syft-client"
Repository = "https://github.com/OpenMined/syft-client"
Documentation = "https://github.com/OpenMined/syft-client#readme"
"Bug Tracker" = "https://github.com/OpenMined/syft-client/issues"
[tool.setuptools.dynamic]
version = {attr = "syft_client.version.SYFT_CLIENT_VERSION"}
[tool.setuptools.packages.find]
where = ["."]
include = ["syft_client*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
markers = [
"unit: Unit tests (fast, mocked)",
"integration: Integration tests (slow, real API)",
"cleanup: Tests that require cleanup",
"slow: Tests that take a long time to run",
"flaky: Tests that may fail intermittently and should be retried"
]
addopts = [
"--strict-markers",
"--strict-config"
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning"
]
[tool.coverage.run]
source = ["syft_client"]
omit = [
"*/tests/*",
"*/test_*.py",
"setup.py"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:"
]
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 88
known_first_party = ["syft_client"]
skip_glob = ["**/__pycache__/**"]
[tool.prettier]
single_quote = true
[tool.flake8]
max-line-length = 88
extend-ignore = [
"E203", # whitespace before ':'
"E501", # line too long (handled by black)
"W503", # line break before binary operator
"W504" # line break after binary operator
]
exclude = [
".git",
"__pycache__",
"build",
"dist",
"*.egg-info",
".venv",
".tox"
]
[tool.bandit]
exclude_dirs = ["tests", "build", "dist", ".venv", "venv"]
skips = ["B101"] # Skip assert_used (needed in tests)
[tool.bandit.assert_used]
skips = ["*/test_*.py", "*/tests/*"]
[dependency-groups]
dev = [
"pre-commit>=4.3.0",
"jupyter>=1.0.0",
"notebook>=6.5.0",
"tornado>=6.5.5",
"ipython>=8.0.0",
]
test = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-xdist>=3.0.0",
"pytest-rerunfailures>=14.0",
"black>=26.3.1",
"flake8>=6.0.0",
"mypy>=1.0.0",
"isort>=5.12.0",
"coverage>=7.0.0",
"syft-enclave",
"pyarrow", # only used by parquet test fixtures (tests/unit/utils.py)
]