应用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 仓库地址 包名