A small example package
Project description
mypk1
测试项目
常用脚本
#上传
python -m twine upload --repository testpypi dist/*
打包安装上传流程
测试环境
- 编译打包方式一 这里打两种包sdist打包为tar.gz,bdist_wheel打包为whl
python setup.py sdist bdist_wheel
- 编译打包方式二 也是打包为两个包,作用一样
python -m build
- 本地包
python -m pip install ./dist/mypk1-0.0.3.tar.gz
- twine上传
python -m twine upload --repository testpypi dist/*
- 远程安装
pip install -i https://test.pypi.org/simple/ mypk1
pip install -i https://test.pypi.org/simple/ mypk1==0.0.1
pip install -i https://test.pypi.org/simple/ mypk1==0.0.2
- 升级安装
pip install --upgrade --extra-index-url https://test.pypi.org/simple/ mypk1
- 卸载
pip uninstall mypk1
正式环境
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mypk1-0.0.3.tar.gz
(2.4 kB
view details)
Built Distribution
mypk1-0.0.3-py3-none-any.whl
(2.8 kB
view details)
File details
Details for the file mypk1-0.0.3.tar.gz
.
File metadata
- Download URL: mypk1-0.0.3.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.5 tqdm/4.56.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7771fe9b33ffc00471aa8da03c7058f7297dadf3f40572df9040c191d1b5d3a1 |
|
MD5 | 542eac9843a785df7852313bd586e5bc |
|
BLAKE2b-256 | 3de26e729629fd56c6e9dce6955fc6519a6f8e88359abdd43222eebc693d1413 |
File details
Details for the file mypk1-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: mypk1-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.5 tqdm/4.56.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bff06fa24e615ac3cbf0088d7795a853bd827f1abca4b8bc55c99439e1186e09 |
|
MD5 | 52d627748de36bc2fbf3a79eea4c365e |
|
BLAKE2b-256 | b9fbc579d479a173f8a571cf3f6f74cec73eb135c662aae5089cff6bd10482da |