use uv instead of poetry (#663)

This commit is contained in:
Adil Hafeez 2025-12-26 11:21:42 -08:00 committed by GitHub
parent ca95ffb63d
commit 053e2b3a74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 3086 additions and 7226 deletions

View file

@ -48,19 +48,16 @@ jobs:
run: |
source common.sh && wait_for_healthz http://localhost:10000/healthz
- name: install poetry
run: |
export POETRY_VERSION=2.2.1
curl -sSL https://install.python-poetry.org | python3 -
export PATH="$HOME/.local/bin:$PATH"
- name: install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: install test dependencies
run: |
poetry install
uv sync
- name: run plano tests
run: |
poetry run pytest || tail -100 plano.logs
uv run pytest || tail -100 plano.logs
- name: stop plano docker container
env:

View file

@ -26,10 +26,8 @@ jobs:
run: |
docker build -f Dockerfile . -t katanemo/plano -t katanemo/plano:0.4.0
- name: install poetry
run: |
export POETRY_VERSION=2.2.1
curl -sSL https://install.python-poetry.org | python3 -
- name: install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: setup python venv
run: |
@ -43,8 +41,8 @@ jobs:
- name: install arch gateway and test dependencies
run: |
source venv/bin/activate
cd cli && echo "installing plano cli" && poetry install
cd ../demos/shared/test_runner && echo "installing test dependencies" && poetry install
cd cli && echo "installing plano cli" && uv sync && uv tool install .
cd ../demos/shared/test_runner && echo "installing test dependencies" && uv sync
- name: run demo tests
env:

View file

@ -26,10 +26,8 @@ jobs:
run: |
docker build -f Dockerfile . -t katanemo/plano -t katanemo/plano:0.4.0
- name: install poetry
run: |
export POETRY_VERSION=2.2.1
curl -sSL https://install.python-poetry.org | python3 -
- name: install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: setup python venv
run: |
@ -43,8 +41,8 @@ jobs:
- name: install arch gateway and test dependencies
run: |
source venv/bin/activate
cd cli && echo "installing plano cli" && poetry install
cd ../demos/shared/test_runner && echo "installing test dependencies" && poetry install
cd cli && echo "installing plano cli" && uv sync && uv tool install .
cd ../demos/shared/test_runner && echo "installing test dependencies" && uv sync
- name: run demo tests
env:

View file

@ -45,11 +45,8 @@ jobs:
with:
python-version: "3.12"
- name: Install Poetry
run: |
export POETRY_VERSION=2.2.1
curl -sSL https://install.python-poetry.org | python3 -
export PATH="$HOME/.local/bin:$PATH"
- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Run e2e tests
env:

View file

@ -25,16 +25,13 @@ jobs:
with:
python-version: "3.12"
- name: install poetry
run: |
export POETRY_VERSION=2.2.1
curl -sSL https://install.python-poetry.org | python3 -
export PATH="$HOME/.local/bin:$PATH"
- name: install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: install plano tools
run: |
poetry install
uv sync --extra dev
- name: run tests
run: |
poetry run pytest
uv run pytest

View file

@ -24,14 +24,12 @@ jobs:
with:
python-version: "3.12"
- name: install poetry
run: |
export POETRY_VERSION=2.2.1
curl -sSL https://install.python-poetry.org | python3 -
export PATH="$HOME/.local/bin:$PATH"
- name: install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Build and publish to PyPI
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
poetry publish --build
uv build
uv publish