Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
python-version: ['3.11', '3.12', '3.13', '3.14', '3.15']
include:
# Mark below python version as the latest one
- python-version: '3.13'
- python-version: '3.15'
python-latest: true

steps:
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: '33.5'
version: '36.2'
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Generate proto files
Expand Down
2 changes: 1 addition & 1 deletion backend-apis
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ def get_absolute_path(*args):
keywords=about["__keywords__"],
packages=find_packages(exclude=["contrib", "docs", "tests", "examples"]),
install_requires=[
"protobuf~=6.33.5"
"protobuf~=7.36.2"
]
)
12 changes: 12 additions & 0 deletions tests/test_set_scratchpad_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,15 @@ def test_decoding_request_with_too_large_target_crc_should_fail_with_correct_exc
assert exc_info.value.header["req_id"] == REQUEST_ID
assert exc_info.value.header["sink_id"] == SINK_ID_2
assert exc_info.value.header["time_ms_epoch"] == TEST_TIME

def test_generate_parse_request_with_inventory_mode():
request = wirepas_mesh_messaging.SetScratchpadTargetAndActionRequest(
SINK_ID, {"action": wirepas_mesh_messaging.ScratchpadAction.ACTION_INVENTORY_MODE}, REQUEST_ID
)

request2 = wirepas_mesh_messaging.SetScratchpadTargetAndActionRequest.from_payload(
request.payload
)

for k, v in request.__dict__.items():
assert v == request2.__dict__[k]
3 changes: 2 additions & 1 deletion wirepas_mesh_messaging/otap_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# flake8: noqa
from .proto.wp_global_pb2 import BLANK, PRESENT, PROCESS, SUCCESS, NEW, ERROR
from .proto.wp_global_pb2 import NO_OTAP, PROPAGATE_ONLY, PROPAGATE_AND_PROCESS, PROPAGATE_AND_PROCESS_WITH_DELAY, LEGACY_OTAP
from .proto.wp_global_pb2 import NO_OTAP, PROPAGATE_ONLY, PROPAGATE_AND_PROCESS, PROPAGATE_AND_PROCESS_WITH_DELAY, LEGACY_OTAP, INVENTORY_MODE
from .proto.wp_global_pb2 import UNKNOWN_DELAY, TEN_MINUTES, THIRTY_MINUTES, ONE_HOUR, SIX_HOURS, ONE_DAY, TWO_DAYS, FIVE_DAYS

import enum
Expand Down Expand Up @@ -69,6 +69,7 @@ class ScratchpadAction(enum.Enum):
ACTION_PROPAGATE_AND_PROCESS = PROPAGATE_AND_PROCESS
ACTION_PROPAGATE_AND_PROCESS_WITH_DELAY = PROPAGATE_AND_PROCESS_WITH_DELAY
ACTION_LEGACY_OTAP = LEGACY_OTAP
ACTION_INVENTORY_MODE = INVENTORY_MODE


class ProcessingDelay(enum.Enum):
Expand Down
Loading