neo-python的核心功能
neocore的Python项目详细描述
开始
您需要Python3.5或更高版本!
您可以使用 轻松安装或 pip从pypi安装 neocore :
$ pip install -U neocore
或者,如果要处理代码,请克隆此存储库并设置您的venv:
- 克隆回购协议: git clone https://github.com/cityofzion/neo python core.git
- 创建Python3虚拟环境并激活它:
$ python3 -m venv venv $source venv/bin/activate
- 然后安装要求:
$ pip install -e . $ pip install -r requirements_dev.txt
有用的命令
$ make lint $ make test$ make coverage
发布清单
(仅限管理员)
在github上发布新版本会自动将此版本上载到pypi。 这是发布新版本的清单:
# Only in case you want to increase the version number again (eg. scope changed from patch to minor): bumpversion --no-tag minor|major # Update ``HISTORY.rst`` with the new version number and the changes and commit this vi HISTORY.rst git commit -m "Updated HISTORY.rst" HISTORY.rst # Set the release version number and create the tag bumpversion release # Increase patch number and add `-dev`bumpversion --no-tag patch # Push to GitHub, which also updates the PyPI package git push && git push --tags