Mon Jul 17 07:19:25 2023 UTC ()
py-asteval: updated to 0.9.31

0.9.31
cleanup numpy imports to avoid deprecated functions, add financial functions from numpy_financial module, if installed.
prefer 'user_symbols' when initializing Interpreter, but still support 'usersyms' argument. Will deprecate and remove eventually.
add support of optional (off-by default) "nested symbol table", based on a Group object that can be accessed from Python either with dict syntax (ie aeval.symtable['x']) or with object attribute access (aeval.symtable.x). In addition, symbols can be found by looking first in the top-level symbol table and then in sub-Groups named in symtable._searchgroups, allowing for a more hierarchical, nested symbol table. This should be considered experimental and is off by default. The make_symbol_table() function gains a nested=False argument to control whether to use this option.
update tests to run most tests with symbol tables of dict and nested group type.
general code and testing cleanup.

0.9.30
add config argument to Interpreter to more fully control which nodes are supported
add support for import and importfrom -- off by default
add support for with blocks
add support for f-strings
add support of set and dict comprehension
fix bug with 'int**int' not returning a float.


(adam)
diff -r1.17 -r1.18 pkgsrc/math/py-asteval/Makefile
diff -r1.15 -r1.16 pkgsrc/math/py-asteval/distinfo

cvs diff -r1.17 -r1.18 pkgsrc/math/py-asteval/Makefile (expand / switch to unified diff)

--- pkgsrc/math/py-asteval/Makefile 2023/07/01 08:37:38 1.17
+++ pkgsrc/math/py-asteval/Makefile 2023/07/17 07:19:25 1.18
@@ -1,24 +1,24 @@ @@ -1,24 +1,24 @@
1# $NetBSD: Makefile,v 1.17 2023/07/01 08:37:38 wiz Exp $ 1# $NetBSD: Makefile,v 1.18 2023/07/17 07:19:25 adam Exp $
2 2
3DISTNAME= asteval-0.9.29 3DISTNAME= asteval-0.9.31
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= math python 5CATEGORIES= math python
6MASTER_SITES= ${MASTER_SITE_PYPI:=a/asteval/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=a/asteval/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://github.com/newville/asteval 9HOMEPAGE= https://github.com/newville/asteval
10COMMENT= Safe, minimalistic expression evaluator using ast module 10COMMENT= Safe, minimalistic expression evaluator using ast module
11LICENSE= mit 11LICENSE= mit
12 12
13TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm 13TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
14DEPENDS+= ${PYPKGPREFIX}-numpy>=1.6:../../math/py-numpy 14DEPENDS+= ${PYPKGPREFIX}-numpy>=1.6:../../math/py-numpy
15 15
16USE_LANGUAGES= # none 16USE_LANGUAGES= # none
17 17
18PYTHON_VERSIONS_INCOMPATIBLE= 27 37 38 18PYTHON_VERSIONS_INCOMPATIBLE= 27 38
19 19
20do-test: 20do-test:
21 cd ${WRKSRC}/tests && ${SETENV} ${TEST_ENV} ${PYTHONBIN} test_asteval.py 21 cd ${WRKSRC}/tests && ${SETENV} ${TEST_ENV} ${PYTHONBIN} test_asteval.py
22 22
23.include "../../lang/python/egg.mk" 23.include "../../lang/python/egg.mk"
24.include "../../mk/bsd.pkg.mk" 24.include "../../mk/bsd.pkg.mk"

cvs diff -r1.15 -r1.16 pkgsrc/math/py-asteval/distinfo (expand / switch to unified diff)

--- pkgsrc/math/py-asteval/distinfo 2023/02/14 17:49:26 1.15
+++ pkgsrc/math/py-asteval/distinfo 2023/07/17 07:19:25 1.16
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.15 2023/02/14 17:49:26 adam Exp $ 1$NetBSD: distinfo,v 1.16 2023/07/17 07:19:25 adam Exp $
2 2
3BLAKE2s (asteval-0.9.29.tar.gz) = 15fb70432f0f0fb72b845a44f35fd47c67368e07ce50d826ed5d6da8e41d8942 3BLAKE2s (asteval-0.9.31.tar.gz) = c8efe45bb3b0c22a4921276a0facac09ba160d308a0b9ff1a9f3d29cdd98c4c1
4SHA512 (asteval-0.9.29.tar.gz) = c7d1fa3b2b53c05cf542777ed4ae58d25ee426efc4687585cee98118804260b910c45008c2e37e1e569fc26653e8022525837afc7112756ffdf358fd68ac3459 4SHA512 (asteval-0.9.31.tar.gz) = c1b62e5c152fb4911a098400fc6da98e4584b98acbb99efde4dc1cd0d7f322d0dc6cf6219d24eb611ababb3a09af4be4faef84a06e488e2cfe570a48454c0051
5Size (asteval-0.9.29.tar.gz) = 42424 bytes 5Size (asteval-0.9.31.tar.gz) = 57410 bytes