mirror of
https://github.com/katanemo/plano.git
synced 2026-05-03 21:02:56 +02:00
use uv instead of poetry (#663)
This commit is contained in:
parent
ca95ffb63d
commit
053e2b3a74
41 changed files with 3086 additions and 7226 deletions
|
|
@ -5,11 +5,11 @@ e2e tests for arch llm gateway and prompt gateway
|
|||
To be able to run e2e tests successfully run_e2e_script prepares environment in following way,
|
||||
|
||||
1. build and start weather_forecast demo (using docker compose)
|
||||
1. build, install and start model server async (using poetry)
|
||||
1. build, install and start model server async (using uv)
|
||||
1. build and start arch gateway (using docker compose)
|
||||
1. wait for model server to be ready
|
||||
1. wait for arch gateway to be ready
|
||||
1. start e2e tests (using poetry)
|
||||
1. start e2e tests (using uv)
|
||||
1. runs llm gateway tests for llm routing
|
||||
2. runs prompt gateway tests to test function calling, parameter gathering and summarization
|
||||
2. cleanup
|
||||
|
|
@ -24,7 +24,7 @@ To run locally make sure that following requirements are met.
|
|||
### Requirements
|
||||
|
||||
- Python 3.10
|
||||
- Poetry
|
||||
- uv
|
||||
- Docker
|
||||
|
||||
### Running tests locally
|
||||
|
|
|
|||
1180
tests/e2e/poetry.lock
generated
1180
tests/e2e/poetry.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,25 +1,33 @@
|
|||
[tool.poetry]
|
||||
[project]
|
||||
name = "e2e_tests"
|
||||
version = "0.0.1"
|
||||
description = "e2e tests for prompt and llm gateway"
|
||||
authors = ["Katanemo Labs, Inc <info@katanemo.com>"]
|
||||
license = "Apache 2.0"
|
||||
authors = [{name = "Katanemo Labs, Inc", email = "info@katanemo.com"}]
|
||||
license = {text = "Apache 2.0"}
|
||||
readme = "README.md"
|
||||
package-mode = false
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
"pytest>=8.3.3",
|
||||
"requests>=2.29.0",
|
||||
"selenium>=4.11.2",
|
||||
"pytest-sugar>=1.0.0",
|
||||
"deepdiff>=8.0.1",
|
||||
"pytest-retry>=1.6.3",
|
||||
"anthropic>=0.66.0",
|
||||
"openai>=1.0.0",
|
||||
]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.10"
|
||||
pytest = "^8.3.3"
|
||||
requests = "^2.29.0"
|
||||
selenium = "^4.11.2"
|
||||
pytest-sugar = "^1.0.0"
|
||||
deepdiff = "^8.0.1"
|
||||
pytest-retry = "^1.6.3"
|
||||
anthropic = "^0.66.0"
|
||||
openai = "^1.0.0"
|
||||
[project.optional-dependencies]
|
||||
dev = [
|
||||
"pytest-cov>=4.1.0",
|
||||
]
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
pytest-cov = "^4.1.0"
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["."]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
python_files = ["test*.py"]
|
||||
|
|
|
|||
|
|
@ -30,7 +30,8 @@ cd -
|
|||
log building and installing plano cli
|
||||
log ==================================
|
||||
cd ../../cli
|
||||
poetry install
|
||||
uv sync
|
||||
uv tool install .
|
||||
cd -
|
||||
|
||||
log building docker image for arch gateway
|
||||
|
|
@ -40,7 +41,7 @@ planoai build
|
|||
cd -
|
||||
|
||||
# Once we build plano we have to install the dependencies again to a new virtual environment.
|
||||
poetry install
|
||||
uv sync
|
||||
|
||||
log startup arch gateway with function calling demo
|
||||
cd ../../
|
||||
|
|
@ -50,7 +51,7 @@ cd -
|
|||
|
||||
log running e2e tests for prompt gateway
|
||||
log ====================================
|
||||
poetry run pytest test_prompt_gateway.py
|
||||
uv run pytest test_prompt_gateway.py
|
||||
|
||||
log shutting down the arch gateway service for prompt_gateway demo
|
||||
log ===============================================================
|
||||
|
|
@ -63,11 +64,11 @@ cd -
|
|||
|
||||
log running e2e tests for model alias routing
|
||||
log ========================================
|
||||
poetry run pytest test_model_alias_routing.py
|
||||
uv run pytest test_model_alias_routing.py
|
||||
|
||||
log running e2e tests for openai responses api client
|
||||
log ========================================
|
||||
poetry run pytest test_openai_responses_api_client.py
|
||||
uv run pytest test_openai_responses_api_client.py
|
||||
|
||||
log startup arch gateway with state storage for openai responses api client demo
|
||||
planoai down
|
||||
|
|
@ -75,7 +76,7 @@ planoai up config_memory_state_v1_responses.yaml
|
|||
|
||||
log running e2e tests for openai responses api client
|
||||
log ========================================
|
||||
poetry run pytest test_openai_responses_api_client_with_state.py
|
||||
uv run pytest test_openai_responses_api_client_with_state.py
|
||||
|
||||
log shutting down the weather_forecast demo
|
||||
log =======================================
|
||||
|
|
|
|||
1057
tests/e2e/uv.lock
generated
Normal file
1057
tests/e2e/uv.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue