From 13c6eec43fb31a2619a7d749b0a355511da9fc4a Mon Sep 17 00:00:00 2001 From: MervinPraison Date: Sat, 24 May 2025 17:39:41 +0100 Subject: [PATCH] Update version to 2.2.6 across project files - Incremented PraisonAI version from 2.2.5 to 2.2.6 in `pyproject.toml`, `uv.lock`, and all relevant Dockerfiles for consistency. - Updated test command patterns in GitHub Actions workflows for improved clarity and functionality. - Ensured minimal changes to existing code while maintaining versioning accuracy. --- .github/workflows/test-comprehensive.yml | 8 ++++---- .github/workflows/unittest.yml | 6 +++--- docker/Dockerfile | 2 +- docker/Dockerfile.chat | 2 +- docker/Dockerfile.dev | 2 +- docker/Dockerfile.ui | 2 +- docs/api/praisonai/deploy.html | 2 +- docs/developers/local-development.mdx | 2 +- docs/ui/chat.mdx | 2 +- docs/ui/code.mdx | 2 +- praisonai/cli.py | 4 +--- praisonai/deploy.py | 2 +- pyproject.toml | 4 ++-- uv.lock | 2 +- 14 files changed, 20 insertions(+), 22 deletions(-) diff --git a/.github/workflows/test-comprehensive.yml b/.github/workflows/test-comprehensive.yml index 7a4d17a72..c461373e5 100644 --- a/.github/workflows/test-comprehensive.yml +++ b/.github/workflows/test-comprehensive.yml @@ -66,13 +66,13 @@ jobs: case $TEST_TYPE in "unit") - python tests/test_runner.py --unit + python tests/test_runner.py --pattern unit ;; "integration") - python tests/test_runner.py --integration + python tests/test_runner.py --pattern integration ;; "fast") - python tests/test_runner.py --fast + python tests/test_runner.py --pattern fast ;; "performance") python tests/test_runner.py --pattern "performance" @@ -87,7 +87,7 @@ jobs: python tests/test_runner.py --pattern crewai ;; "all"|*) - python tests/test_runner.py --all + python tests/test_runner.py --pattern all ;; esac diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 80a7b1baa..c858835cb 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -28,9 +28,9 @@ jobs: - name: Set environment variables run: | - echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}" >> $GITHUB_ENV - echo "OPENAI_API_BASE=${{ secrets.OPENAI_API_BASE }}" >> $GITHUB_ENV - echo "OPENAI_MODEL_NAME=${{ secrets.OPENAI_MODEL_NAME }}" >> $GITHUB_ENV + echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY || 'sk-test-key-for-github-actions-testing-only-not-real' }}" >> $GITHUB_ENV + echo "OPENAI_API_BASE=${{ secrets.OPENAI_API_BASE || 'https://api.openai.com/v1' }}" >> $GITHUB_ENV + echo "OPENAI_MODEL_NAME=${{ secrets.OPENAI_MODEL_NAME || 'gpt-4o-mini' }}" >> $GITHUB_ENV echo "PYTHONPATH=${{ github.workspace }}/src/praisonai-agents:$PYTHONPATH" >> $GITHUB_ENV - name: Run Fast Tests diff --git a/docker/Dockerfile b/docker/Dockerfile index cb5d0a56c..754a03092 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,6 +1,6 @@ FROM python:3.11-slim WORKDIR /app COPY . . -RUN pip install flask praisonai==2.2.5 gunicorn markdown +RUN pip install flask praisonai==2.2.6 gunicorn markdown EXPOSE 8080 CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"] diff --git a/docker/Dockerfile.chat b/docker/Dockerfile.chat index e1bf00fe0..d49891ef0 100644 --- a/docker/Dockerfile.chat +++ b/docker/Dockerfile.chat @@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ RUN pip install --no-cache-dir \ praisonaiagents>=0.0.4 \ praisonai_tools \ - "praisonai==2.2.5" \ + "praisonai==2.2.6" \ "praisonai[chat]" \ "embedchain[github,youtube]" diff --git a/docker/Dockerfile.dev b/docker/Dockerfile.dev index 9fc9123a0..31f3ed961 100644 --- a/docker/Dockerfile.dev +++ b/docker/Dockerfile.dev @@ -15,7 +15,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ RUN pip install --no-cache-dir \ praisonaiagents>=0.0.4 \ praisonai_tools \ - "praisonai==2.2.5" \ + "praisonai==2.2.6" \ "praisonai[ui]" \ "praisonai[chat]" \ "praisonai[realtime]" \ diff --git a/docker/Dockerfile.ui b/docker/Dockerfile.ui index ec2d80523..51cf29fd8 100644 --- a/docker/Dockerfile.ui +++ b/docker/Dockerfile.ui @@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ RUN pip install --no-cache-dir \ praisonaiagents>=0.0.4 \ praisonai_tools \ - "praisonai==2.2.5" \ + "praisonai==2.2.6" \ "praisonai[ui]" \ "praisonai[crewai]" diff --git a/docs/api/praisonai/deploy.html b/docs/api/praisonai/deploy.html index 132b12075..835ef097c 100644 --- a/docs/api/praisonai/deploy.html +++ b/docs/api/praisonai/deploy.html @@ -110,7 +110,7 @@

