From b714a1c843609235e709698ead80b9f61ea0b15d Mon Sep 17 00:00:00 2001 From: Chris Blades <41635127+cblades-tc@users.noreply.github.com> Date: Mon, 26 Feb 2024 14:38:29 -0500 Subject: [PATCH] [APP-4397] Make runtimeVariable feature default only for playbook apps (#16) [APP-4397] Make runtimeVariable feature default only for playbook apps --- pyproject.toml | 8 +++++++- release_notes.md | 4 ++++ tcex_cli/__metadata__.py | 3 ++- tcex_cli/app/config | 2 +- tcex_cli/cli/validate/validate_cli.py | 5 +++-- tcex_cli/input/field_type/sensitive.py | 5 ++++- 6 files changed, 21 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ca7c2cd..e8f7660 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,7 @@ dependencies = [ "debugpy", "inflect", "isort", - "paho.mqtt", + "paho-mqtt<2.0.0", "pyaes", "pydantic<2.0.0", "python-dateutil", @@ -133,9 +133,15 @@ extension-pkg-whitelist = "pydantic" exclude = [ "**/.history", "**/__pycache__", + "**/local-*", + "tcex/api/tc/v2", + "tests", ] pythonPlatform = "Linux" pythonVersion = "3.11" +reportIncompatibleMethodOverride = false +reportIncompatibleVariableOverride = false +reportPrivateImportUsage = false [tool.pytest.ini_options] filterwarnings = [] diff --git a/release_notes.md b/release_notes.md index 79d4cae..55fe0f6 100644 --- a/release_notes.md +++ b/release_notes.md @@ -1,5 +1,9 @@ # Release Notes +## 1.0.3 + +- APP-4397 [CONFIG] Update to make runtimeVariable feature a default feature only for playbook apps. + ## 1.0.2 - APP-4171 - [DEPS] Updated deps command to add a link to lib_latest for current Python version for App Builder diff --git a/tcex_cli/__metadata__.py b/tcex_cli/__metadata__.py index e789888..cf09058 100644 --- a/tcex_cli/__metadata__.py +++ b/tcex_cli/__metadata__.py @@ -1,3 +1,4 @@ """TcEx Framework metadata.""" + __license__ = 'Apache-2.0' -__version__ = '1.0.2' +__version__ = '1.0.3' diff --git a/tcex_cli/app/config b/tcex_cli/app/config index 249a4cf..79ab616 160000 --- a/tcex_cli/app/config +++ b/tcex_cli/app/config @@ -1 +1 @@ -Subproject commit 249a4cfc71b21e3d0db70a30ba67062499076296 +Subproject commit 79ab61680087851df45f17afbc9c898fb4410fbd diff --git a/tcex_cli/cli/validate/validate_cli.py b/tcex_cli/cli/validate/validate_cli.py index 5adad16..73cd637 100644 --- a/tcex_cli/cli/validate/validate_cli.py +++ b/tcex_cli/cli/validate/validate_cli.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import ast import json @@ -222,7 +223,7 @@ def check_layout_params(self): ) try: self.app.permutation.db_conn.execute(display_query.replace('"', '')) - except sqlite3.Error: + except sqlite3.Error: # type: ignore self.validation_data.errors.append( 'Layouts input.parameters[].display validations failed ' f'("{p.display}" query is an invalid statement).' @@ -262,7 +263,7 @@ def check_layout_params(self): ) try: self.app.permutation.db_conn.execute(display_query.replace('"', '')) - except sqlite3.Error: + except sqlite3.Error: # type: ignore self.validation_data.errors.append( f"""Layouts outputs.display validations failed ("{o.display}" """ f"""query is an invalid statement).""" diff --git a/tcex_cli/input/field_type/sensitive.py b/tcex_cli/input/field_type/sensitive.py index 2c77aa9..5027700 100644 --- a/tcex_cli/input/field_type/sensitive.py +++ b/tcex_cli/input/field_type/sensitive.py @@ -1,4 +1,5 @@ """TcEx Framework Module""" + # standard library import logging from collections.abc import Generator @@ -119,7 +120,9 @@ def validate_type(cls, value: bytes | str | Self, field: ModelField) -> bytes | """Raise exception if value is not a String type.""" if not isinstance(value, (bytes, str, Sensitive)): raise InvalidType( - field_name=field.name, expected_types='(bytes, str)', provided_type=type(value) + field_name=field.name, + expected_types='(bytes, str)', + provided_type=type(value).__name__, ) return value