-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
116 lines (99 loc) · 3.06 KB
/
Copy pathpyproject.toml
File metadata and controls
116 lines (99 loc) · 3.06 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
# Copyright AGNTCY Contributors (https://github.com/agntcy)
# SPDX-License-Identifier: Apache-2.0
[build-system]
requires = [
"maturin>=1.11,<1.15",
"maturin[patchelf]>=1.8.2,<1.15; sys_platform == 'linux'",
"uniffi-bindgen==0.31.0"
]
build-backend = "maturin"
[project]
name = "slim-bindings"
dynamic = ["version"]
description = "Python bindings for SLIM (Secure Low-Latency Interactive Messaging) using UniFFI"
requires-python = ">=3.10"
readme = "README.md"
license = "Apache-2.0"
authors = [
{name = "AGNTCY Contributors", email = "slim@agntcy.io"}
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
"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",
]
[project.urls]
Repository = "https://github.com/agntcy/slim-bindings"
Issues = "https://github.com/agntcy/slim-bindings/issues"
[project.optional-dependencies]
examples = [
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
"prompt-toolkit>=3.0.52",
"pyyaml>=6.0.3",
"tomli>=2.4.0",
"protobuf>=6.33.4",
"googleapis-common-protos>=1.72.0",
]
[project.scripts]
slim-bindings-group = "examples.group:main"
slim-bindings-p2p = "examples.point_to_point:main"
slim-bindings-server = "examples.slim:main"
slim-bindings-simple-rpc-server = "examples.slimrpc.simple.server:main"
slim-bindings-simple-rpc-client = "examples.slimrpc.simple.client:main"
slim-bindings-simple-rpc-client-group = "examples.slimrpc.simple.client_group:main"
[dependency-groups]
building = [
"maturin>=1.11,<1.15",
"maturin[patchelf]>=1.8.2,<1.15; sys_platform == 'linux'",
"uniffi-bindgen==0.31.0"
]
testing = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
]
linting = [
"griffe>=1.5.5",
"pyright>=1.1.0",
"ruff>=0.9.3",
"mypy>=1.14.1",
]
[tool.maturin]
bindings = "uniffi"
manifest-path = "../rust/Cargo.toml"
module-name = "slim_bindings._slim_bindings"
python-packages = ["examples"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
markers = [
"integration: marks tests as integration tests (need running server)",
]
[tool.ruff]
extend-exclude = ["slim_bindings/_slim_bindings.pyi", "*_pb2.py", "*_pb2.pyi", "*_pb2_slimrpc.py"]
[tool.ruff.lint]
extend-select = ["Q", "RUF100", "C90", "I", "UP"]
extend-ignore = [
"E721", # using type() instead of isinstance() - we use this in tests
]
flake8-quotes = { inline-quotes = "double", multiline-quotes = "double" }
mccabe = { max-complexity = 13 }
isort = { known-first-party = ["slim_bindings", "tests"] }
[tool.uv]
default-groups = ["building"]
[[tool.mypy.overrides]]
module = ["google.rpc.*"]
follow_untyped_imports = true
[[tool.mypy.overrides]]
module = ["slim_bindings._slim_bindings.*"]
ignore_errors = true
[[tool.mypy.overrides]]
module = ["examples.slimrpc.*.types.*"]
ignore_errors = true