前提条件
- 完成部署Nexus仓库
- 创建hosted类型的pypi仓库
上传pypi包
安装twine python模块
pip install twine |
上传pypi包语法
twine upload --repository-url <Nexus仓库URL> --username <用户名> --password <密码> dist/* |
示例:
twine upload --repository-url http://172.16.1.10:8081/repository/pypi/ --username admin --password admin dist/* |