用于敏捷发布管理、构建和问题跟踪的python工具包
pulsar-agile的Python项目详细描述
toolkit,用于使用python、git、github、docker和aws进行敏捷开发
内容 这是一个python包,用于帮助在本地计算机上进行部署和dev-ops类型的操作。
要安装软件包,您需要Python3.5或更高版本: 安装后,在存储库中创建play.py脚本: 然后沿着它创建agile.json文件。 运行任务时,日志记录级别默认设置为“信息”。为了更多
详细日志记录传递--log-level agile.debug。 pulsar agile包含两个与github交互的命令: 在使用github命令之前,需要通过添加^{tt4}来配置.gitconfig文件$
以及token。从github从
personal access tokens页码: 跨存储库保持标签一致。
要添加label命令,请在agile.json文件中创建labels条目: 并运行repo-labels命令: 通过http连接复制文件。
例如: 使用sass编译scss文件 在shell上运行任意命令 要运行单元测试,请在该文件旁边创建一个test_config.py文件并添加
以下两项:Badges: Master CI: Downloads: http://pypi.python.org/pypi/pulsar-agile Source: https://github.com/quantmind/pulsar-agile Mailing list: google user group Design by: Quantmind and Luca Sbardella Platforms: Linux, OSX, Windows. Python 3.5 and above Keywords: git, github, python, aws, release, documentation Install
pip install -U pulsar-agile
Setup
if__name__=='__main__':fromagile.appimportAgileManagerAgileManager(description='Release manager for my package').start()
Logging
Commands
Github
Configuration
[user]
email = ...
username = lsbardel
token = bqedoeunzplesw52tme00zwuj2lhbjr8emrbrxax
Labels
{"labels":{"group1":{"repositories":["quantmind/pulsar-agile","quantmind/pulsar-cloud"],"labels":{"aws":"e47911","benchmark":"006b75"}}},"tasks":{"repo-labels":{"description":"Update labels in all repositories","command":["labels"]}}}
python play.py repo-labels
HttpCopy
"httpcopy": {
"sockjs": {
"src": "https://cdnjs.cloudflare.com/ajax/libs/sockjs-client/{{ sockjs_version }}/sockjs.js",
"target": "/media/"
}
}
Sass
Shell
Testing
importosos.environ['GITHUB_USERNAME']="<username for token>"os.environ['GITHUB_TOKEN']="<generate one from https://github.com/settings/tokens>"os.environ['GITHUB_TEST_REPO']="<username>/<reponame>"
推荐PyPI第三方库