uipath-langchain 0.0.110__tar.gz → 0.0.112__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of uipath-langchain might be problematic. Click here for more details.
- uipath_langchain-0.0.112/.github/workflows/cd.yml +80 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/.github/workflows/ci.yml +5 -6
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/.github/workflows/commitlint.yml +6 -2
- uipath_langchain-0.0.112/.github/workflows/lint-custom-version.yml +92 -0
- uipath_langchain-0.0.112/.github/workflows/lint.yml +53 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/.github/workflows/publish-dev.yml +172 -123
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/.github/workflows/publish-docs.yml +4 -0
- uipath_langchain-0.0.112/.github/workflows/publish-prior-stable-version.yml +107 -0
- uipath_langchain-0.0.112/.github/workflows/test-custom-version.yml +102 -0
- uipath_langchain-0.0.112/.github/workflows/test.yml +59 -0
- uipath_langchain-0.0.112/.python-version +1 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/PKG-INFO +2 -2
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/context_grounding.md +1 -1
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/pyproject.toml +8 -3
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/simple-local-mcp/pyproject.toml +1 -1
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/simple-local-mcp/src/simple-local-mcp/graph.py +4 -6
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/simple-local-mcp/uipath.json +11 -41
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/simple-local-mcp/uv.lock +653 -54
- uipath_langchain-0.0.112/samples/simple-remote-mcp/main.py +25 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/simple-remote-mcp/pyproject.toml +6 -7
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/simple-remote-mcp/uv.lock +683 -91
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/ticket-classification/README.md +1 -1
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/ticket-classification/main.py +1 -1
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/ticket-classification/uipath.json +3 -12
- uipath_langchain-0.0.112/src/uipath_langchain/_cli/_runtime/_input.py +136 -0
- uipath_langchain-0.0.112/src/uipath_langchain/_cli/_runtime/_output.py +234 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/_cli/_runtime/_runtime.py +107 -39
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/_cli/cli_run.py +6 -3
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/_utils/_settings.py +6 -2
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/vectorstores/context_grounding_vectorstore.py +4 -0
- uipath_langchain-0.0.112/tests/hitl/__init__.py +1 -0
- uipath_langchain-0.0.112/tests/hitl/conftest.py +65 -0
- uipath_langchain-0.0.112/tests/hitl/mocks/action_trigger_hitl.py +72 -0
- uipath_langchain-0.0.112/tests/hitl/mocks/api_trigger_hitl.py +33 -0
- uipath_langchain-0.0.112/tests/hitl/mocks/job_trigger_hitl.py +62 -0
- uipath_langchain-0.0.112/tests/hitl/mocks/langgraph.json +7 -0
- uipath_langchain-0.0.112/tests/hitl/mocks/uipath-default-escalation.json +30 -0
- uipath_langchain-0.0.112/tests/hitl/mocks/uipath.json +20 -0
- uipath_langchain-0.0.112/tests/hitl/test_action_trigger.py +193 -0
- uipath_langchain-0.0.112/tests/hitl/test_hitl_api_trigger.py +89 -0
- uipath_langchain-0.0.112/tests/hitl/test_hitl_default_escalation.py +143 -0
- uipath_langchain-0.0.112/tests/hitl/test_hitl_job_trigger.py +159 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/uv.lock +1539 -1522
- uipath_langchain-0.0.110/.github/workflows/build.yml +0 -46
- uipath_langchain-0.0.110/.github/workflows/cd.yml +0 -15
- uipath_langchain-0.0.110/.github/workflows/lint.yml +0 -36
- uipath_langchain-0.0.110/.github/workflows/test.yml +0 -38
- uipath_langchain-0.0.110/.python-version +0 -1
- uipath_langchain-0.0.110/samples/simple-remote-mcp/main.py +0 -27
- uipath_langchain-0.0.110/src/uipath_langchain/_cli/_runtime/_escalation.py +0 -245
- uipath_langchain-0.0.110/src/uipath_langchain/_cli/_runtime/_input.py +0 -153
- uipath_langchain-0.0.110/src/uipath_langchain/_cli/_runtime/_output.py +0 -374
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/.cursorrules +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/.editorconfig +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/.gitattributes +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/.github/workflows/slack.yml +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/.gitignore +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/.pre-commit-config.yaml +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/.vscode/extensions.json +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/.vscode/settings.json +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/CONTRIBUTING.md +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/LICENSE +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/README.md +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/chat_models.md +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/human_in_the_loop.md +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/quick_start.md +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/quick_start_images/cloud_env_var_dark.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/quick_start_images/cloud_env_var_light.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/quick_start_images/invoke_output_dark.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/quick_start_images/invoke_output_light.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/RAG/click-storage-bucket.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/RAG/create-index-1.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/RAG/create-index-2.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/RAG/create-process.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/RAG/create-quiz-generator.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/RAG/create-storage-bucket-1.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/RAG/create-storage-bucket-2.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/RAG/folder-path.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/RAG/job-info.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/RAG/output.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/RAG/process-page.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/RAG/researcher-1.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/RAG/researcher-2.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/RAG/run-process-1.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/RAG/run-process-2.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/RAG/storage-bucket-content.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/multi-agent-distributed/coder-agent-package-overview.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/multi-agent-distributed/coder-agent-process-configuration.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/multi-agent-distributed/planner-agent-package-overview.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/multi-agent-distributed/planner-agent-process-configuration.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/multi-agent-distributed/researcher-agent-package-overview.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/multi-agent-distributed/researcher-agent-process-configuration.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/ticket-classification/activate-apps.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/ticket-classification/activate-deployment.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/ticket-classification/copy-folder-path.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/ticket-classification/deploy-solution-package-wizard.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/ticket-classification/deploy-solution-package.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/ticket-classification/monitor-agent.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/ticket-classification/navigate-to-solution-folder.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/ticket-classification/resume-condition.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/ticket-classification/run-agent.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/ticket-classification/solution-destination-folder.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/ticket-classification/start-job.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/docs/sample_images/ticket-classification/upload-solution-package.png +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/RAG-quiz-generator/README.md +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/RAG-quiz-generator/env.example +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/RAG-quiz-generator/input.example/quiz-generator-debug-input.json +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/RAG-quiz-generator/input.example/researcher-debug-input.json +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/RAG-quiz-generator/langgraph.json +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/RAG-quiz-generator/pyproject.toml +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/RAG-quiz-generator/quiz-generator-RAG-agent.mermaid +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/RAG-quiz-generator/researcher-RAG-agent.mermaid +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/RAG-quiz-generator/src/agents/quiz-generator-RAG-agent.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/RAG-quiz-generator/src/agents/researcher-RAG-agent.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/RAG-quiz-generator/uipath.json +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/RAG-quiz-generator/uv.lock +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/README.md +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/company-research-agent/.env.example +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/company-research-agent/agent.mermaid +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/company-research-agent/graph.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/company-research-agent/langgraph.json +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/company-research-agent/pyproject.toml +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/company-research-agent/uipath.json +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/company-research-agent/uv.lock +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/hitl-inbox-server/database.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/hitl-inbox-server/main.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/hitl-inbox-server/models.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/hitl-inbox-server/pyproject.toml +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/hitl-inbox-server/schemas.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/hitl-inbox-server/templates/index.html +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/hitl-inbox-server/uv.lock +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/multi-agent-planner-researcher-coder-distributed/.env.example +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/multi-agent-planner-researcher-coder-distributed/README.md +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/multi-agent-planner-researcher-coder-distributed/coder.mermaid +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/multi-agent-planner-researcher-coder-distributed/langgraph.json +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/multi-agent-planner-researcher-coder-distributed/planner.mermaid +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/multi-agent-planner-researcher-coder-distributed/pyproject.toml +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/multi-agent-planner-researcher-coder-distributed/researcher.mermaid +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/multi-agent-planner-researcher-coder-distributed/src/multi-agent-distributed/coder.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/multi-agent-planner-researcher-coder-distributed/src/multi-agent-distributed/planner.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/multi-agent-planner-researcher-coder-distributed/src/multi-agent-distributed/researcher.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/multi-agent-planner-researcher-coder-distributed/uipath.json +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/multi-agent-planner-researcher-coder-distributed/uv.lock +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/multi-agent-supervisor-researcher-coder/.env.example +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/multi-agent-supervisor-researcher-coder/README.md +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/multi-agent-supervisor-researcher-coder/agent.mermaid +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/multi-agent-supervisor-researcher-coder/graph.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/multi-agent-supervisor-researcher-coder/langgraph.json +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/multi-agent-supervisor-researcher-coder/pyproject.toml +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/multi-agent-supervisor-researcher-coder/uipath.json +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/multi-agent-supervisor-researcher-coder/uv.lock +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/retrieval-chain/.env.example +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/retrieval-chain/README.md +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/retrieval-chain/main.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/retrieval-chain/pyproject.toml +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/retrieval-chain/uv.lock +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/simple-local-mcp/.env.example +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/simple-local-mcp/README.md +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/simple-local-mcp/agent.mermaid +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/simple-local-mcp/langgraph.json +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/simple-local-mcp/src/simple-local-mcp/math_server.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/simple-local-mcp/src/simple-local-mcp/weather_server.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/simple-remote-mcp/.env.example +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/simple-remote-mcp/README.md +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/simple-remote-mcp/agent.mermaid +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/simple-remote-mcp/langgraph.json +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/simple-remote-mcp/uipath.json +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/ticket-classification/.env.example +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/ticket-classification/agent.mermaid +2 -2
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/ticket-classification/escalation_app_solution/generic-escalation-app-solution-1.0.0.zip +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/ticket-classification/langgraph.json +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/ticket-classification/pyproject.toml +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/samples/ticket-classification/uv.lock +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/__init__.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/_cli/__init__.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/_cli/_runtime/_context.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/_cli/_runtime/_exception.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/_cli/_templates/langgraph.json.template +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/_cli/_templates/main.py.template +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/_cli/_utils/_graph.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/_cli/cli_init.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/_cli/cli_new.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/_utils/__init__.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/_utils/_request_mixin.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/_utils/_sleep_policy.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/chat/__init__.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/chat/models.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/embeddings/__init__.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/embeddings/embeddings.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/middlewares.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/retrievers/__init__.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/retrievers/context_grounding_retriever.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/tracers/AsyncUiPathTracer.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/tracers/__init__.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/tracers/_events.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/tracers/_instrument_traceable.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/tracers/_utils.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/src/uipath_langchain/vectorstores/__init__.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/tests/__init__.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/tests/test_dummy.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/tests/test_langchain_client.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/tests/tracers/__init__.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/tests/tracers/test_async_uipath_tracer.py +0 -0
- {uipath_langchain-0.0.110 → uipath_langchain-0.0.112}/tests/tracers/test_instrument_traceable.py +0 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
name: CD
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- main
|
|
8
|
+
paths:
|
|
9
|
+
- pyproject.toml
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
lint:
|
|
13
|
+
uses: ./.github/workflows/lint.yml
|
|
14
|
+
|
|
15
|
+
test:
|
|
16
|
+
uses: ./.github/workflows/test.yml
|
|
17
|
+
secrets:
|
|
18
|
+
UIPATH_URL: ${{ secrets.UIPATH_URL }}
|
|
19
|
+
UIPATH_CLIENT_ID: ${{ secrets.UIPATH_CLIENT_ID }}
|
|
20
|
+
UIPATH_CLIENT_SECRET: ${{ secrets.UIPATH_CLIENT_SECRET }}
|
|
21
|
+
|
|
22
|
+
build:
|
|
23
|
+
name: Build
|
|
24
|
+
runs-on: ubuntu-latest
|
|
25
|
+
|
|
26
|
+
needs:
|
|
27
|
+
- lint
|
|
28
|
+
- test
|
|
29
|
+
|
|
30
|
+
if: ${{ github.repository == 'UiPath/uipath-langchain-python' }}
|
|
31
|
+
permissions:
|
|
32
|
+
contents: read
|
|
33
|
+
actions: write
|
|
34
|
+
|
|
35
|
+
steps:
|
|
36
|
+
- name: Checkout
|
|
37
|
+
uses: actions/checkout@v4
|
|
38
|
+
|
|
39
|
+
- name: Setup uv
|
|
40
|
+
uses: astral-sh/setup-uv@v5
|
|
41
|
+
with:
|
|
42
|
+
enable-cache: true
|
|
43
|
+
|
|
44
|
+
- name: Setup Python
|
|
45
|
+
uses: actions/setup-python@v5
|
|
46
|
+
with:
|
|
47
|
+
python-version-file: ".python-version"
|
|
48
|
+
|
|
49
|
+
- name: Install dependencies
|
|
50
|
+
run: uv sync --all-extras
|
|
51
|
+
|
|
52
|
+
- name: Build
|
|
53
|
+
run: uv build
|
|
54
|
+
|
|
55
|
+
- name: Upload artifacts
|
|
56
|
+
uses: actions/upload-artifact@v4
|
|
57
|
+
with:
|
|
58
|
+
name: release-dists
|
|
59
|
+
path: dist/
|
|
60
|
+
|
|
61
|
+
pypi-publish:
|
|
62
|
+
name: Upload release to PyPI
|
|
63
|
+
runs-on: ubuntu-latest
|
|
64
|
+
environment: pypi
|
|
65
|
+
|
|
66
|
+
needs:
|
|
67
|
+
- build
|
|
68
|
+
permissions:
|
|
69
|
+
contents: read
|
|
70
|
+
id-token: write
|
|
71
|
+
|
|
72
|
+
steps:
|
|
73
|
+
- name: Retrieve release distributions
|
|
74
|
+
uses: actions/download-artifact@v4
|
|
75
|
+
with:
|
|
76
|
+
name: release-dists
|
|
77
|
+
path: dist/
|
|
78
|
+
|
|
79
|
+
- name: Publish package distributions to PyPI
|
|
80
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -4,18 +4,17 @@ on:
|
|
|
4
4
|
push:
|
|
5
5
|
branches:
|
|
6
6
|
- main
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
- synchronize
|
|
7
|
+
paths-ignore:
|
|
8
|
+
- pyproject.toml
|
|
9
|
+
pull_request:
|
|
11
10
|
branches:
|
|
12
11
|
- main
|
|
13
12
|
|
|
14
|
-
|
|
15
13
|
jobs:
|
|
16
14
|
commit-lint:
|
|
17
|
-
if: ${{ github.event_name == '
|
|
15
|
+
if: ${{ github.event_name == 'pull_request' }}
|
|
18
16
|
uses: ./.github/workflows/commitlint.yml
|
|
17
|
+
|
|
19
18
|
lint:
|
|
20
19
|
uses: ./.github/workflows/lint.yml
|
|
21
20
|
|
|
@@ -7,13 +7,17 @@ jobs:
|
|
|
7
7
|
commitlint:
|
|
8
8
|
name: Commit Lint
|
|
9
9
|
runs-on: ubuntu-latest
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
10
12
|
|
|
11
13
|
steps:
|
|
12
|
-
-
|
|
14
|
+
- name: Checkout
|
|
15
|
+
uses: actions/checkout@v4
|
|
13
16
|
with:
|
|
14
17
|
fetch-depth: 0
|
|
15
18
|
|
|
16
|
-
-
|
|
19
|
+
- name: Setup Node
|
|
20
|
+
uses: actions/setup-node@v3
|
|
17
21
|
with:
|
|
18
22
|
node-version: 22
|
|
19
23
|
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
name: Lint Custom Version
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_call:
|
|
5
|
+
pull_request:
|
|
6
|
+
types: [opened, synchronize, labeled, unlabeled]
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
lint-with-custom-version:
|
|
10
|
+
name: Lint with Custom UiPath Version
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
if: contains(github.event.pull_request.labels.*.name, 'test-core-dev-version')
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
15
|
+
pull-requests: read
|
|
16
|
+
|
|
17
|
+
steps:
|
|
18
|
+
- name: Checkout
|
|
19
|
+
uses: actions/checkout@v4
|
|
20
|
+
|
|
21
|
+
- name: Extract version from PR
|
|
22
|
+
id: extract-version
|
|
23
|
+
shell: bash
|
|
24
|
+
run: |
|
|
25
|
+
# Extract version from PR title only
|
|
26
|
+
PR_TITLE="${{ github.event.pull_request.title }}"
|
|
27
|
+
|
|
28
|
+
# Search for version pattern in title (any x.y.z.dev version)
|
|
29
|
+
VERSION=$(echo "$PR_TITLE" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.dev[0-9]+' | head -1)
|
|
30
|
+
|
|
31
|
+
if [ -z "$VERSION" ]; then
|
|
32
|
+
echo "No version found in PR title. Please include version in title like: 2.0.65.dev1004030443"
|
|
33
|
+
exit 1
|
|
34
|
+
fi
|
|
35
|
+
|
|
36
|
+
echo "Extracted version: $VERSION"
|
|
37
|
+
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
|
38
|
+
|
|
39
|
+
- name: Setup uv
|
|
40
|
+
uses: astral-sh/setup-uv@v5
|
|
41
|
+
with:
|
|
42
|
+
enable-cache: true
|
|
43
|
+
|
|
44
|
+
- name: Setup Python
|
|
45
|
+
uses: actions/setup-python@v5
|
|
46
|
+
with:
|
|
47
|
+
python-version-file: ".python-version"
|
|
48
|
+
|
|
49
|
+
- name: Modify pyproject.toml for custom UiPath version
|
|
50
|
+
shell: bash
|
|
51
|
+
run: |
|
|
52
|
+
# Backup original pyproject.toml
|
|
53
|
+
cp pyproject.toml pyproject.toml.backup
|
|
54
|
+
|
|
55
|
+
# Update the uipath dependency to the custom version
|
|
56
|
+
sed -i 's|"uipath>=.*"|"uipath==${{ steps.extract-version.outputs.version }}"|' pyproject.toml
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
# Add or update [tool.uv.sources] section if it doesn't exist
|
|
61
|
+
if ! grep -q "\[tool\.uv\.sources\]" pyproject.toml; then
|
|
62
|
+
echo "" >> pyproject.toml
|
|
63
|
+
echo "[tool.uv.sources]" >> pyproject.toml
|
|
64
|
+
echo 'uipath = { index = "testpypi" }' >> pyproject.toml
|
|
65
|
+
else
|
|
66
|
+
# Update existing sources if needed
|
|
67
|
+
if ! grep -q 'uipath = { index = "testpypi" }' pyproject.toml; then
|
|
68
|
+
sed -i '/\[tool\.uv\.sources\]/a uipath = { index = "testpypi" }' pyproject.toml
|
|
69
|
+
fi
|
|
70
|
+
fi
|
|
71
|
+
|
|
72
|
+
echo "Modified pyproject.toml to use UiPath version ${{ steps.extract-version.outputs.version }} from testpypi"
|
|
73
|
+
echo "=== Modified pyproject.toml content ==="
|
|
74
|
+
grep -A5 -B5 "uipath\|testpypi" pyproject.toml || true
|
|
75
|
+
|
|
76
|
+
- name: Install dependencies
|
|
77
|
+
run: uv sync --all-extras
|
|
78
|
+
|
|
79
|
+
- name: Check static types
|
|
80
|
+
run: uv run mypy --config-file pyproject.toml .
|
|
81
|
+
|
|
82
|
+
- name: Check linting
|
|
83
|
+
run: uv run ruff check .
|
|
84
|
+
|
|
85
|
+
- name: Check formatting
|
|
86
|
+
run: uv run ruff format --check .
|
|
87
|
+
|
|
88
|
+
- name: Restore original pyproject.toml
|
|
89
|
+
if: always()
|
|
90
|
+
shell: bash
|
|
91
|
+
run: |
|
|
92
|
+
mv pyproject.toml.backup pyproject.toml
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
name: Lint
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_call
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
# Job that runs when custom version testing is enabled - just completes successfully
|
|
8
|
+
skip-lint:
|
|
9
|
+
name: Skip Lint (Custom Version Testing)
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
if: contains(github.event.pull_request.labels.*.name, 'test-core-dev-version')
|
|
12
|
+
permissions:
|
|
13
|
+
contents: read
|
|
14
|
+
steps:
|
|
15
|
+
- name: Skip lint for custom version testing
|
|
16
|
+
run: |
|
|
17
|
+
echo "Custom version testing enabled - skipping normal lint process"
|
|
18
|
+
echo "This job completes successfully to allow PR merging"
|
|
19
|
+
|
|
20
|
+
# Job that runs normal lint process when custom version testing is NOT enabled
|
|
21
|
+
lint:
|
|
22
|
+
name: Lint
|
|
23
|
+
runs-on: ubuntu-latest
|
|
24
|
+
if: "!contains(github.event.pull_request.labels.*.name, 'test-core-dev-version')"
|
|
25
|
+
permissions:
|
|
26
|
+
contents: read
|
|
27
|
+
|
|
28
|
+
steps:
|
|
29
|
+
- name: Checkout
|
|
30
|
+
uses: actions/checkout@v4
|
|
31
|
+
|
|
32
|
+
- name: Setup uv
|
|
33
|
+
uses: astral-sh/setup-uv@v5
|
|
34
|
+
with:
|
|
35
|
+
enable-cache: true
|
|
36
|
+
|
|
37
|
+
- name: Setup Python
|
|
38
|
+
uses: actions/setup-python@v5
|
|
39
|
+
with:
|
|
40
|
+
python-version-file: ".python-version"
|
|
41
|
+
|
|
42
|
+
- name: Install dependencies
|
|
43
|
+
run: uv sync --all-extras
|
|
44
|
+
|
|
45
|
+
- name: Check static types
|
|
46
|
+
run: uv run mypy --config-file pyproject.toml .
|
|
47
|
+
|
|
48
|
+
- name: Check linting
|
|
49
|
+
run: uv run ruff check .
|
|
50
|
+
|
|
51
|
+
- name: Check formatting
|
|
52
|
+
run: uv run ruff format --check .
|
|
53
|
+
|
|
@@ -1,123 +1,172 @@
|
|
|
1
|
-
name: Publish Dev Build
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
types: [opened, synchronize, reopened, labeled]
|
|
6
|
-
secrets:
|
|
7
|
-
PYPI_TOKEN_NIGHTLY:
|
|
8
|
-
required: true
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
publish-dev:
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
#
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
$
|
|
85
|
-
|
|
86
|
-
$
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
$
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
$
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
1
|
+
name: Publish Dev Build
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types: [opened, synchronize, reopened, labeled]
|
|
6
|
+
secrets:
|
|
7
|
+
PYPI_TOKEN_NIGHTLY:
|
|
8
|
+
required: true
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
publish-dev:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
pull-requests: write
|
|
17
|
+
|
|
18
|
+
# Only run if PR has the build:dev label
|
|
19
|
+
if: contains(github.event.pull_request.labels.*.name, 'build:dev')
|
|
20
|
+
|
|
21
|
+
steps:
|
|
22
|
+
- name: Checkout
|
|
23
|
+
uses: actions/checkout@v4
|
|
24
|
+
|
|
25
|
+
- name: Setup uv
|
|
26
|
+
uses: astral-sh/setup-uv@v5
|
|
27
|
+
with:
|
|
28
|
+
enable-cache: true
|
|
29
|
+
|
|
30
|
+
- name: Setup Python
|
|
31
|
+
uses: actions/setup-python@v5
|
|
32
|
+
with:
|
|
33
|
+
python-version-file: ".python-version"
|
|
34
|
+
|
|
35
|
+
- name: Modify pyproject.toml for custom UiPath version
|
|
36
|
+
if: contains(github.event.pull_request.labels.*.name, 'test-core-dev-version')
|
|
37
|
+
shell: bash
|
|
38
|
+
run: |
|
|
39
|
+
# Backup original pyproject.toml
|
|
40
|
+
cp pyproject.toml pyproject.toml.backup
|
|
41
|
+
|
|
42
|
+
# Extract custom version from PR title
|
|
43
|
+
PR_TITLE="${{ github.event.pull_request.title }}"
|
|
44
|
+
VERSION=$(echo "$PR_TITLE" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.dev[0-9]+' | head -1)
|
|
45
|
+
|
|
46
|
+
if [ -z "$VERSION" ]; then
|
|
47
|
+
echo "No version found in PR title. Please include version like: 2.0.65.dev1004030443"
|
|
48
|
+
exit 1
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
echo "Extracted version: $VERSION"
|
|
52
|
+
|
|
53
|
+
# Update the uipath dependency to the custom version (match both == and >= patterns)
|
|
54
|
+
# Target only the dependency lines in dependencies arrays, not project name
|
|
55
|
+
sed -i '/dependencies = \[/,/\]/ s|"uipath[=><^~!]*[^"]*"|"uipath=='$VERSION'"|' pyproject.toml
|
|
56
|
+
sed -i '/\[project\.optional-dependencies\]/,/^\[/ s|"uipath[=><^~!]*[^"]*"|"uipath=='$VERSION'"|' pyproject.toml
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
# Add or update [tool.uv.sources] section if it doesn't exist
|
|
61
|
+
if ! grep -q "\[tool\.uv\.sources\]" pyproject.toml; then
|
|
62
|
+
echo "" >> pyproject.toml
|
|
63
|
+
echo "[tool.uv.sources]" >> pyproject.toml
|
|
64
|
+
echo 'uipath = { index = "testpypi" }' >> pyproject.toml
|
|
65
|
+
else
|
|
66
|
+
# Update existing sources if needed
|
|
67
|
+
if ! grep -q 'uipath = { index = "testpypi" }' pyproject.toml; then
|
|
68
|
+
sed -i '/\[tool\.uv\.sources\]/a uipath = { index = "testpypi" }' pyproject.toml
|
|
69
|
+
fi
|
|
70
|
+
fi
|
|
71
|
+
|
|
72
|
+
echo "Modified pyproject.toml to use UiPath version $VERSION from testpypi"
|
|
73
|
+
echo "=== Modified pyproject.toml content ==="
|
|
74
|
+
grep -A5 -B5 "uipath\|testpypi" pyproject.toml || true
|
|
75
|
+
|
|
76
|
+
- name: Install dependencies
|
|
77
|
+
run: uv sync --all-extras
|
|
78
|
+
|
|
79
|
+
- name: Set development version
|
|
80
|
+
shell: pwsh
|
|
81
|
+
env:
|
|
82
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
83
|
+
run: |
|
|
84
|
+
$pyprojcontent = Get-Content pyproject.toml -Raw
|
|
85
|
+
|
|
86
|
+
$PROJECT_NAME = ($pyprojcontent | Select-String -Pattern '(?m)^\[(project|tool\.poetry)\][^\[]*?name\s*=\s*"([^"]*)"' -AllMatches).Matches[0].Groups[2].Value
|
|
87
|
+
$CURRENT_VERSION = ($pyprojcontent | Select-String -Pattern '(?m)^\[(project|tool\.poetry)\][^\[]*?version\s*=\s*"([^"]*)"' -AllMatches).Matches[0].Groups[2].Value
|
|
88
|
+
|
|
89
|
+
# Get PR number and run number with proper padding
|
|
90
|
+
$PR_NUM = [int]"${{ github.event.pull_request.number }}"
|
|
91
|
+
$PADDED_PR = "{0:D5}" -f [int]"${{ github.event.pull_request.number }}"
|
|
92
|
+
$PADDED_RUN = "{0:D4}" -f [int]"${{ github.run_number }}"
|
|
93
|
+
$PADDED_NEXT_PR = "{0:D5}" -f ($PR_NUM + 1)
|
|
94
|
+
|
|
95
|
+
# Create version range strings for PR
|
|
96
|
+
$MIN_VERSION = "$CURRENT_VERSION.dev1$PADDED_PR" + "0000"
|
|
97
|
+
$MAX_VERSION = "$CURRENT_VERSION.dev1$PADDED_NEXT_PR" + "0000"
|
|
98
|
+
|
|
99
|
+
# Create unique dev version with PR number and run ID
|
|
100
|
+
$DEV_VERSION = "$CURRENT_VERSION.dev1$PADDED_PR$PADDED_RUN"
|
|
101
|
+
|
|
102
|
+
# Update version in pyproject.toml
|
|
103
|
+
(Get-Content pyproject.toml) -replace "version = `"$CURRENT_VERSION`"", "version = `"$DEV_VERSION`"" | Set-Content pyproject.toml
|
|
104
|
+
|
|
105
|
+
Write-Output "Package version set to $DEV_VERSION"
|
|
106
|
+
|
|
107
|
+
$dependencyMessage = @"
|
|
108
|
+
## Development Package
|
|
109
|
+
|
|
110
|
+
- Add this package as a dependency in your pyproject.toml:
|
|
111
|
+
|
|
112
|
+
``````toml
|
|
113
|
+
[project]
|
|
114
|
+
dependencies = [
|
|
115
|
+
# Exact version:
|
|
116
|
+
"$PROJECT_NAME==$DEV_VERSION",
|
|
117
|
+
|
|
118
|
+
# Any version from PR
|
|
119
|
+
"$PROJECT_NAME>=$MIN_VERSION,<$MAX_VERSION"
|
|
120
|
+
]
|
|
121
|
+
|
|
122
|
+
[[tool.uv.index]]
|
|
123
|
+
name = "testpypi"
|
|
124
|
+
url = "https://test.pypi.org/simple/"
|
|
125
|
+
publish-url = "https://test.pypi.org/legacy/"
|
|
126
|
+
explicit = true
|
|
127
|
+
|
|
128
|
+
[tool.uv.sources]
|
|
129
|
+
$PROJECT_NAME = { index = "testpypi" }
|
|
130
|
+
``````
|
|
131
|
+
"@
|
|
132
|
+
|
|
133
|
+
# Get the owner and repo from the GitHub repository
|
|
134
|
+
$owner = "${{ github.repository_owner }}"
|
|
135
|
+
$repo = "${{ github.repository }}".Split('/')[1]
|
|
136
|
+
$prNumber = $PR_NUM
|
|
137
|
+
|
|
138
|
+
# Get the current PR description
|
|
139
|
+
$prUri = "https://api.github.com/repos/$owner/$repo/pulls/$prNumber"
|
|
140
|
+
$headers = @{
|
|
141
|
+
Authorization = "token $env:GITHUB_TOKEN"
|
|
142
|
+
Accept = "application/vnd.github.v3+json"
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
$pr = Invoke-RestMethod -Uri $prUri -Method Get -Headers $headers
|
|
146
|
+
$currentBody = $pr.body
|
|
147
|
+
|
|
148
|
+
# Check if there's already a development package section
|
|
149
|
+
if ($currentBody -match '## Development Package') {
|
|
150
|
+
# Replace the existing section with the new dependency message
|
|
151
|
+
$newBody = $currentBody -replace '## Development Package(\r?\n|.)*?(?=##|$)', $dependencyMessage
|
|
152
|
+
} else {
|
|
153
|
+
# Append the dependency message to the end of the description
|
|
154
|
+
$newBody = if ($currentBody) { "$currentBody`n`n$dependencyMessage" } else { $dependencyMessage }
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
# Update the PR description
|
|
158
|
+
$updateBody = @{
|
|
159
|
+
body = $newBody
|
|
160
|
+
} | ConvertTo-Json
|
|
161
|
+
|
|
162
|
+
Invoke-RestMethod -Uri $prUri -Method Patch -Headers $headers -Body $updateBody -ContentType "application/json"
|
|
163
|
+
|
|
164
|
+
Write-Output "Updated PR description with development package information"
|
|
165
|
+
|
|
166
|
+
- name: Build package
|
|
167
|
+
run: uv build
|
|
168
|
+
|
|
169
|
+
- name: Publish
|
|
170
|
+
run: uv publish --index testpypi
|
|
171
|
+
env:
|
|
172
|
+
UV_PUBLISH_TOKEN: ${{ secrets.TEST_PYPI_TOKEN }}
|
|
@@ -4,10 +4,14 @@ on:
|
|
|
4
4
|
push:
|
|
5
5
|
branches:
|
|
6
6
|
- main
|
|
7
|
+
paths:
|
|
8
|
+
- "docs/**"
|
|
9
|
+
- "pyproject.toml"
|
|
7
10
|
|
|
8
11
|
jobs:
|
|
9
12
|
publish-docs:
|
|
10
13
|
runs-on: ubuntu-latest
|
|
14
|
+
if: ${{ github.repository == 'UiPath/uipath-langchain-python' }}
|
|
11
15
|
steps:
|
|
12
16
|
- name: Trigger Publish Docs
|
|
13
17
|
run: |
|