Skip to content

Commit ca327dd

Browse files
committed
Move back to the frequenz.api namespace
The namespaces makes it easier to differentiate API related files/modules/packages from other type of software components, like actors, etc. This partially reverts 98c13d2b21722a14ae701b23ce06158e0f8b1c63 (the `v1` addition is kept). Signed-off-by: Leandro Lucarella <[email protected]>
1 parent d3bb5f8 commit ca327dd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

proto/frequenz/dispatch/v1/dispatch.proto renamed to proto/frequenz/api/dispatch/v1/dispatch.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
syntax = "proto3";
4040

41-
package frequenz.dispatch.v1;
41+
package frequenz.api.dispatch.v1;
4242

4343
import "google/protobuf/empty.proto";
4444
import "google/protobuf/struct.proto";

pytests/test_dispatch.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
def test_package_import() -> None:
88
"""Test that the package can be imported."""
99
# pylint: disable=import-outside-toplevel
10-
from frequenz.dispatch import v1
10+
from frequenz.api.dispatch import v1
1111

1212
assert v1 is not None
1313

1414

1515
def test_module_import_components() -> None:
1616
"""Test that the modules can be imported."""
1717
# pylint: disable=import-outside-toplevel
18-
from frequenz.dispatch.v1 import dispatch_pb2
18+
from frequenz.api.dispatch.v1 import dispatch_pb2
1919

2020
assert dispatch_pb2 is not None
2121

2222
# pylint: disable=import-outside-toplevel
23-
from frequenz.dispatch.v1 import dispatch_pb2_grpc
23+
from frequenz.api.dispatch.v1 import dispatch_pb2_grpc
2424

2525
assert dispatch_pb2_grpc is not None

0 commit comments

Comments
 (0)