基于git中组件所在位置的组件管理器。
gitvier的Python项目详细描述
Gitvier是一个CLI“组件管理”工具,当您拥有一个容器存储库,然后该存储库依赖于 在一堆要操作的组件上,然后您就在积极地处理这些组件。因此,它旨在允许 用户尝试和管理这些组件,允许在 部分/全部组件但是,它不同于gitman,因为它不会显式地还原依赖项。 除非在“master”和 组件当前在分支“development”中,如果运行“gitvier update”,则不希望该组件被放回 在master上,但可能只是对这个组件(和所有其他组件)做一个git拉取我主要建造这个 为了支持Submitty的用例和我的研究项目
这在很大程度上借用了GitMan的概念,而GitMan是一个很大的依赖项 管理者与Git,但作为一个“组件管理器”(因此,这个工具的存在)不那么有用。
依赖关系
- Python3.5+
- 吉特
其他人?
安装
来自PIP:
pip3 install gitvier
来源:
git clone https://github.com/MasterOdin/gitvier python3 setup.py install
用法
$ gitvier --help usage: gitvier [-h] [-V] <command> ... A component manager based where your components live in Git. positional arguments: <command> init Initialize a new gitvier directory optional arguments: -h, --help show this help message and exit -V, --version show program's version number and exit
Gitvier配置文件
Gitvier在一个配置文件上运行,该文件包含系统的各个组件在根上 级别可以指定所有组件所在的位置 组件是包含以下元素的组件列表:
name: <component_name/subfolder where component will be installed to> repo: <git_url> rev: <branch or tag or commit hash or branch/tag@timestamp> commands: <list of bash commands to run after install/update> (optional)
一个.gitvier.yml文件的示例(取自Submitty):
location: . components: - name: RainbowGrades repo: https://github.com/Submitty/RainbowGrades rev: master - name: grading repo: https://github.com/Submitty/AutoGrading rev: master