又一个构建工具
ybt的Python项目详细描述
yabt:又一个构建工具
安装
需要Python3.4或更高版本,因此请确保您拥有它(type -P python3 && python3 -V
)。
sudo apt-get install -y python3-dev python3-pip sudo pip3 install --upgrade pip sudo pip3 install ybt
要配置bash选项卡完成,请将以下行添加到您的.bashrc
:
eval"$(register-python-argcomplete ybt)"
开发
需要Python3.4或更高版本,因此请确保您拥有它(type -P python3 && python3 -V
)。
建议与virtualenvwrapper一起使用。
使用virtualenvwrapper初始化virtualenv设置(当没有virtualenv处于活动状态时,运行deactivate
以确保):
sudo apt-get install -y python3-dev python3-pip mkvirtualenv --python="$(type -P python3 )" yabt cd$WORKON_HOME/yabt git clone git@github.com:resonai/ybt.git cd ybt # install development requirements pip install -r requirements.txt # install YaBT itself in local dev mode (in the virtualenv) pip install -e .
你现在该走了。
尝试运行单元测试或手动测试用例:
workon yabt cd$WORKON_HOME/yabt/yabt # Run unit tests: make test# Some manual tests:cd tests/dag ybt tree ybt build cd ../simple ybt tree # this one requires a running Docker engine,# and the current user to be a member of the docker group ybt build