From f31e78f7eaf827d27f31b73c157d678145f641d1 Mon Sep 17 00:00:00 2001 From: "C. Allwardt" <3979063+craig8@users.noreply.github.com> Date: Mon, 30 Sep 2024 19:39:36 -0700 Subject: [PATCH] Update to v10 version --- pyproject.toml | 8 ++++---- src/threshold_detection/agent.py | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 15d3d9d..26521f5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,8 +11,8 @@ profile = "black" [tool.poetry] include = ["src/threshold_detection", "config"] name = "volttron-threshold-detection" -version = "0.1.0" -description = "The ThresholdDetectionAgent will publish an alert when a value published to a topic exceeds or falls below a configured value." +version = "0.2.0" +description = "The `volttron-threshold-detection` agent will publish an alert when a value published to a topic exceeds or falls below a configured value." authors = ["VOLTTRON Team "] license = "Apache License 2.0" readme = "README.md" @@ -31,10 +31,10 @@ classifiers = [ [tool.poetry.dependencies] python = ">=3.10,<4.0" -volttron = "^10.0.4rc1" +volttron-core = {path="../volttron-core", develop=true} [tool.poetry.group.dev.dependencies] -volttron-testing = "^0.4.0rc0" +#volttron-testing = "^0.4.0rc0" pytest = "^6.2.5" pytest-cov = "^3.0.0" mock = "^4.0.3" diff --git a/src/threshold_detection/agent.py b/src/threshold_detection/agent.py index 93a563d..3a86f37 100644 --- a/src/threshold_detection/agent.py +++ b/src/threshold_detection/agent.py @@ -26,11 +26,12 @@ import sys import uuid -from volttron import utils +import volttron.utils as utils +from volttron.client.logs import setup_logging from volttron.client.messaging.health import STATUS_BAD, Status from volttron.client.vip.agent import RPC, Agent, Core, PubSub -utils.setup_logging() +setup_logging() _log = logging.getLogger(__name__) __version__ = '3.7'