发布python包到私有仓库

应用poetry init/poetry bulid建立好包后,安装twine:
python -m pip install --user --upgrade twine
然后就可以发布到私人仓库了
python -m twine upload --repository-url 仓库地址 dist/*

或者:
在poetry.toml中配置url(repositories.internal)
然后 poetry publish -r 库文件夹名

安装到本地:
pip install -i 仓库地址 包名

猜你喜欢

转载自blog.csdn.net/qq_36663518/article/details/107532958