Skip to content

Commit

Permalink
Resolve jsonschema load issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
digimaun committed Sep 19, 2019
1 parent 3102b17 commit 77289ba
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
4 changes: 4 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Release History
===============

0.8.2
+++++++++++++++
* Resolve jsonschema dependency issue.

0.8.1
+++++++++++++++
* PnP monitor events commands - Adds an option for filtering devices by twin query.
Expand Down
2 changes: 1 addition & 1 deletion azext_iot/_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import os

VERSION = "0.8.1"
VERSION = "0.8.2"
EXTENSION_NAME = "azure-cli-iot-ext"
EXTENSION_ROOT = os.path.dirname(os.path.abspath(__file__))
EXTENSION_CONFIG_ROOT_KEY = "iotext"
Expand Down
2 changes: 1 addition & 1 deletion azext_iot/azext_metadata.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"azext.minCliCoreVersion": "2.0.70",
"version": "0.8.1"
"version": "0.8.2"
}
6 changes: 6 additions & 0 deletions azext_iot/operations/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,12 @@ def _process_config_content(content, content_type='module'):


def _validate_payload_schema(content):
from azure.cli.core.extension import get_extension_path
from azext_iot._constants import EXTENSION_NAME
import pkg_resources

pkg_resources.working_set.add_entry(get_extension_path(EXTENSION_NAME))

from jsonschema import validate
from jsonschema.exceptions import ValidationError, SchemaError
from azext_iot._constants import EDGE_DEPLOYMENT_SCHEMA_2_PATH as schema_path
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
# though that is installed out of band (managed by the extension)
# for compatibility reasons.

DEPENDENCIES = ["paho-mqtt==1.3.1", "jsonschema~=3.0.2"]
DEPENDENCIES = ["paho-mqtt==1.3.1", "jsonschema~=3.0.2", "setuptools"]


setup(
Expand Down

0 comments on commit 77289ba

Please sign in to comment.