Py-Eth.

py-eth的Python项目详细描述


#py eth

[![在https://gitter.im/ethereum/py-eth](https://badges.gitter.im/ethereum/py-eth.svg)](https://gitter.im/ethereum/py-eth?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge加入聊天室) [![生成状态](https://circleci.com/gh/ethereum/py-eth.svg?style=shield)](https://circleci.com/gh/ethereum/py-eth) [![PYPI版本](https://badge.fury.io/py/py-eth.svg)](https://badge.fury.io/py/py-eth) [![python版本](https://img.shields.io/pypi/pyversions/py-eth.svg)](https://pypi.python.org/pypi/py-eth) [![文档生成](https://readthedocs.org/projects/py-eth/badge/?version=latest)](http://py-eth.readthedocs.io/en/latest/?徽章=最新)

阅读[关于readthedocs的文档](https://py-eth.readthedocs.io/)中的更多内容。[查看更改日志](https://py-eth.readthedocs.io/en/latest/releases.html)。

##快速启动

`sh pip install py-eth `

##开发人员设置

如果你想破解py eth,请查看 [以太坊开发战术手册](https://github.com/pipermerriam/ethereum-dev-tactical-manual) 有关我们如何做的信息:

  • 测试
  • 拉取请求
  • 代码样式
  • 文档

###开发环境设置

您可以使用以下命令设置开发环境:

`sh git clone git@github.com:ethereum/py-eth.git cd py-eth virtualenv -p python3 venv . venv/bin/activate pip install -e .[dev] `

###测试设置

在开发过程中,您可能希望在每次保存文件时都运行测试。

更改文件时显示flake8错误:

`sh # Test flake8 when-changed-v-s-r-1 eth/ tests/ -c "clear; flake8 eth tests && echo 'flake8 success' || echo 'error'" `

在一个命令中运行多进程测试,但不使用颜色:

`sh # in the project root: pytest --numprocesses=4--looponfail--maxfail=1 # the same thing, succinctly: pytest -n 4 -f--maxfail=1 `

在一个线程中运行,带有颜色和桌面通知:

`sh cd venv ptw --onfail"notify-send-t 5000 'Test failure ⚠⚠⚠⚠⚠' 'python 3 test on py-eth failed'" ../tests../eth `

###释放设置

对于类似Debian的系统: ` apt install pandoc `

发布新版本:

`sh make release bump=$$VERSION_PART_TO_BUMP$$ `

####如何增强版本

此回购协议的版本格式为稳定的{major}.{minor}.{patch},并且 {major}.{minor}.{patch}-{stage}.{devnum}表示不稳定(stage可以是alpha或beta)。

要发布第行的下一个版本,请指定要凹凸的部分, 像make release bump=minormake release bump=devnum。这通常是从 主分支,除了发布beta(在这种情况下,beta是从主分支发布的, 上一个稳定的分支从所述分支释放)。包括对每个 发布,用更改更新“docs/releases.rst”,并直接向master应用commit 在释放之前。

如果您是beta版本,则make release bump=stage将切换到稳定版本。

若要在当前版本稳定时发布不稳定版本,请指定 新版本,如make release bump=”–新版本4.0.0-alpha.1 devnum“

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java搜索按钮不适用于我   java制作一个应用程序来打开您自己的文件扩展名   XMemcached中的java异步集   java无法在Android上使用HTML5 canvas touch   java是否可以用PHP为Restlet创建客户端?   java在主题中添加图标。AppCompat。光   java Safari错误,无法打开浏览器   java gson解析json值中commaseparatedvalue字符串中的项   java如何使用Quarkus在卡夫卡的同一主题中设置多个使用者   java组织。json。JSONException:在{main}()的第6个字符处的main后面应该是“:”   windowbuilder如何将Java文件导出到GATE developer   java这与安卓 studio ide问题有关,在更新我们的ide之后   java Android将活动加载到类中<?>对象   java如何在springdatajpa中使用DISTINCT、GROUP BY和ORDER BY?   使用jlink的java可复制构建