diff options
author | adam <adam@pkgsrc.org> | 2021-02-07 20:01:35 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2021-02-07 20:01:35 +0000 |
commit | 6ec18f04f756c280975295dd7d96b127f5f62370 (patch) | |
tree | e6a163b6b0efd9bd477a71ebed4a998ec1580be2 /finance | |
parent | f0fa79cf7ff12c19aa1b7dc22efaa05b124c1be3 (diff) | |
download | pkgsrc-6ec18f04f756c280975295dd7d96b127f5f62370.tar.gz |
py-eth-utils: updated to 1.10.0
eth-utils v1.10.0
Bugfixes
When a TypeError or ValueError is raised during :meth:`~eth_utils.applicators.apply_formatters_to_dict`, eth_utils appends some useful contextual information. It was trying to re-create the old exception, but that sometimes fails, like with a :class:`JSONDecodeError`, which expects more arguments in the constructor. So now we raise a basic TypeError or ValueError.
Update the type signature of :meth:`~eth_utils.address.to_canonical_address`, :meth:`~eth_utils.address.to_checksum_address`, and :meth:`~eth_utils.address.to_normalized_address` to allow bytes-typed address input.
Performance improvements
Significant speedup of :meth:`~eth_utils.hexadecimal.is_hex` and :meth:`~eth_utils.hexadecimal.is_hexstr`.
Significant speedup of :meth:`~eth_utils.address.is_address`. Running a test that abi-encodes an array of 10 addresses was about 67% faster.
Internal Changes - for eth-utils Contributors
Upgrade eth-hash to v0.3.1, to use its exported type annotations instead of casting the results.
Diffstat (limited to 'finance')
-rw-r--r-- | finance/py-eth-utils/Makefile | 39 | ||||
-rw-r--r-- | finance/py-eth-utils/distinfo | 10 |
2 files changed, 16 insertions, 33 deletions
diff --git a/finance/py-eth-utils/Makefile b/finance/py-eth-utils/Makefile index 2c7efa9d319..4ed7a5a0a61 100644 --- a/finance/py-eth-utils/Makefile +++ b/finance/py-eth-utils/Makefile @@ -1,43 +1,26 @@ -# $NetBSD: Makefile,v 1.4 2020/11/25 11:13:19 nia Exp $ +# $NetBSD: Makefile,v 1.5 2021/02/07 20:01:35 adam Exp $ -DISTNAME= eth-utils-1.9.5 +DISTNAME= eth-utils-1.10.0 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} -PKGREVISION= 1 CATEGORIES= finance python -MASTER_SITES= ${MASTER_SITE_GITHUB:=ethereum/} -GITHUB_PROJECT= eth-utils -GITHUB_TAG= v${PKGVERSION_NOREV} +MASTER_SITES= ${MASTER_SITE_PYPI:=e/eth-utils/} MAINTAINER= khorben@defora.org HOMEPAGE= https://github.com/ethereum/eth-utils COMMENT= Common utility functions for ethereum codebases LICENSE= mit -BUILD_DEPENDS+= ${PYPKGPREFIX}-twine-[0-9]*:../../net/py-twine -BUILD_DEPENDS+= ${PYPKGPREFIX}-sphinx-[0-9]*:../../textproc/py-sphinx -BUILD_DEPENDS+= ${PYPKGPREFIX}-sphinx-rtd-theme-[0-9]*:../../textproc/py-sphinx-rtd-theme -#BUILD_DEPENDS+= # TODO: towncrier>=19.2.0,<20 -BUILD_DEPENDS+= ${PYPKGPREFIX}-black-[0-9]*:../../textproc/py-black -BUILD_DEPENDS+= ${PYPKGPREFIX}-flake8-[0-9]*:../../devel/py-flake8 -BUILD_DEPENDS+= ${PYPKGPREFIX}-isort-[0-9]*:../../devel/py-isort -BUILD_DEPENDS+= ${PYPKGPREFIX}-mypy-[0-9]*:../../lang/py-mypy -#BUILD_DEPENDS+= # TODO: pytest>=3.4.1,<4.0.0 -BUILD_DEPENDS+= ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis -#BUILD_DEPENDS+= # TODO: pytest>=3.4.1,<4.0.0 -#BUILD_DEPENDS+= # TODO: pytest-pythonpath>=0.3,<1.0 -BUILD_DEPENDS+= ${PYPKGPREFIX}-bump2version-[0-9]*:../../devel/py-bump2version -BUILD_DEPENDS+= ${PYPKGPREFIX}-tox-[0-9]*:../../devel/py-tox -BUILD_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel -DEPENDS+= ${PYPKGPREFIX}-eth-hash-[0-9]*:../../finance/py-eth-hash -DEPENDS+= ${PYPKGPREFIX}-eth-typing-[0-9]*:../../finance/py-eth-typing -DEPENDS+= ${PYPKGPREFIX}-toolz-[0-9]*:../../devel/py-toolz -DEPENDS+= ${PYPKGPREFIX}-cytoolz-[0-9]*:../../devel/py-cytoolz +DEPENDS+= ${PYPKGPREFIX}-eth-hash>=0.3.1:../../finance/py-eth-hash +DEPENDS+= ${PYPKGPREFIX}-eth-typing>=2.2.1:../../finance/py-eth-typing +DEPENDS+= ${PYPKGPREFIX}-cytoolz>=0.10.1:../../devel/py-cytoolz +TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis>=4.43.0:../../devel/py-hypothesis +TEST_DEPENDS+= ${PYPKGPREFIX}-test>=5.4.1:../../devel/py-test +TEST_DEPENDS+= ${PYPKGPREFIX}-test-xdist-[0-9]*:../../devel/py-test-xdist +TEST_DEPENDS+= ${PYPKGPREFIX}-tox>=3.14.6:../../devel/py-tox USE_LANGUAGES= # none -PYTHON_VERSIONS_INCOMPATIBLE= 27 # py-bump2version py-eth-typing -PYTHON_VERSIONS_INCOMPATIBLE+= 36 # py-eth-hash-0.2.0nb1 py-eth-typing +PYTHON_VERSIONS_INCOMPATIBLE= 27 -# TODO: Migrate MASTER_SITES to MASTER_SITE_PYPI .include "../../lang/python/egg.mk" .include "../../mk/bsd.pkg.mk" diff --git a/finance/py-eth-utils/distinfo b/finance/py-eth-utils/distinfo index 2851e78599a..c3c1e8135b6 100644 --- a/finance/py-eth-utils/distinfo +++ b/finance/py-eth-utils/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.1 2020/09/29 00:05:36 khorben Exp $ +$NetBSD: distinfo,v 1.2 2021/02/07 20:01:35 adam Exp $ -SHA1 (eth-utils-1.9.5.tar.gz) = e0a6fee26224767595eada8e0dd42ef371c994c5 -RMD160 (eth-utils-1.9.5.tar.gz) = 73480adf2a6db088b2683216d87eb9159a3f2bf3 -SHA512 (eth-utils-1.9.5.tar.gz) = 531e76122befe3d22e749c6c31012777fb7a31e201c4623b1f864f4728745d90623b91af28511a1f7caa9938d4d69536516e9cc8dfda08fb23a2b70beab1318d -Size (eth-utils-1.9.5.tar.gz) = 51064 bytes +SHA1 (eth-utils-1.10.0.tar.gz) = e359f87592cb64639abca695e7c7cb7a9e9b3ad9 +RMD160 (eth-utils-1.10.0.tar.gz) = b03c1cebbf2392fb0ebd691e6fb5a07ecda3d446 +SHA512 (eth-utils-1.10.0.tar.gz) = 910f6d1e89c17415141e0d67c9ae915272c1709b6b691a7c5661d308d0a854c84d7d5644f4d968e7c3fba8ff38101fd8ce63134b16f845e640874de1201717f4 +Size (eth-utils-1.10.0.tar.gz) = 4602591 bytes |