Skip to content

Commit f3fcd40

Browse files
authored
Override the default include path when generating protobuf files (#375)
By default `repo-config` will include the `submodules/frequenz-api-common` directory, which is us, and we don't want to include ourselves as a submodule, so we need to explicitly set the `include_paths` to an empty array. We also need to bump the dependency on `frequenz-repo-config` to get a bug fix that allows overriding with an empty array.
2 parents 282cb50 + c76bca2 commit f3fcd40

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

pyproject.toml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
requires = [
66
"setuptools == 80.9.0",
77
"setuptools_scm[toml] == 8.3.1",
8-
"frequenz-repo-config[api] == 0.13.4",
8+
"frequenz-repo-config[api] == 0.13.5",
99
# We need to pin the protobuf, grpcio and grpcio-tools dependencies to make
1010
# sure the code is generated using the minimum supported versions, as older
1111
# versions can't work with code that was generated with newer versions.
@@ -63,23 +63,23 @@ dev-mkdocs = [
6363
"mkdocs-literate-nav == 0.6.2",
6464
"mkdocs-material == 9.6.14",
6565
"mkdocstrings[python] == 0.29.1",
66-
"frequenz-repo-config[api] == 0.13.4",
66+
"frequenz-repo-config[api] == 0.13.5",
6767
]
6868
dev-mypy = [
6969
"mypy == 1.16.0",
7070
"grpc-stubs == 1.53.0.6",
7171
# For checking the noxfile, docs/ script, and tests
7272
"frequenz-api-common[dev-mkdocs,dev-noxfile,dev-pytest]",
7373
]
74-
dev-noxfile = ["nox == 2025.5.1", "frequenz-repo-config[api] == 0.13.4"]
74+
dev-noxfile = ["nox == 2025.5.1", "frequenz-repo-config[api] == 0.13.5"]
7575
dev-pylint = [
7676
"pylint == 3.3.7",
7777
# For checking the noxfile, docs/ script, and tests
7878
"frequenz-api-common[dev-mkdocs,dev-noxfile,dev-pytest]",
7979
]
8080
dev-pytest = [
8181
"pytest == 8.3.5",
82-
"frequenz-repo-config[extra-lint-examples] == 0.13.4",
82+
"frequenz-repo-config[extra-lint-examples] == 0.13.5",
8383
]
8484
dev = [
8585
"frequenz-api-common[dev-mkdocs,dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]",
@@ -91,6 +91,12 @@ Issues = "https://github.com/frequenz-floss/frequenz-api-common/issues"
9191
Repository = "https://github.com/frequenz-floss/frequenz-api-common"
9292
Support = "https://github.com/frequenz-floss/frequenz-api-common/discussions/categories/support"
9393

94+
[tool.frequenz-repo-config.protobuf]
95+
# We need to explicitly set this to an empty array because repo-config will
96+
# automatically add `submodules/frequenz-api-common` as a include, but this is
97+
# us, and we don't include ourselves as a submodule.
98+
include_paths = []
99+
94100
[tool.black]
95101
line-length = 88
96102
target-version = ['py311']

0 commit comments

Comments
 (0)