pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/finance/py-eth-utils py-eth-utils: updated to 1.10.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/01233a0ac509
branches:  trunk
changeset: 446367:01233a0ac509
user:      adam <adam%pkgsrc.org@localhost>
date:      Sun Feb 07 20:01:35 2021 +0000

description:
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:

 finance/py-eth-utils/Makefile |  39 +++++++++++----------------------------
 finance/py-eth-utils/distinfo |  10 +++++-----
 2 files changed, 16 insertions(+), 33 deletions(-)

diffs (73 lines):

diff -r ca9efce75052 -r 01233a0ac509 finance/py-eth-utils/Makefile
--- a/finance/py-eth-utils/Makefile     Sun Feb 07 19:59:48 2021 +0000
+++ b/finance/py-eth-utils/Makefile     Sun Feb 07 20:01:35 2021 +0000
@@ -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@localhost
 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 -r ca9efce75052 -r 01233a0ac509 finance/py-eth-utils/distinfo
--- a/finance/py-eth-utils/distinfo     Sun Feb 07 19:59:48 2021 +0000
+++ b/finance/py-eth-utils/distinfo     Sun Feb 07 20:01:35 2021 +0000
@@ -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



Home | Main Index | Thread Index | Old Index