我的工具
Project description
简介
我的工具
一.上传步骤: 1.生成 dist 目录用于上传 python setup.py sdist bdist_wheel
2.上传包到私有 pypi 源 cat ~/.pypirc [distutils] index-servers = pypi local
[pypi] repository: https://www.python.org/pypi username = token password = 'xxxxxxxxxxx'
[local] repository: http://localhost:3141 username: yehaiquan password: 12345678
3.上传到 local 仓库 twine upload dist/* -r local
4.测试是否上传 访问 http://localhost:3141/simple/
5.安装 pip search -i http://localhost:3141 wivw_demo #查找包 pip install -i http://localhost:3141/simple wivw_demo #安装包 pip install -U -i http://localhost:3141/simple wivw_demo #安装最新包
6.测试是否安装 import wivw_demo from wivw_demo import mytool wivw-demo.show() mytool.mytest()
7.卸载包 pip uninstall wivw-demo
二.上传到 pypi 仓库 1.登陆个人pypi后台(如没有账号需要先注册) https://pypi.org/manage/projects/
2.创建token,登陆https://pypi.org/manage/account/,找到api token,添加一个新的token
3.配置token cat ~/.pypirc [pypi] username: token password: pypi-AgEIcHlwaS5vcmcCYxxzI0WuBg-zgyXxBO1r4ZW6hX450jdsw
用户名和密码也可以用自己的个人登陆账号,但不推荐,推荐用token方式验证.
4.上传包到pypi twine check dist/* twine upload dist/*
5.安装 pip install wivw-demo
6.测试是否安装 import wivw_demo from wivw_demo import mytool wivw-demo.show() mytool.mytest()
7.卸载包 pip uninstall wivw-demo
完毕!
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
Built Distribution
File details
Details for the file wivw_demo-0.0.3.tar.gz
.
File metadata
- Download URL: wivw_demo-0.0.3.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32f8e1433205f6c69e5783ff1735da9c0eaef5a2419ef4cb5c22df53c275b1b9 |
|
MD5 | 5a101296d60856dc8af75ccb064bc496 |
|
BLAKE2b-256 | 5e1135cfc1ba2f83b9f483bdd9ac56138140030578ad5c96b0d4d8b26f9db2de |
File details
Details for the file wivw_demo-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: wivw_demo-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | abff67613250a8ab4b3dc7c2e61f11e46629f8414541b1f9e43499b1903c985f |
|
MD5 | f260773d86e0c252006471be483cc428 |
|
BLAKE2b-256 | 341c6440f4bad3b1f7f22a627af3271558b116dfdb2fcbb11512a43c6240490f |