Skip to content

Commit 21e2607

Browse files
Change package path to "frequenz.dispatch.v1"
Fixes #32 Signed-off-by: Stefan Brus <[email protected]>
1 parent 7f0f289 commit 21e2607

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

RELEASE_NOTES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
# Release notes
2+
3+
- Package-based versioning has been introduced.
4+
- As part of this, the protobuf definitions and generated python code now has the path `frequenz.dispatch.v1`.

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

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

88
syntax = "proto3";
99

10-
package frequenz.api.dispatch;
10+
package frequenz.dispatch.v1;
1111

1212
import "google/api/annotations.proto";
1313
import "google/protobuf/empty.proto";

pytests/test_dispatch.py

Lines changed: 4 additions & 4 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.api import dispatch
10+
from frequenz.dispatch import v1
1111

12-
assert dispatch is not None
12+
assert v1 is not None
1313

1414

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

2020
assert dispatch_pb2 is not None
2121

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

2525
assert dispatch_pb2_grpc is not None

0 commit comments

Comments
 (0)