Skip to content

Commit a900822

Browse files
committed
build(flagd): auto generate proto files from schema
Signed-off-by: Simon Schrottner <[email protected]>
1 parent 038a343 commit a900822

File tree

13 files changed

+20
-992
lines changed

13 files changed

+20
-992
lines changed

providers/openfeature-provider-flagd/pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ dependencies = [
4141
"asserts",
4242
"grpcio-health-checking==1.60.0",
4343
]
44-
post-install-commands = [
45-
"./scripts/gen_protos.sh"
46-
]
4744

4845
[tool.hatch.envs.default.scripts]
4946
test = "pytest {args:tests}"
@@ -57,6 +54,11 @@ cov = [
5754
"cov-report",
5855
]
5956

57+
[tool.hatch.build.hooks.protobuf]
58+
dependencies = ["hatch-protobuf"]
59+
paths = ["schemas/protobuf/schema/v1/schema.proto", "schemas/protobuf/sync/v1/sync_service.proto"]
60+
output_path = "src"
61+
6062
[tool.hatch.build.targets.sdist]
6163
exclude = [
6264
".gitignore",

providers/openfeature-provider-flagd/scripts/gen_protos.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/proto/flagd/evaluation/v1/evaluation_pb2.py

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)