Skip to content

Commit 9d9311a

Browse files
committed
feat!: PyPI 分发名改为 qca-sdk,与 npm 包名对齐
导入名仍是 qca,元数据查询随分发名改为 version("qca-sdk")。
1 parent ddab034 commit 9d9311a

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Qoder Cloud Agents Python SDK
22

3-
[![PyPI version](https://img.shields.io/pypi/v/qca.svg)](https://pypi.org/project/qca/)
3+
[![PyPI version](https://img.shields.io/pypi/v/qca-sdk.svg)](https://pypi.org/project/qca-sdk/)
44

55
The Qoder Cloud Agents Python SDK provides access to the Qoder Cloud Agents API from Python 3.10+. It ships synchronous and natively asynchronous clients, typed request parameters and response models, automatic pagination, SSE streaming, and file transfer.
66

@@ -9,10 +9,10 @@ The API is exposed in two modes, and each has its own client, resources, and typ
99
## Installation
1010

1111
```bash
12-
python -m pip install qca
12+
python -m pip install qca-sdk
1313
```
1414

15-
The package is still in pre-release, so the command above resolves to the latest `0.0.1.devN` build. To work from a checkout of this repository instead:
15+
The distribution is named `qca-sdk`; the import package is `qca`. The package is still in pre-release, so the command above resolves to the latest `0.0.1.devN` build. To work from a checkout of this repository instead:
1616

1717
```bash
1818
python -m pip install .

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "qca"
2+
name = "qca-sdk"
33
version = "0.0.1.dev3"
44
description = "Typed synchronous and asynchronous clients for Qoder Cloud Agents"
55
authors = [{name = "Qoder"}]

‎src/qca/_version.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from importlib.metadata import PackageNotFoundError, version
22

33
try:
4-
__version__ = version("qca")
4+
# 分发名是 qca-sdk,导入名是 qca,元数据只认前者。
5+
__version__ = version("qca-sdk")
56
except PackageNotFoundError:
67
# 直接从源码树导入(未安装)时没有包元数据可读。
78
__version__ = "0.0.0.dev0"

0 commit comments

Comments
 (0)