Skip to content

Commit

Permalink
update protobuf to 4 version, regenerate stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
m.kindritskiy committed Nov 28, 2023
1 parent 237742d commit 01c0c23
Show file tree
Hide file tree
Showing 12 changed files with 1,395 additions and 3,669 deletions.
1 change: 1 addition & 0 deletions .pdm-python
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/Users/max/code/evo/featureflags/.venv/bin/python
670 changes: 339 additions & 331 deletions client/pdm.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ test = [
"faker",
"tox-pdm",
"grpclib",
"protobuf==3.20.1",
"protobuf>=4.24.4",
"grpcio",
"evo-featureflags-protobuf @ file:///${PROJECT_ROOT}/../protobuf",
]
Expand Down
1,741 changes: 607 additions & 1,134 deletions pdm.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions protobuf/.pdm-python
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/Users/max/code/evo/featureflags/protobuf/.venv/bin/python
862 changes: 41 additions & 821 deletions protobuf/featureflags/protobuf/backend_pb2.py

Large diffs are not rendered by default.

1,060 changes: 51 additions & 1,009 deletions protobuf/featureflags/protobuf/graph_pb2.py

Large diffs are not rendered by default.

389 changes: 25 additions & 364 deletions protobuf/featureflags/protobuf/service_pb2.py

Large diffs are not rendered by default.

307 changes: 307 additions & 0 deletions protobuf/pdm.lock

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions protobuf/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,26 @@ license = {text = "MIT"}
requires = ["pdm-pep517>=1.0.0"]
build-backend = "pdm.pep517.api"

[project.optional-dependencies]
dev = [
"protobuf>=4.24.4",
"grpcio-tools>=1.59.3",
"hiku==0.6.0",
"grpclib>=0.4.6",
]

[tool]

[tool.pdm]

[tool.pdm.scripts.generate-proto]
shell = """
set -e
export PROTO_PATH=$(python3 -c 'import os.path, hiku;\
print(os.path.dirname(os.path.dirname(hiku.__file__)))')
python3 -m grpc_tools.protoc -I. -I$PROTO_PATH --python_out=. featureflags/protobuf/backend.proto
python3 -m grpc_tools.protoc -I. -I$PROTO_PATH --python_out=. featureflags/protobuf/graph.proto
python3 -m grpc_tools.protoc -I. -I$PROTO_PATH --python_out=. --python_grpc_out=. --grpc_python_out=. featureflags/protobuf/service.proto
"""
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies = [
'grpclib>=0.4.3',
"click==8",
"hiku==0.6.0",
"protobuf==3.20.1",
"protobuf>=4.25.1",
"sqlalchemy==1.4.42",
"aiopg[sa]==1.4.0",
"psycopg2==2.9.5",
Expand Down
8 changes: 0 additions & 8 deletions scripts/protoc.sh

This file was deleted.

0 comments on commit 01c0c23

Please sign in to comment.