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 context 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,6 +1,6 @@
-# $NetBSD: Makefile,v 1.17 2023/07/01 08:37:38 wiz Exp $
+# $NetBSD: Makefile,v 1.18 2023/07/17 07:19:25 adam Exp $
 
-DISTNAME=	asteval-0.9.29
+DISTNAME=	asteval-0.9.31
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
 MASTER_SITES=	${MASTER_SITE_PYPI:=a/asteval/}
@@ -15,7 +15,7 @@
 
 USE_LANGUAGES=	# none
 
-PYTHON_VERSIONS_INCOMPATIBLE=	27 37 38
+PYTHON_VERSIONS_INCOMPATIBLE=	27 38
 
 do-test:
 	cd ${WRKSRC}/tests && ${SETENV} ${TEST_ENV} ${PYTHONBIN} test_asteval.py

cvs diff -r1.15 -r1.16 pkgsrc/math/py-asteval/distinfo (expand / switch to context 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 @@
-$NetBSD: distinfo,v 1.15 2023/02/14 17:49:26 adam Exp $
+$NetBSD: distinfo,v 1.16 2023/07/17 07:19:25 adam Exp $
 
-BLAKE2s (asteval-0.9.29.tar.gz) = 15fb70432f0f0fb72b845a44f35fd47c67368e07ce50d826ed5d6da8e41d8942
+BLAKE2s (asteval-0.9.31.tar.gz) = c8efe45bb3b0c22a4921276a0facac09ba160d308a0b9ff1a9f3d29cdd98c4c1
-SHA512 (asteval-0.9.29.tar.gz) = c7d1fa3b2b53c05cf542777ed4ae58d25ee426efc4687585cee98118804260b910c45008c2e37e1e569fc26653e8022525837afc7112756ffdf358fd68ac3459
+SHA512 (asteval-0.9.31.tar.gz) = c1b62e5c152fb4911a098400fc6da98e4584b98acbb99efde4dc1cd0d7f322d0dc6cf6219d24eb611ababb3a09af4be4faef84a06e488e2cfe570a48454c0051
-Size (asteval-0.9.29.tar.gz) = 42424 bytes
+Size (asteval-0.9.31.tar.gz) = 57410 bytes