diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5f7e6e2..5f1faae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -68,3 +68,22 @@ jobs: files: dist/**/*.whl generate_release_notes: true + publish: + runs-on: ubuntu-latest + steps: + - name: 'Checkout GitHub Action' + uses: actions/checkout@main + + - name: Install uv + uses: astral-sh/setup-uv@v6 + + # Repo root cwd: uv build puts artifacts in ./dist; uv publish looks for dist/* relative to cwd. + - name: 'Release Python Packages' + env: + VERSION: ${{ github.event.inputs.tag || github.ref_name }} + run: | + uv sync --package agentevals-cli --all-extras + uv version "$VERSION" --package agentevals-cli + + uv build --package agentevals-cli + uv publish dist/* --token ${{ secrets.PYPI_TOKEN }} diff --git a/pyproject.toml b/pyproject.toml index 7b41fc2..d6987c9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["hatchling"] build-backend = "hatchling.build" [project] -name = "agentevals" +name = "agentevals-cli" version = "0.5.1" description = "Standalone framework to evaluate agent correctness based on portable OpenTelemetry traces" requires-python = ">=3.11" @@ -11,7 +11,6 @@ dependencies = [ "google-adk[eval]>=1.25.0", "click>=8.0", "tabulate>=0.9.0", - "pandas>=2.2.3", "fastapi>=0.115.0", "uvicorn[standard]>=0.32.0", "python-multipart>=0.0.12", diff --git a/uv.lock b/uv.lock index 6ac5578..cc091bf 100644 --- a/uv.lock +++ b/uv.lock @@ -15,7 +15,7 @@ resolution-markers = [ [manifest] members = [ - "agentevals", + "agentevals-cli", "agentevals-evaluator-sdk", ] @@ -29,7 +29,7 @@ wheels = [ ] [[package]] -name = "agentevals" +name = "agentevals-cli" version = "0.5.1" source = { editable = "." } dependencies = [ @@ -38,7 +38,6 @@ dependencies = [ { name = "google-adk", extra = ["eval"] }, { name = "httpx" }, { name = "opentelemetry-proto" }, - { name = "pandas" }, { name = "python-dotenv" }, { name = "python-multipart" }, { name = "pyyaml" }, @@ -74,7 +73,6 @@ requires-dist = [ { name = "mcp", marker = "extra == 'live'", specifier = ">=1.26.0" }, { name = "opentelemetry-proto", specifier = ">=1.36.0" }, { name = "opentelemetry-sdk", marker = "extra == 'streaming'", specifier = ">=1.20.0" }, - { name = "pandas", specifier = ">=2.2.3" }, { name = "python-dotenv", specifier = ">=1.0.0" }, { name = "python-multipart", specifier = ">=0.0.12" }, { name = "pyyaml", specifier = ">=6.0" },