unirtos-cli 构建指南
环境准备
sudo apt update
sudo apt install python3 python3-pip -y
pip3 install --upgrade build twine
构建分发包
python3 -m build
构建完成后,根目录会生成 dist/ 文件夹,包含:
- unirtos_cli-1.0.11.tar.gz(源码包)
- unirtos_cli-1.0.11-py3-none-any.whl(wheel 包,跨平台通用)
本地验证
安装 wheel 包
pip3 install --force-reinstall dist/unirtos_cli-1.0.11-py3-none-any.whl
验证 unirtos-cli 命令行工具
unirtos-cli version
上传到 PyPI
上传分发包
先注册 PyPI 账号,并获取 API Token
twine upload --repository pypi dist/*
安装 unirtos-cli
pip install --upgrade unirtos-cli==1.0.11
验证 unirtos-cli 命令行工具
unirtos-cli version
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
unirtos_cli-1.0.11.tar.gz
(28.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file unirtos_cli-1.0.11.tar.gz.
File metadata
- Download URL: unirtos_cli-1.0.11.tar.gz
- Upload date:
- Size: 28.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa28447e2d2398451f4481426f3e68cb16a8d9628cd14c663d03f6db39752817
|
|
| MD5 |
f704cfa5914edf3914a5b94a50f04e0a
|
|
| BLAKE2b-256 |
22e08bee247b617cba8ed3da3ece95971c214f9473b01b561c03eda3146eef09
|
File details
Details for the file unirtos_cli-1.0.11-py3-none-any.whl.
File metadata
- Download URL: unirtos_cli-1.0.11-py3-none-any.whl
- Upload date:
- Size: 30.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aeba659782367fd9ca54c895bf0f383b4db3bae0255099f2a5547f6b4530f665
|
|
| MD5 |
3c2807f7ecc10a7fc5aa29f965d961e6
|
|
| BLAKE2b-256 |
ff324a717c823a5d025182a440933ec29bdde64d32aa4f192fe59bc13f4e5e97
|