uv python pin 3.10
uv init --lib xnszmcp --python 3.10
在src中添加核心代码,和__main__.py和__init__.py 参照下方链接: https://community.modelscope.cn/684b87bc7e10b149bf1f9f0a.html https://blog.csdn.net/neweastsun/article/details/147448838
uv add build twine "mcp[cli]" modelscope numpy opencv-python pillow torch transformers --python 3.10
uv run -m build
uv run -m twine upload dist/***.whl (需要有pypi上传token)
我的经验,在pyproject.toml中加入index,速度可以飞快。然后一定要记得加上scripts
Metadata
Release files for xhsmcp 0.1.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xhsmcp-0.1.10-py3-none-any.whl | Python 3 | none | any | Details |
Release files / xhsmcp-0.1.10-py3-none-any.whl
| Download URL | xhsmcp-0.1.10-py3-none-any.whl |
|---|---|
| Size | 17.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6b1fae80dad2a8eb0c97a7c190af5ece402d33fa74b49109f41306b7b889623e
|
|
BLAKE2b-256 checksum How to use checksums |
6837562ca6dd261808c110ab6c79cd0d7880b6bf1c6a58817f2afb68ae6b462a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.18
|
Security for xhsmcp 0.1.10
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.