fix: modulename (#6)

* fix(release): correct package import name transformation

Remove incorrect sed replacement that transformed all dashes to underscores. Instead, only remove '-sdk' suffix from package names to match actual Python import conventions.

* readme

---------

Co-authored-by: zhengweijun <weijun.zheng@aminer.cn>
This commit is contained in:
wellenzheng 2025-07-14 16:53:14 +08:00 committed by GitHub
parent 74baa1542c
commit a5f625f902
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 11 deletions

View file

@ -134,7 +134,7 @@ jobs:
# Replace all dashes in the package name with underscores,
# since that's how Python imports packages with dashes in the name.
IMPORT_NAME="$(echo "$PKG_NAME" | sed s/-/_/g)"
IMPORT_NAME="${PKG_NAME//-sdk/}"
poetry run python -c "import $IMPORT_NAME; print(dir($IMPORT_NAME))"

View file

@ -1,12 +1,12 @@
# Z.ai Open Platform Python SDK
[![PyPI version](https://img.shields.io/pypi/v/zai.svg)](https://pypi.org/project/zai/)
[![PyPI version](https://img.shields.io/pypi/v/zai-sdk.svg)](https://pypi.org/project/zai-sdk/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Python](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/)
[中文文档](README_CN.md) | English
The official Python SDK for Z.ai's large model open interface, making it easier for developers to call Z.ai's open APIs.
[Z.ai Open Platform](https://docs.z.ai/) The official Python SDK for Z.ai's large model open interface, making it easier for developers to call Z.ai's open APIs.
## ✨ Core Features
@ -56,7 +56,7 @@ The official Python SDK for Z.ai's large model open interface, making it easier
### Install via pip
```bash
pip install z-ai
pip install zai-sdk
```
### 📋 **Technical Specifications**

View file

@ -1,12 +1,12 @@
# Z.ai 开放平台 Python SDK
[![PyPI version](https://img.shields.io/pypi/v/z-ai.svg)](https://pypi.org/project/z-ai/)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
[![Python](https://img.shields.io/badge/python-3.9%2B-blue.svg)](https://www.python.org/)
[![PyPI version](https://img.shields.io/pypi/v/zai-sdk.svg)](https://pypi.org/project/zai-sdk/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Python](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/)
[English Readme](README.md)
[ Z.ai 开放平台](https://github.com/THUDM/z-ai-sdk-python)官方 Python SDK帮助开发者快速集成 Z.ai 强大的人工智能能力到Python应用中。
[Z.ai 开放平台](https://docs.z.ai/)官方 Python SDK帮助开发者快速集成 Z.ai 强大的人工智能能力到Python应用中。
## ✨ 核心功能
@ -55,7 +55,7 @@
### 使用 pip 安装
```sh
pip install z-ai
pip install zai-sdk
```
### 📋 **技术规格**

View file

@ -83,7 +83,7 @@ This initial release provides comprehensive access to Z.ai's powerful AI capabil
### 🚀 **Getting Started**
```bash
pip install z-ai
pip install zai-sdk
```
```python
@ -212,7 +212,7 @@ For future versions, migration guides will be provided here to help you upgrade
### 🚀 **快速开始**
```bash
pip install z-ai
pip install zai-sdk
```
```python