蒂娜不是arif:一个标记厨师食谱及其依赖关系的工具。
tina的Python项目详细描述
概述
tina(tina不是arif)是一个自动标记厨师食谱和 他们的依赖。它具有适当的依赖解析,检查 冲突版本约束,并在标记时提供可配置性。
依赖关系
蒂娜依赖于[berkshelf](http://berkshelf.com/)和[gitpython 库](https://pypi.python.org/pypi/GitPython)。要安装BerkShelf:
`bash $ gem install berkshelf `
安装gitpython:
`bash $ sudo easy_install gitpython `
使用tina
Tina只适用于Python2.6和2.7。安装蒂娜:
`bash $ sudo easy_install tina `
要使用tina标记一个食谱,请导航到该食谱的目录并运行 蒂娜。
` $ tina Running Berkshelf... Discovering dependent cookbooks... Checking for version conflicts... Resolving dependencies... REPOSITORY SUMMARY: 1. foo: v2.0.3 => v2.0.4 2. bar: unchanged 3. community_cookbook_1 will be pinned at 1.2.3 4. community_cookbook_2 will be pinned at 3.2.1 To commit these changes, re-run with --commit `
蒂娜概述了这本食谱,以及它的附属食谱, 将被标记。创建一个临时的.tina目录,其中每个 存储库已克隆。.tina目录还包含一个tinafile 在试运行和提交之间跟踪存储库元数据。如果 以上由tina生成的概述是可以接受的,只需运行tina–commit 提交更改。每个存储库都将被标记和推送,而不必 对主分支的修改。
在试运行期间有更多的选择(例如,为 repo,或者改变社区菜谱的固定方式),运行tina-i并跟随 指示。要查看所有选项,请运行tina-h。
测试
运行测试:
`bash $ sudo easy_install nosetests $ sudo easy_install coverage $ nosetests --with-coverage `