diff --git "a/INFRA_DOCS/\351\276\231\350\234\245 PyPI \344\273\223/\347\224\250\346\210\267\346\226\207\346\241\243.md" "b/INFRA_DOCS/\351\276\231\350\234\245 PyPI \344\273\223/\347\224\250\346\210\267\346\226\207\346\241\243.md" index dbdfcd68f43d1222de2acb5b930b38395131d59d..f28b1a44e5ade5ff0334c96765496623c894f455 100644 --- "a/INFRA_DOCS/\351\276\231\350\234\245 PyPI \344\273\223/\347\224\250\346\210\267\346\226\207\346\241\243.md" +++ "b/INFRA_DOCS/\351\276\231\350\234\245 PyPI \344\273\223/\347\224\250\346\210\267\346\226\207\346\241\243.md" @@ -9,11 +9,13 @@ whl 包上传支持龙蜥 PyPI 仓平台上传和命令行上传两种方式 #### 添加软件包 在 [龙蜥 PyPI 仓](https://pypi.openanolis.cn ) 平台上添加软件包,填写软件包名称、软件包描述,其中软件包名称不允许重复 + ![image.png](../assets/anolis_pypi/pypi-1.png) ![image.png](../assets/anolis_pypi/pypi-2.png) #### 添加版本 点击软件包名称,添加软件包下的版本 + ![image.png](../assets/anolis_pypi/pypi-3.png) ![image.png](../assets/anolis_pypi/pypi-4.png) @@ -22,7 +24,9 @@ whl 包上传支持龙蜥 PyPI 仓平台上传和命令行上传两种方式 #### 版本上下线 在版本列表有版本上下线按钮,上线表示需要将该版本推送到对应 PyPI 仓库(开发仓、正式仓),下线表示将该版本从 PyPI 仓库移除 ![image.png](../assets/anolis_pypi/pypi-5.png) + 已上线的软件包版本可以在首页查看 + ![image.png](../assets/anolis_pypi/pypi-6.png) ### 命令行上传 @@ -30,7 +34,9 @@ whl 包上传支持龙蜥 PyPI 仓平台上传和命令行上传两种方式 #### 获取上传 Token 在首页个人中心下点击【获取上传密钥】 + ![image.png](../assets/anolis_pypi/pypi-7.png) + ![image.png](../assets/anolis_pypi/pypi-8.png) #### twine 命令上传 @@ -49,6 +55,7 @@ twine upload ./dist/* --repository-url https://pypi.openanolis.cn/dev -u 【用 ## whl 包下载 whl 包下载支持 pip install 的方式直接安装, 在pip install 的时候使用 -i 参数指定 PyPI 仓库地址,开发仓 [https://pypi.openanolis.cn/dev/simple](https://pypi.openanolis.cn/dev/simple ),正式仓:[https://pypi.openanolis.cn/prod/simple](https://pypi.openanolis.cn/prod/simple ) + ![image.png](../assets/anolis_pypi/pypi-11.png) 也可以在 pip 配置文件中将仓库地址、上传密钥进行配置 \ No newline at end of file