Skip to content

Commit bc2810e

Browse files
committed
Move protovalidate to optional and dev dependencies
protovalidate is only used in tests and for optional validation functionality. Moving it out of required dependencies reduces the install footprint for users who don't need validation. It remains available via the 'validation' optional extra (pip install authzed[validation]) and in the dev dependency group for testing. Signed-off-by: ivanauth <ivan@authzed.com>
1 parent 933d56e commit bc2810e

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,16 @@ dependencies = [
1919
"protobuf>=5.26,<7",
2020
"grpc-interceptor>=0.15.4,<0.16",
2121
"googleapis-common-protos>=1.65.0,<2",
22+
]
23+
24+
[project.optional-dependencies]
25+
validation = [
2226
"protovalidate>=0.7.1,<1.2.0",
2327
]
2428

2529
[dependency-groups]
2630
dev = [
31+
"protovalidate>=0.7.1,<1.2.0",
2732
"grpc-stubs~=1.53",
2833
"grpcio-tools>=1.63,<1.79",
2934
"mypy==1.19.1",

uv.lock

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)