Skip to content

Commit eb202de

Browse files
author
qinhui
committed
feat: rename package to agent-server-sdk-python for PyPI publishing
- Update package name in pyproject.toml - Update metadata reference in version.py - Update CI workflow to use pypa/gh-action-pypi-publish - Update README badge and install command
1 parent 6ba8897 commit eb202de

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,15 @@ jobs:
3131
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
3232
- name: Install dependencies
3333
run: poetry install
34-
3534
- name: Test
3635
run: poetry run pytest -rP .
3736

3837
publish:
3938
needs: [compile, test]
4039
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
4140
runs-on: ubuntu-latest
41+
permissions:
42+
id-token: write
4243
steps:
4344
- name: Checkout repo
4445
uses: actions/checkout@v4
@@ -51,10 +52,9 @@ jobs:
5152
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
5253
- name: Install dependencies
5354
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 }}
55+
- name: Build package
56+
run: poetry build
57+
- name: Publish to PyPI
58+
uses: pypa/gh-action-pypi-publish@release/v1
59+
with:
60+
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)