Skip to content

Commit 5c5a388

Browse files
Merge pull request #11 from AgoraIO-Conversational-AI/feat/rename-package-to-agent-server-sdk-python
Rename package to agent-server-sdk-python and improve CI publish workflow
2 parents e37d049 + 0032d9a commit 5c5a388

4 files changed

Lines changed: 17 additions & 15 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: ci
2-
on: [push]
2+
on:
3+
push:
4+
workflow_dispatch:
35
jobs:
46
compile:
57
runs-on: ubuntu-latest
@@ -31,14 +33,15 @@ jobs:
3133
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
3234
- name: Install dependencies
3335
run: poetry install
34-
3536
- name: Test
3637
run: poetry run pytest -rP .
3738

3839
publish:
3940
needs: [compile, test]
40-
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
41+
if: (github.event_name == 'push' && contains(github.ref, 'refs/tags/')) || github.event_name == 'workflow_dispatch'
4142
runs-on: ubuntu-latest
43+
permissions:
44+
id-token: write
4245
steps:
4346
- name: Checkout repo
4447
uses: actions/checkout@v4
@@ -51,10 +54,9 @@ jobs:
5154
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
5255
- name: Install dependencies
5356
run: poetry install
54-
- name: Publish to pypi
55-
run: |
56-
poetry config repositories.remote https://upload.pypi.org/legacy/
57-
poetry --no-interaction -v publish --build --repository remote --username "$PYPI_USERNAME" --password "$PYPI_PASSWORD"
58-
env:
59-
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
60-
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
57+
- name: Build package
58+
run: poetry build
59+
- name: Publish to PyPI
60+
uses: pypa/gh-action-pypi-publish@release/v1
61+
with:
62+
password: ${{ secrets.PYPI_API_TOKEN }}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Agora Agent Server SDK for Python
22

33
[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FAgoraIO-Conversational-AI%2Fagent-server-sdk-python)
4-
[![pypi](https://img.shields.io/pypi/v/agora-agent-server-sdk)](https://pypi.python.org/pypi/agora-agent-server-sdk)
4+
[![pypi](https://img.shields.io/pypi/v/agent-server-sdk-python)](https://pypi.python.org/pypi/agent-server-sdk-python)
55

66
The Agora Conversational AI SDK provides convenient access to the Agora Conversational AI APIs,
77
enabling you to build voice-powered AI agents with support for both cascading flows (ASR -> LLM -> TTS)
@@ -28,7 +28,7 @@ and multimodal flows (MLLM) for real-time audio processing.
2828
## Installation
2929

3030
```sh
31-
pip install agora-agent-server-sdk
31+
pip install agent-server-sdk-python
3232
```
3333

3434
## Quick Start

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[project]
2-
name = "agora-agent-server-sdk"
2+
name = "agent-server-sdk-python"
33

44
[tool.poetry]
5-
name = "agora-agent-server-sdk"
5+
name = "agent-server-sdk-python"
66
version = "1.1.0"
77
description = ""
88
readme = "README.md"

src/agora_agent/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from importlib import metadata
22

3-
__version__ = metadata.version("agora-agent-server-sdk")
3+
__version__ = metadata.version("agent-server-sdk-python")

0 commit comments

Comments
 (0)