Raises

file.write("FROM python:3.11-slim\n") file.write("WORKDIR /app\n") file.write("COPY . .\n") - file.write("RUN pip install flask praisonai==2.2.5 gunicorn markdown\n") + file.write("RUN pip install flask praisonai==2.2.6 gunicorn markdown\n") file.write("EXPOSE 8080\n") file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n') diff --git a/docs/developers/local-development.mdx b/docs/developers/local-development.mdx index 1f4ab1f4e..ecb35818d 100644 --- a/docs/developers/local-development.mdx +++ b/docs/developers/local-development.mdx @@ -27,7 +27,7 @@ WORKDIR /app COPY . . -RUN pip install flask praisonai==2.2.5 watchdog +RUN pip install flask praisonai==2.2.6 watchdog EXPOSE 5555 diff --git a/docs/ui/chat.mdx b/docs/ui/chat.mdx index 67f3015f1..ab0c966c7 100644 --- a/docs/ui/chat.mdx +++ b/docs/ui/chat.mdx @@ -155,7 +155,7 @@ To facilitate local development with live reload, you can use Docker. Follow the COPY . . - RUN pip install flask praisonai==2.2.5 watchdog + RUN pip install flask praisonai==2.2.6 watchdog EXPOSE 5555 diff --git a/docs/ui/code.mdx b/docs/ui/code.mdx index f40bee105..e8be16692 100644 --- a/docs/ui/code.mdx +++ b/docs/ui/code.mdx @@ -208,7 +208,7 @@ To facilitate local development with live reload, you can use Docker. Follow the COPY . . - RUN pip install flask praisonai==2.2.5 watchdog + RUN pip install flask praisonai==2.2.6 watchdog EXPOSE 5555 diff --git a/praisonai/cli.py b/praisonai/cli.py index 36fe560aa..2bdaacd7f 100644 --- a/praisonai/cli.py +++ b/praisonai/cli.py @@ -156,9 +156,7 @@ def main(self): result = self.handle_direct_prompt(args.direct_prompt) print(result) return result - else: - # Default to agents.yaml if no command provided - self.agent_file = "agents.yaml" + # If no command or direct_prompt, preserve agent_file from constructor (don't overwrite) if args.deploy: from .deploy import CloudDeployer diff --git a/praisonai/deploy.py b/praisonai/deploy.py index b0bb3772b..43e5737ea 100644 --- a/praisonai/deploy.py +++ b/praisonai/deploy.py @@ -56,7 +56,7 @@ def create_dockerfile(self): file.write("FROM python:3.11-slim\n") file.write("WORKDIR /app\n") file.write("COPY . .\n") - file.write("RUN pip install flask praisonai==2.2.5 gunicorn markdown\n") + file.write("RUN pip install flask praisonai==2.2.6 gunicorn markdown\n") file.write("EXPOSE 8080\n") file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n') diff --git a/pyproject.toml b/pyproject.toml index fbb4cacac..8a6d51543 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "PraisonAI" -version = "2.2.5" +version = "2.2.6" description = "PraisonAI is an AI Agents Framework with Self Reflection. PraisonAI application combines PraisonAI Agents, AutoGen, and CrewAI into a low-code solution for building and managing multi-agent LLM systems, focusing on simplicity, customisation, and efficient human-agent collaboration." readme = "README.md" license = "" @@ -89,7 +89,7 @@ autogen = ["pyautogen>=0.2.19", "praisonai-tools>=0.0.15", "crewai"] [tool.poetry] name = "PraisonAI" -version = "2.2.5" +version = "2.2.6" description = "PraisonAI is an AI Agents Framework with Self Reflection. PraisonAI application combines PraisonAI Agents, AutoGen, and CrewAI into a low-code solution for building and managing multi-agent LLM systems, focusing on simplicity, customisation, and efficient human-agent collaboration." authors = ["Mervin Praison"] license = "" diff --git a/uv.lock b/uv.lock index 33ac71a03..8bde03132 100644 --- a/uv.lock +++ b/uv.lock @@ -3614,7 +3614,7 @@ wheels = [ [[package]] name = "praisonai" -version = "2.2.5" +version = "2.2.6" source = { editable = "." } dependencies = [ { name = "instructor" },