说明
如何本地运行
创建虚拟环境并同步所有依赖: 在项目根目录运行:
uv sync
直接运行命令行工具: 因为我们在 [project.scripts] 里配置了 ldsau,可以直接使用:
# 使用 uv 运行 CLI 工具
uv run ldsau bypass "测试.wav" --semi 1.0
uv run ldsau mix -d "./tracks" -o "伴奏.wav"
uv run ldsau process "录音.wav" --auto_norm 1
如何使用 uv 打包并发布到 PyPI?
打包项目(构建 wheel 和 sdist):
uv build
发布到 PyPI:
uv publish
需要输入 PyPI 的 API Token。输入后,几秒钟之内,你的工具就会上线 PyPI!
从 PyCharm 一键发布到 PyPI
在 PyCharm 的右上角点击编辑配置
添加一个新配置,选择 Shell Script。
按照以下内容进行配置:
-
Name (名称):填入 Build & Publish (uv)
-
Execute (执行):选择 Script text
-
Script text (脚本内容):
- Windows 系统:
rmdir /s /q dist uv build uv publish-
Mac/Linux:
rm -rf dist && uv build && uv publish(注:前面加 rm 删除旧的 dist 文件夹防止把历史版本的包重复上传导致报错)
-
Script working directory (工作目录): pyproject.toml 所在的目录
-
Environment variables (环境变量):点击旁边的表格图标,添加一个环境变量:
- Name: UV_PUBLISH_TOKEN
- Value: 以 pypi- 开头的 Token。
Metadata
Release files for ldsau 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ldsau-1.0.0.tar.gz | 125.4 kB | Without provenance | Details for ldsau-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ldsau-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for ldsau-1.0.0-py3-none-any.whl |
Total release size: 136.7 kB
Release files / ldsau-1.0.0.tar.gz
| Download URL | ldsau-1.0.0.tar.gz |
|---|---|
| Size | 125.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
62f1a124aca6821faf3bc3d5ffa80400da3b2bbe7476ee1ae5bf15d57ee05b34
|
|
BLAKE2b-256 checksum How to use checksums |
24d11fa9c9f8660cba40b0c17d0e722c37b11d92a969795063cf0a2ccef40d61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.17
|
Release files / ldsau-1.0.0-py3-none-any.whl
| Download URL | ldsau-1.0.0-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3217653c4cf1c80e7bd936721df781b2a220f156ef6c46038208f2f0d49d3622
|
|
BLAKE2b-256 checksum How to use checksums |
f85d73687f8fcb220c2778d742d384348890b6c9eb107180ab0b341ac7234349
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.17
|
Security for ldsau 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.