锌
zn的Python项目详细描述
锌
锌
开发环境
设置
按照以下步骤创建锌的开发环境:
cd ~/projects
git clone git@github.com:blinkdog/zn.git
cd zn
python3.7 -m venv ./env
source env/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
维护
如果使用pip install
安装新包,请更新
requirements.txt
使用以下命令的文件:
pip freeze --all >requirements.txt
工作
助手脚本snake
定义了一些常见的项目任务:
Try one of the following tasks:
snake clean # Remove build cruft
snake coverage # Perform coverage analysis
snake dist # Create a distribution tarball and wheel
snake lint # Run static analysis tools
snake publish # Publish the module to Test PyPI
snake rebuild # Test and lint the module
snake test # Test the module
任务rebuild
并不真正构建(不需要编译python)。
但它确实运行单元测试并运行项目。
版本碰撞
如果需要增加项目的版本号,请不要 忘记编辑以下内容:
CHANGELOG.md
setup.py