Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ classifiers = [
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
]
# protobuf is a base dependency: the REST protocol parses grpc-gateway responses
# with protojson (int64-as-string + single-field wrappers) using the vendored
# proto message types. grpcio is only needed for the optional ``grpc`` protocol.
dependencies = ["httpx>=0.24,<1", "protobuf>=4"]
# authorizer-proto ships the generated proto message + gRPC stubs (was vendored
# under _grpc). protobuf stays a direct dep because the REST protocol parses
# grpc-gateway responses with protojson (int64-as-string + single-field wrappers)
# using those message types. grpcio is only needed for the optional ``grpc``
# protocol (pulled via authorizer-proto[grpc]).
dependencies = ["httpx>=0.24,<1", "protobuf>=4", "authorizer-proto>=0.1.0"]

[project.optional-dependencies]
grpc = ["grpcio>=1.60", "protobuf>=4"]
grpc = ["authorizer-proto[grpc]>=0.1.0", "grpcio>=1.60", "protobuf>=4"]
dev = [
"pytest>=7",
"pytest-asyncio>=0.23",
Expand All @@ -51,8 +53,6 @@ packages = ["src/authorizer"]
[tool.ruff]
line-length = 100
target-version = "py39"
# Vendored generated gRPC/protobuf stubs — never lint.
extend-exclude = ["src/authorizer/_grpc"]

[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "W"]
Expand All @@ -61,11 +61,10 @@ select = ["E", "F", "I", "UP", "B", "W"]
python_version = "3.9"
strict = true
warn_unused_ignores = true
# Vendored generated gRPC/protobuf stubs — not type-checked.
exclude = ["src/authorizer/_grpc/"]

# Generated proto/gRPC stubs (authorizer-proto package) — untyped, not checked.
[[tool.mypy.overrides]]
module = "authorizer._grpc.*"
module = "authorizer_proto.*"
ignore_errors = true
ignore_missing_imports = true

Expand Down
Empty file removed src/authorizer/_grpc/__init__.py
Empty file.
Empty file.
Empty file.
479 changes: 0 additions & 479 deletions src/authorizer/_grpc/authorizer/v1/admin_pb2.py

This file was deleted.

2,414 changes: 0 additions & 2,414 deletions src/authorizer/_grpc/authorizer/v1/admin_pb2_grpc.py

This file was deleted.

40 changes: 0 additions & 40 deletions src/authorizer/_grpc/authorizer/v1/annotations_pb2.py

This file was deleted.

4 changes: 0 additions & 4 deletions src/authorizer/_grpc/authorizer/v1/annotations_pb2_grpc.py

This file was deleted.

Loading
Loading