From 443f4d31f25fb758a3cfb78f964e26bc99b2de4a Mon Sep 17 00:00:00 2001 From: ff137 Date: Thu, 4 Apr 2024 13:12:33 +0200 Subject: [PATCH] :construction_worker: set `validate_assignment` config back to True, and pin pydantic >2.6 as it solves the memory leak issue previously caused by this config --- aries_cloudcontroller/util/pydantic_model_config.py | 2 +- requirements.txt | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aries_cloudcontroller/util/pydantic_model_config.py b/aries_cloudcontroller/util/pydantic_model_config.py index 00a16789c..cb0268d0a 100644 --- a/aries_cloudcontroller/util/pydantic_model_config.py +++ b/aries_cloudcontroller/util/pydantic_model_config.py @@ -3,5 +3,5 @@ DEFAULT_PYDANTIC_MODEL_CONFIG: ConfigDict = { "defer_build": True, "populate_by_name": True, - "validate_assignment": False, + "validate_assignment": True, } diff --git a/requirements.txt b/requirements.txt index 50bf58e16..ecc569d81 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ aiohttp>=3.9.2,<4.0 -pydantic>=2.4,<3.0 +pydantic>=2.6,<3.0 python-dateutil>=2 typing-extensions>=4,<5.0 urllib3>=2.1,<3 diff --git a/setup.py b/setup.py index b00a57bb0..902108d80 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ def parse_requirements(filename: str): if __name__ == "__main__": setup( name=PACKAGE_NAME, - version="0.11.0-rev1", + version="0.11.0-rev2", description="A simple python client for controlling an ACA-Py agent", long_description=long_description, long_description_content_type="text/markdown",