Skip to content

Commit

Permalink
Merge pull request #173 from ComposioHQ/release/v0.3.10
Browse files Browse the repository at this point in the history
Release v0.3.10
  • Loading branch information
angrybayblade committed Jun 18, 2024
2 parents 5d91d2b + 014691e commit 9542374
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 55 deletions.
4 changes: 2 additions & 2 deletions plugins/autogen/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name="composio_autogen",
version="0.3.9",
version="0.3.10",
author="Sawradip",
author_email="sawradip@composio.dev",
description="Use Composio to get an array of tools with your Autogen agent.",
Expand All @@ -22,6 +22,6 @@
"Operating System :: OS Independent",
],
python_requires=">=3.9,<4",
install_requires=["composio_core===0.3.9", "pyautogen>=0.2.19"],
install_requires=["composio_core===0.3.10", "pyautogen>=0.2.19"],
include_package_data=True,
)
4 changes: 2 additions & 2 deletions plugins/claude/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name="composio_claude",
version="0.3.9",
version="0.3.10",
author="Sawradip",
author_email="sawradip@composio.dev",
description="Use Composio to get an array of tools with your Claude LLMs.",
Expand All @@ -22,6 +22,6 @@
"Operating System :: OS Independent",
],
python_requires=">=3.9,<4",
install_requires=["composio_openai===0.3.9", "anthropic>=0.25.7"],
install_requires=["composio_openai===0.3.10", "anthropic>=0.25.7"],
include_package_data=True,
)
4 changes: 2 additions & 2 deletions plugins/crew_ai/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name="composio_crewai",
version="0.3.9",
version="0.3.10",
author="Himanshu",
author_email="himanshu@composio.dev",
description="Use Composio to get an array of tools with your CrewAI agent.",
Expand All @@ -22,6 +22,6 @@
"Operating System :: OS Independent",
],
python_requires=">=3.9,<4",
install_requires=["composio_langchain===0.3.9"],
install_requires=["composio_langchain===0.3.10"],
include_package_data=True,
)
4 changes: 2 additions & 2 deletions plugins/griptape/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name="composio_griptape",
version="0.3.9",
version="0.3.10",
author="Sawradip",
author_email="sawradip@composio.dev",
description="Use Composio to get an array of tools with your Griptape wokflow.",
Expand All @@ -22,6 +22,6 @@
"Operating System :: OS Independent",
],
python_requires=">=3.9,<4",
install_requires=["composio_core===0.3.9", "griptape>=0.24.2"],
install_requires=["composio_core===0.3.10", "griptape>=0.24.2"],
include_package_data=True,
)
4 changes: 2 additions & 2 deletions plugins/julep/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name="composio_julep",
version="0.3.9",
version="0.3.10",
author="Sawradip",
author_email="sawradip@composio.dev",
description="Use Composio to get an array of tools with your Julep wokflow.",
Expand All @@ -22,6 +22,6 @@
"Operating System :: OS Independent",
],
python_requires=">=3.9,<4",
install_requires=["composio_openai===0.3.9", "julep>=0.3.2"],
install_requires=["composio_openai===0.3.10", "julep>=0.3.2"],
include_package_data=True,
)
4 changes: 2 additions & 2 deletions plugins/langchain/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name="composio_langchain",
version="0.3.9",
version="0.3.10",
author="Karan",
author_email="karan@composio.dev",
description="Use Composio to get an array of tools with your LangChain agent.",
Expand All @@ -27,7 +27,7 @@
"langchain-openai>=0.0.2.post1",
"pydantic>=2.6.4",
"langchainhub>=0.1.15",
"composio_core===0.3.9",
"composio_core===0.3.10",
],
include_package_data=True,
)
4 changes: 2 additions & 2 deletions plugins/llamaindex/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name="composio_llamaindex",
version="0.3.9rc4",
version="0.3.10",
author="Sawradip",
author_email="sawradip@composio.dev",
description="Use Composio to get an array of tools with your LlamaIndex agent.",
Expand All @@ -24,7 +24,7 @@
python_requires=">=3.9,<4",
install_requires=[
"llama_index>=0.10.43",
"composio_langchain===0.3.9rc4",
"composio_langchain===0.3.10",
],
include_package_data=True,
)
4 changes: 2 additions & 2 deletions plugins/lyzr/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name="composio_lyzr",
version="0.3.9",
version="0.3.10",
author="Sawradip",
author_email="sawradip@composio.dev",
description="Use Composio to get an array of tools with your Lyzr workflow.",
Expand All @@ -25,7 +25,7 @@
install_requires=[
"lyzr-automata>=0.1.3",
"pydantic>=2.6.4",
"composio_core===0.3.9",
"composio_core===0.3.10",
"langchain>=0.1.0",
],
include_package_data=True,
Expand Down
4 changes: 2 additions & 2 deletions plugins/openai/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name="composio_openai",
version="0.3.9",
version="0.3.10",
author="Sawradip",
author_email="sawradip@composio.dev",
description="Use Composio to get an array of tools with your OpenAI Function Call.",
Expand All @@ -22,6 +22,6 @@
"Operating System :: OS Independent",
],
python_requires=">=3.9,<4",
install_requires=["composio_core===0.3.9"],
install_requires=["composio_core===0.3.10"],
include_package_data=True,
)
56 changes: 20 additions & 36 deletions scripts/bump.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,27 @@ class BumpType(Enum):
POST = "post"


TO_REPLACE = (
'version="',
"composio_core===",
"composio_langchain===",
"composio_crewai===",
"composio_autogen===",
"composio_lyzr===",
"composio_openai===",
"composio_claude===",
"composio_griptape===",
)


def _bump(file: Path, bump_type: BumpType) -> None:
"""Bump versions in a file."""
print("=" * 64)
print(f"Bumping {file}")
content = file.read_text(encoding="utf-8")
(version_str,) = re.findall(pattern='version="(.*)",', string=content)
version = VersionInfo.parse(version=version_str)

print(f"Current version {version}")
if bump_type == BumpType.MAJOR:
update = version.bump_major()
Expand All @@ -41,44 +55,14 @@ def _bump(file: Path, bump_type: BumpType) -> None:
update = version.bump_prerelease()
else:
update = version.bump_build(token="post")

print(f"Next version {update}")
for to_replace in TO_REPLACE:
content = content.replace(
f"{to_replace}{version}",
f"{to_replace}{update}",
)

content = content.replace(
f'version="{version}",',
f'version="{update}",',
)
content = content.replace(
f'composio_core==={version}"',
f'composio_core==={update}"',
)
content = content.replace(
f'composio_langchain==={version}"',
f'composio_langchain==={update}"',
)
content = content.replace(
f'composio_crewai==={version}"',
f'composio_crewai==={update}"',
)
content = content.replace(
f'composio_autogen==={version}"',
f'composio_autogen==={update}"',
)
content = content.replace(
f'composio_lyzr==={version}"',
f'composio_lyzr==={update}"',
)
content = content.replace(
f'composio_openai==={version}"',
f'composio_openai==={update}"',
)
content = content.replace(
f'composio_claude==={version}"',
f'composio_claude==={update}"',
)
content = content.replace(
f'composio_griptape==={version}"',
f'composio_griptape==={update}"',
)
file.write_text(content, encoding="utf-8")
print(f"Bumped {file} to {update}")

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name="composio_core",
version="0.3.9",
version="0.3.10",
author="Utkarsh",
author_email="utkarsh@composio.dev",
description="Core package to act as a bridge between composio platform and other services.",
Expand Down

0 comments on commit 9542374

Please sign in to comment.