From 61e5fd4ec2554fcb3a8510ed1141a24604253c6b Mon Sep 17 00:00:00 2001 From: tushar-composio Date: Wed, 18 Dec 2024 03:35:20 -0800 Subject: [PATCH] chore: Release v0.6.3 (#1034) --- python/composio/__version__.py | 2 +- python/dockerfiles/Dockerfile | 2 +- python/plugins/autogen/setup.py | 4 ++-- python/plugins/camel/setup.py | 4 ++-- python/plugins/claude/setup.py | 4 ++-- python/plugins/crew_ai/setup.py | 4 ++-- python/plugins/google/setup.py | 4 ++-- python/plugins/griptape/setup.py | 4 ++-- python/plugins/julep/setup.py | 4 ++-- python/plugins/langchain/setup.py | 4 ++-- python/plugins/langgraph/setup.py | 4 ++-- python/plugins/llamaindex/setup.py | 4 ++-- python/plugins/lyzr/setup.py | 4 ++-- python/plugins/openai/setup.py | 4 ++-- python/plugins/phidata/setup.py | 6 +++--- python/plugins/praisonai/setup.py | 4 ++-- python/scripts/bump.py | 21 ++++++++++++++------- python/setup.py | 2 +- python/swe/setup.py | 6 +++--- 19 files changed, 49 insertions(+), 42 deletions(-) diff --git a/python/composio/__version__.py b/python/composio/__version__.py index 22049ab2c4d..63af88769b0 100644 --- a/python/composio/__version__.py +++ b/python/composio/__version__.py @@ -1 +1 @@ -__version__ = "0.6.2" +__version__ = "0.6.3" diff --git a/python/dockerfiles/Dockerfile b/python/dockerfiles/Dockerfile index f1188661a33..f02ae8f2581 100644 --- a/python/dockerfiles/Dockerfile +++ b/python/dockerfiles/Dockerfile @@ -19,7 +19,7 @@ RUN /bin/python3 -m venv .composio/venv RUN export PATH=$PATH:$(pwd)/.composio/venv/bin # Install composio -RUN python -m pip install composio-core[all]==0.6.2 fastapi playwright uvicorn +RUN python -m pip install composio-core[all]==0.6.3 fastapi playwright uvicorn # Install playwright deps RUN playwright install-deps diff --git a/python/plugins/autogen/setup.py b/python/plugins/autogen/setup.py index 675990f469b..902ba6e6023 100644 --- a/python/plugins/autogen/setup.py +++ b/python/plugins/autogen/setup.py @@ -9,7 +9,7 @@ setup( name="composio_autogen", - version="0.6.2", + version="0.6.3", author="Sawradip", author_email="sawradip@composio.dev", description="Use Composio to get an array of tools with your Autogen agent.", @@ -23,7 +23,7 @@ ], python_requires=">=3.9,<4", install_requires=[ - "composio_core>=0.5.0,<=0.6.2", + "composio_core>=0.5.0,<0.7.0", "pyautogen>=0.2.19", "flaml==2.2.0", ], diff --git a/python/plugins/camel/setup.py b/python/plugins/camel/setup.py index c5a5ceccc1f..cd5e9bcda73 100644 --- a/python/plugins/camel/setup.py +++ b/python/plugins/camel/setup.py @@ -9,7 +9,7 @@ setup( name="composio_camel", - version="0.6.2", + version="0.6.3", author="Sawradip", author_email="sawradip@composio.dev", description="Use Composio to get an array of tools with your Claude LLMs.", @@ -23,7 +23,7 @@ ], python_requires=">=3.9,<4", install_requires=[ - "composio_core>=0.5.0,<=0.6.2", + "composio_core>=0.5.0,<0.7.0", "camel-ai>=0.1.5.7,<=0.2.2", "pillow", ], diff --git a/python/plugins/claude/setup.py b/python/plugins/claude/setup.py index 3bf427ecd69..5de58aa4107 100644 --- a/python/plugins/claude/setup.py +++ b/python/plugins/claude/setup.py @@ -9,7 +9,7 @@ setup( name="composio_claude", - version="0.6.2", + version="0.6.3", author="Sawradip", author_email="sawradip@composio.dev", description="Use Composio to get an array of tools with your Claude LLMs.", @@ -22,6 +22,6 @@ "Operating System :: OS Independent", ], python_requires=">=3.9,<4", - install_requires=["composio_openai>=0.5.0,<=0.6.2", "anthropic>=0.25.7"], + install_requires=["composio_openai>=0.5.0,<0.7.0", "anthropic>=0.25.7"], include_package_data=True, ) diff --git a/python/plugins/crew_ai/setup.py b/python/plugins/crew_ai/setup.py index de8d4fe552a..9c3e454d10d 100644 --- a/python/plugins/crew_ai/setup.py +++ b/python/plugins/crew_ai/setup.py @@ -9,7 +9,7 @@ setup( name="composio_crewai", - version="0.6.2", + version="0.6.3", author="Himanshu", author_email="himanshu@composio.dev", description="Use Composio to get an array of tools with your CrewAI agent.", @@ -23,7 +23,7 @@ ], python_requires=">=3.9,<4", install_requires=[ - "composio_langchain>=0.5.0,<=0.6.2", + "composio_langchain>=0.5.0,<0.7.0", "crewai>=0.51.0", ], include_package_data=True, diff --git a/python/plugins/google/setup.py b/python/plugins/google/setup.py index 520c718495c..c7eb59856ce 100644 --- a/python/plugins/google/setup.py +++ b/python/plugins/google/setup.py @@ -9,7 +9,7 @@ setup( name="composio_google", - version="0.6.2", + version="0.6.3", author="Assistant", author_email="karan@composio.dev", description="Use Composio to get an array of tools with your Google AI Python Gemini model.", @@ -23,7 +23,7 @@ ], python_requires=">=3.9,<4", install_requires=[ - "composio_core>=0.5.0,<=0.6.2", + "composio_core>=0.5.0,<0.7.0", "google-cloud-aiplatform>=1.38.0", ], include_package_data=True, diff --git a/python/plugins/griptape/setup.py b/python/plugins/griptape/setup.py index 7cbad111508..85e380738ec 100644 --- a/python/plugins/griptape/setup.py +++ b/python/plugins/griptape/setup.py @@ -9,7 +9,7 @@ setup( name="composio_griptape", - version="0.6.2", + version="0.6.3", author="Sawradip", author_email="sawradip@composio.dev", description="Use Composio to get an array of tools with your Griptape wokflow.", @@ -22,6 +22,6 @@ "Operating System :: OS Independent", ], python_requires=">=3.9,<4", - install_requires=["composio_core>=0.5.0,<=0.6.2", "griptape>=0.24.2"], + install_requires=["composio_core>=0.5.0,<0.7.0", "griptape>=0.24.2"], include_package_data=True, ) diff --git a/python/plugins/julep/setup.py b/python/plugins/julep/setup.py index f94a3a75439..c24cf780f9a 100644 --- a/python/plugins/julep/setup.py +++ b/python/plugins/julep/setup.py @@ -9,7 +9,7 @@ setup( name="composio_julep", - version="0.6.2", + version="0.6.3", author="Sawradip", author_email="sawradip@composio.dev", description="Use Composio to get an array of tools with your Julep wokflow.", @@ -22,6 +22,6 @@ "Operating System :: OS Independent", ], python_requires=">=3.9,<4", - install_requires=["composio_openai>=0.5.0,<=0.6.2", "julep>=0.3.2"], + install_requires=["composio_openai>=0.5.0,<0.7.0", "julep>=0.3.2"], include_package_data=True, ) diff --git a/python/plugins/langchain/setup.py b/python/plugins/langchain/setup.py index 336a588afc9..26a4ef79a0d 100644 --- a/python/plugins/langchain/setup.py +++ b/python/plugins/langchain/setup.py @@ -9,7 +9,7 @@ setup( name="composio_langchain", - version="0.6.2", + version="0.6.3", author="Karan", author_email="karan@composio.dev", description="Use Composio to get an array of tools with your LangChain agent.", @@ -27,7 +27,7 @@ "langchain-openai>=0.0.2.post1", "pydantic>=2.6.4", "langchainhub>=0.1.15", - "composio_core>=0.5.0,<=0.6.2", + "composio_core>=0.5.0,<0.7.0", ], include_package_data=True, ) diff --git a/python/plugins/langgraph/setup.py b/python/plugins/langgraph/setup.py index 49af14234fc..2906d3800fe 100644 --- a/python/plugins/langgraph/setup.py +++ b/python/plugins/langgraph/setup.py @@ -9,7 +9,7 @@ setup( name="composio_langgraph", - version="0.6.2", + version="0.6.3", author="Sawradip", author_email="sawradip@composio.dev", description="Use Composio to get array of tools with LnagGraph Agent Workflows", @@ -23,7 +23,7 @@ ], python_requires=">=3.9,<4", install_requires=[ - "composio_langchain>=0.5.0,<=0.6.2", + "composio_langchain>=0.5.0,<0.7.0", "langgraph", ], include_package_data=True, diff --git a/python/plugins/llamaindex/setup.py b/python/plugins/llamaindex/setup.py index 94183fa5ff5..4c2627cb9a7 100644 --- a/python/plugins/llamaindex/setup.py +++ b/python/plugins/llamaindex/setup.py @@ -9,7 +9,7 @@ setup( name="composio_llamaindex", - version="0.6.2", + version="0.6.3", author="Sawradip", author_email="sawradip@composio.dev", description="Use Composio to get an array of tools with your LlamaIndex agent.", @@ -24,7 +24,7 @@ python_requires=">=3.9,<4", install_requires=[ "llama_index>=0.10.43", - "composio_core>=0.5.0,<=0.6.2", + "composio_core>=0.5.0,<0.7.0", ], include_package_data=True, ) diff --git a/python/plugins/lyzr/setup.py b/python/plugins/lyzr/setup.py index 4db88aaa028..f2ca824a2f5 100644 --- a/python/plugins/lyzr/setup.py +++ b/python/plugins/lyzr/setup.py @@ -9,7 +9,7 @@ setup( name="composio_lyzr", - version="0.6.2", + version="0.6.3", author="Sawradip", author_email="sawradip@composio.dev", description="Use Composio to get an array of tools with your Lyzr workflow.", @@ -25,7 +25,7 @@ install_requires=[ "lyzr-automata>=0.1.3", "pydantic>=2.6.4", - "composio_core>=0.5.0,<=0.6.2", + "composio_core>=0.5.0,<0.7.0", "langchain>=0.1.0", ], include_package_data=True, diff --git a/python/plugins/openai/setup.py b/python/plugins/openai/setup.py index 4d6854db1c2..1924443982a 100644 --- a/python/plugins/openai/setup.py +++ b/python/plugins/openai/setup.py @@ -9,7 +9,7 @@ setup( name="composio_openai", - version="0.6.2", + version="0.6.3", author="Sawradip", author_email="sawradip@composio.dev", description="Use Composio to get an array of tools with your OpenAI Function Call.", @@ -22,6 +22,6 @@ "Operating System :: OS Independent", ], python_requires=">=3.9,<4", - install_requires=["composio_core>=0.5.0,<=0.6.2", "openai"], + install_requires=["composio_core>=0.5.0,<0.7.0", "openai"], include_package_data=True, ) diff --git a/python/plugins/phidata/setup.py b/python/plugins/phidata/setup.py index c143832752c..c64825629fe 100644 --- a/python/plugins/phidata/setup.py +++ b/python/plugins/phidata/setup.py @@ -9,7 +9,7 @@ setup( name="composio_phidata", - version="0.6.2", + version="0.6.3", author="Sawradip", author_email="sawradip@composio.dev", description="Use Composio to get an array of tools with your Phidata Plugin.", @@ -23,8 +23,8 @@ ], python_requires=">=3.9,<4", install_requires=[ - "composio_core>=0.5.0,<=0.6.2", - "composio_openai>=0.5.0,<=0.6.2", + "composio_core>=0.5.0,<0.7.0", + "composio_openai>=0.5.0,<0.7.0", "phidata", ], include_package_data=True, diff --git a/python/plugins/praisonai/setup.py b/python/plugins/praisonai/setup.py index 173000da28b..44a2213fb69 100644 --- a/python/plugins/praisonai/setup.py +++ b/python/plugins/praisonai/setup.py @@ -9,7 +9,7 @@ setup( name="composio_praisonai", - version="0.6.2", + version="0.6.3", author="Sawradip", author_email="sawradip@composio.dev", description="Use Composio Tools to enhance your PraisonAI agents capabilities.", @@ -22,6 +22,6 @@ "Operating System :: OS Independent", ], python_requires=">=3.9", - install_requires=["composio_core>=0.5.0,<=0.6.2", "PraisonAI>=0.0.2"], + install_requires=["composio_core>=0.5.0,<0.7.0", "PraisonAI>=0.0.2"], include_package_data=True, ) diff --git a/python/scripts/bump.py b/python/scripts/bump.py index 55f88269ad4..f5b4eb28017 100644 --- a/python/scripts/bump.py +++ b/python/scripts/bump.py @@ -37,7 +37,9 @@ def _get_bumped_version(current: VersionInfo, btype: BumpType) -> VersionInfo: return current.bump_build(token="post") -def _bump_setup(file: Path, bump_type: BumpType) -> None: +def _bump_setup( + file: Path, bump_type: BumpType, latest_core_version: VersionInfo +) -> None: print("=" * 64) print(f"Bumping {file}") content = file.read_text(encoding="utf-8") @@ -61,20 +63,23 @@ def _bump_setup(file: Path, bump_type: BumpType) -> None: ) content = content.replace( chunk, - f"{dependency}>={min_version},<={_get_bumped_version(current=max_version, btype=bump_type)}", + # TODO: for now this BumpType is minor because we do breaking change on a minor release while + # doing breaking changes. Change this to MAJOR once we are past v1.0 + f"{dependency}>={min_version},<{_get_bumped_version(current=latest_core_version, btype=BumpType.MINOR)}", ) + file.write_text(content, encoding="utf-8") print(f"Bumped {file} to {update}") -def _bump_setups(bump_type: BumpType) -> None: +def _bump_setups(bump_type: BumpType, latest_core_version: VersionInfo) -> None: cwd = Path.cwd() for setup in ( cwd / "setup.py", cwd / "swe" / "setup.py", *(cwd / "plugins").glob("**/setup.py"), ): - _bump_setup(file=setup, bump_type=bump_type) + _bump_setup(setup, bump_type, latest_core_version) def _bump_dockerfile(file: Path, bump_type: BumpType) -> None: @@ -111,7 +116,7 @@ def _bump_dockerfiles(bump_type: BumpType) -> None: _bump_dockerfile(file=setup, bump_type=bump_type) -def _bump_init(bump_type: BumpType) -> None: +def _bump_init(bump_type: BumpType) -> VersionInfo: file = Path.cwd() / "composio" / "__version__.py" print("=" * 64) print(f"Bumping {file}") @@ -124,11 +129,13 @@ def _bump_init(bump_type: BumpType) -> None: content = content.replace(f'__version__ = "{version}"', f'__version__ = "{update}"') file.write_text(content, encoding="utf-8") print(f"Bumped {file} to {update}") + return update def bump(bump_type: BumpType) -> None: - for _bump in (_bump_setups, _bump_dockerfiles, _bump_init): - _bump(bump_type=bump_type) + latest_core_version = _bump_init(bump_type=bump_type) + _bump_setups(bump_type=bump_type, latest_core_version=latest_core_version) + _bump_dockerfiles(bump_type=bump_type) if __name__ == "__main__": diff --git a/python/setup.py b/python/setup.py index 9b8d805613d..5ba049dfe18 100644 --- a/python/setup.py +++ b/python/setup.py @@ -90,7 +90,7 @@ def scan_for_package_data( setup( name="composio_core", - version="0.6.2", + version="0.6.3", author="Utkarsh", author_email="utkarsh@composio.dev", description="Core package to act as a bridge between composio platform and other services.", diff --git a/python/swe/setup.py b/python/swe/setup.py index 43162297ddb..ca23fe70a60 100644 --- a/python/swe/setup.py +++ b/python/swe/setup.py @@ -35,7 +35,7 @@ def scan_for_package_data( setup( name="swekit", - version="0.3.3", + version="0.3.4", author="Shubhra", author_email="shubhra@composio.dev", description="Tools for running a SWE agent using Composio platform", @@ -66,7 +66,7 @@ def scan_for_package_data( "swebench==2.1.0", "datasets>=2.20.0", "gitpython>=3.1.43", - "composio_core>=0.5.0,<=0.6.2", + "composio_core>=0.5.0,<0.7.0", "unidiff==0.7.5", "tqdm==4.66.4", "rich", @@ -75,7 +75,7 @@ def scan_for_package_data( "langgraph": [ "langchain-aws==0.1.17", "langgraph>=0.2.16", - "composio_langgraph>=0.5.0,<=0.6.2", + "composio_langgraph>=0.5.0,<0.7.0", "python-dotenv==1.0.1", ] },