打包
python -m build --no-isolation --wheel
–wheel 只生成wheel
安装twine
pip install twine
配置nexus 服务信息
在window 用户目录创建.pypirc 文件
[distutils]
index-servers =
nexus
[nexus]
repository: http://192.169.3.66:8081/nexus/repository/pypi-hosted/
username: 账号
password: 密码
index-servers :定义私服地址名称,需要与仓库节点名称对应起来
[nexus]:定义仓库信息
repository: 仓库地址(仓库的配置中获取)
username: 登录账号
password: 登录密码
上传到nexus
python -m twine upload --repository nexus dist/*
安装
pip install --upgrade demo==8.1.23.dev0 --trusted-host 192.168.3.66