需要.io API
requires.io的Python项目详细描述
安装
要安装,只需:
$ pip install requires.io
用法
创建或更新存储库:
$ requires.io update-repo -t MY_TOKEN -r MY_REPO (--public | --private)
创建或更新分支:
$ requires.io update-branch -t MY_TOKEN -r MY_REPO -n MY_BRANCH /path/to/my/sources
创建或更新标记:
$ requires.io update-tag -t MY_TOKEN -r MY_REPO -n MY_TAG /path/to/my/sources
监视站点:
- 使用pip冻结当前环境
- hostname是默认站点名
$ requires.io update-site -t MY_TOKEN -r MY_REPO
删除存储库、分支、标记和站点:
$ requires.io delete-repo -t MY_TOKEN -r MY_REPO $ requires.io delete-branch -t MY_TOKEN -r MY_REPO -n MY_BRANCH $ requires.io delete-tag -t MY_TOKEN -r MY_REPO -n MY_TAG $ requires.io delete-site -t MY_TOKEN -r MY_REPO -n MY_SITE
更改日志
0.2.6
错误修复
- 无参数调用requires.io时显示帮助
0.2.5
功能
- 添加parse命令行以分析单个需求文件
0.2.4
错误修复
- 计算需求文件的远程基名时保留检测到的路径模式
0.2.3
错误修复
- python 3中命令update-branch和update-tag 的编码问题